hostname newHostname
永久设置
redhat: vi /etc/sysconfig/network
HOSTNAME=newHostname
centos7: hostnamectl set-hostname newHostname
ubuntu:vi /etc/hostname
/etc/hostname
posted on 2014-11-17 10:22 学而知之者 阅读(369) 评论(0) 编辑 收藏 举报