修改主机名(临时生效):hostname 主机名
修改主机名(永久生效):hostnamectl set-hostname xxx
修改主机名对应的ip:vim /etc/hosts
重启:reboot
修改主机名(临时生效):hostname 主机名
修改主机名(永久生效):hostnamectl set-hostname xxx
修改主机名对应的ip:vim /etc/hosts
重启:reboot
# hostnamectl set-hostname ok # cat /etc/hostname ok
cetnos71. 编辑 vim /etc/sysconfig/network-scripts/ifcfg-ens33 2. 修改BOOTPROTO=static #dhcp改为
Centos7 修改主机名称1. 查看当前主机名2. 方法一:临时修改3. 方法二:命令修改4. 方法三:配置修改1. 查看当
centos7 修改主机名
centos修改主机名
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M