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一下,如不通,则再重启网络。


上一篇:如何查看容器的占用空间大小?
下一篇:Alpine镜像中Gnu Libc的安装及设定方法

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