1.配置网络
1.1 修改host:
192.168.115.131 server1
1.2 Linux下,输入【vi /etc/sysconfig/network-scripts/ifcfg-eth0】
ONBOOT=“no”改为ONBOOT=”yes“
BOOTPROTO=”dhcp”,改为BOOTPROTO=“none”
末尾添加:
IPADDR=192.168.115.131
NETMASK=255.255.255.0
GATEWAY=192.168.15.131
1.3 重启服务
service network restart
时间: 2024-10-06 00:26:38