How To Set The Hostname On Ubuntu Or Debian?
$ sudo hostnamectl set-hostname your-hostname
$ sudo vim /etc/hosts
Open the hosts file and add the following line:
127.0.1.1 your-hostname
分享 . 快乐
$ sudo hostnamectl set-hostname your-hostname
$ sudo vim /etc/hosts
Open the hosts file and add the following line:
127.0.1.1 your-hostname