//启动
使用 service 启动:service nginx start
//重启
使用 service 启动:service nginx restart
//关闭
使用 service 启动:service nginx restart
//查看配置文件目录
#方法1
nginx -t
#方法2
locate nginx.conf
//进入nginx配置文件
vim /etc/nginx.conf
//查看文件权限
ls -l /etc/nginx.conf
//查看域名解析情况
dig 域名
10-01
10-01