1、linux机器改名
sudo vim /etc/hostname
1.1、linux改域名映射
sudo vim /etc/hosts
2、centos/ubuntu关机,可用shutdown --help看帮助文档
shutdown -h 0
1、linux机器改名
sudo vim /etc/hostname
1.1、linux改域名映射
sudo vim /etc/hosts
2、centos/ubuntu关机,可用shutdown --help看帮助文档
shutdown -h 0