Linux修改主机名
1.hostname s42
# hostname s42
2.修改/etc/sysconfig中network文件
#vi network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=主机名
3.修改/etc/hosts文件
vi /etc/hosts #在最下面增加 192.168.1.42 s42 192.168.1.43 s43 192.168.1.44 s44 192.168.1.45 s45 192.168.1.46 s46
相关推荐
GQ00 2020-01-14
wannagonna 2020-01-10
FruitDrop 2015-06-08
llystar 2019-03-25
hengxie00 2018-03-01
SHN0 2014-11-16
菜鸟上路CCLinux 2014-05-09
YaoGUET 2013-04-29
silenter00 2011-11-13
陈伟堂 2011-06-17
ningningmingming 2011-05-18
Wenjing 2018-02-22
LinuxCard 2010-12-29