[root@iZbp1ehco2fi1l7bj6hhphZ ~]# cat /etc/sysconfig/network
# Created by cloud-init on instance boot automatically, do not edit.
# If you don't want cloud-init genrated automatically,you can disable it in /etc/cloud/cloud.cfg
# For more information, please refer to: https://help.aliyun.com/document_detail/57803.html
#
NETWORKING=yes
Step 2: 将网络配置中加上HOSTNAME=主机名
Step 3 使用 hostnamectl set-hostname DBAMAXWELL 设置一下主机名。
Step4 :重启服务器
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)