电子商务网站建设和运营,pixso在线设计平台,设计师新手接单网站,网站建设相关话术转https://blog.csdn.net/qq_24221531/article/details/80334942一、修改linux主机的配置文件/etc/hostname 和 /etc/hosts#xff0c;这种方式修改后系统重启依旧有效。1.修改/etc/hostname里面的主机名字。# vim /etc/hostname#localhost.localdomain//屏蔽这一行localhost/…转https://blog.csdn.net/qq_24221531/article/details/80334942一、修改linux主机的配置文件/etc/hostname 和 /etc/hosts这种方式修改后系统重启依旧有效。1.修改/etc/hostname里面的主机名字。# vim /etc/hostname#localhost.localdomain//屏蔽这一行localhost//新增这行或者采用命令hostnamectl set-hostname localhost2.修改/etc/hosts里面的名字# vim /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain610.209.177.22 localhost//新增这行你的IP地址转载于:https://www.cnblogs.com/seifguo/p/9864923.html