7

linux修改本机名称

 3 years ago
source link: https://www.wencst.com/archives/343
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

linux修改本机名称

作者: wencst 分类: linux,Uncategorized 发布时间: 2016-10-11 18:14 阅读: 1,584 次

#uname -a
查看主机名称

#vim /etc/hosts
将IP地址指向你的主机名

一般此时重启计算机即可将主机名修改过来,如果没有,可以检查下面的文件

#vim /etc/sysconfig/network

设置为红框的内容(localhost.localdomain),即可修改过来了

如果文章对您有用,扫一下支付宝的红包,不胜感激!

欢迎加入QQ群进行技术交流:656897351(各种技术、招聘、兼职、培训欢迎加入)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK