1. sudo vim /etc/hostname -> hostname
2. sudo vim /etc/hosts -> 127.0.1.1 hostname
3. reboot
转载于:https://www.cnblogs.com/Huluwa-Vs-Aoteman/p/5682937.html
1. sudo vim /etc/hostname -> hostname
2. sudo vim /etc/hosts -> 127.0.1.1 hostname
3. reboot
转载于:https://www.cnblogs.com/Huluwa-Vs-Aoteman/p/5682937.html