一、修改网卡名:
1. cd /etc/sysconfig/network-scripts
vim ifcfg-eth2-------ifcfg-eth2为想要修改的网卡,这里修改成想要修改成的网卡名,如eth0
2. cd /etc/udev/rules.d
vim 70-persistent-net.rules----各系统70-persistent-net.rules文件有所不同,根据实际情况选择
3. 修改完重启机器(reboot)即可
二、修改linux主机名
1. hostname tz666-----修改成想要的主机名
2. vim /etc/hostname
3.修改完重启机器(reboot)即可
三、在使用vim编辑器敲shell脚本时,不小心按到了S