找到hosts文件进行编辑 命令:vim /etc/hosts
配置:
#centos(本机IP)192.168.1.179 www.imooc.com(假域名,自己设置)192.168.1.179 image.imooc.com192.168.1.179 s.imooc.com
保存即可。