1, First edit the /etc/hostname and /etc/hosts file
sudo vi /etc/hosts
sudo vi /etc/hostname
2, run hostname service
sudo service hostname start
1, First edit the /etc/hostname and /etc/hosts file
sudo vi /etc/hostname
2, run hostname service
sudo service hostname start
转载于:https://www.cnblogs.com/Hacker/archive/2012/04/17/2453140.html