通过 centos Nginx 查看html (为后续 服务器生成html 方便访问)

找不到配置文件 

先编辑配置文件

[root@localhost nginx]# vi /usr/local/nginx/conf/nginx.conf

 

 读取文件目录

[root@localhost nginx]# vi /usr/index.html 

 改好后重启

[root@localhost sbin]# ./nginx -s reload

  然后访问

http://localhost/index.html
原文地址:https://www.cnblogs.com/alamZ/p/13531443.html