1
2
3
vim /etc/hostname
vim /etc/hosts
hostname new-hostname