通过 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
posted @ 2020-08-19 19:38  AlamZ  阅读(549)  评论(0编辑  收藏  举报