1. 二宝博客首页
  2. 服务器

centos 修改host

vi /etc/hosts

添加一行

127.0.0.1 test.a.com

/etc/rc.d/init.d/network restart

]]>

原创文章,作者:keyboard,如若转载,请注明出处:http://www.708034.com/2017/08/centos-%e4%bf%ae%e6%94%b9host/

发表评论

电子邮件地址不会被公开。 必填项已用*标注