vim /etc/sysconfig/network 修改主機名vim
NETWORKING=yesdom
HOSTNAME=ongonginging.orgspa
NETWORKING_IPV6=no命令行
PEERNTP=nonetwork
GATEWAY=182.92.235.247im
vim /etc/hosts 新增主機名hosts
127.0.0.1 ongonginging.org localhostvi
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 ongonginging.orgco
10.171.91.199 iZ25kyy8d7dZbackground
想要當即生效能夠在命令行輸入:
hostname ongonginging.org