Linux系统部分:Linux系统配置节点的基本设置:
以下是Linux的基本设置查看所有程序的运行状态:chkconfig开机不会启动:chkconfig iptables off修改IP地址:cd /etc/sysconfig/network-scripts/vi ifconfig-eth0文件中设置:DEVICE=eth0#HWADDR=00:0C:29:05:77:33TYPE=Ethernet#UUID=2...
以下是Linux的基本设置
查看所有程序的运行状态:
chkconfig
开机不会启动:
chkconfig iptables off
修改IP地址:
cd /etc/sysconfig/network-scripts/
vi ifconfig-eth0文件中设置:
DEVICE=eth0
#HWADDR=00:0C:29:05:77:33
TYPE=Ethernet
#UUID=245a21c7-5cee-4f45-a0cc-66b360954cea
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.206.24
NETMASK=255.255.255.0
GATEWAY=192.168.206.2
DNS1=192.168.206.2
完成之后执行:
service network restart
设置节点名:
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=node04
关闭防火墙:
service iptables stop
chkconfig iptables off
关闭selinux:
cd /etc/selinux
将selinux改为disabled
虚拟机在关机状态下拍摄快照
去C/Windows/system32/drivers/etc/hosts中设置:
192.168.206.21 node01
192.168.206.22 node02
192.168.206.23 node03
192.168.206.24 node04
更多推荐
所有评论(0)