Centos中用Nginx部署静态页面
1.如遇403错误,则在ngjnx.conf首行添加user root
Centos中用Nginx部署静态页面
2.在server中添加root为项目所在目录
/root/website/html/index.html
root /root/website/
index index.html index.htm;
Centos中用Nginx部署静态页面
3.开启nginx
systemctl start nginx
systemctl status nginx
Centos中用Nginx部署静态页面
4.cd /etc/nginx
vim nginx.conf
service nginx restart :重启nginx
Centos中用Nginx部署静态页面
5.url:139.155.17.27:81/html/

相关文章:

  • 2022-12-23
  • 2018-09-05
  • 2022-12-23
  • 2021-11-11
  • 2021-10-21
  • 2022-01-09
  • 2021-07-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-25
  • 2021-11-29
  • 2022-12-23
  • 2021-08-22
  • 2021-11-03
  • 2021-10-24
相关资源
相似解决方案