One - One Code All

Blog Content

centos下修改/etc/hosts文件以及生效命令

Linux-Mac 运维   2017-07-27 22:35:07
vi /etc/hosts

127.0.0.1 www.onecodeall.com

# /etc/init.d/network restart

修改好了之后,直接ping一下,如不通,则再重启网络。


上一篇:Ubuntu 安装 JDK 7 / JDK8 的两种方式
下一篇:Linux shell获得当前目录、上级目录、目录的最后部分

The minute you think of giving up, think of the reason why you held on so long.