在部署网站后,如果打开自己的网页显示的welcome to nginx,而不是自己的网站,则打开目录etc/nginx/conf/nginx.conf

其中有一行

 

nginx发布网页后,页面一直是默认页面welcome to nginx

将default改为自己的域名即可

nginx发布网页后,页面一直是默认页面welcome to nginx

然后执行 nginx -s reload 

若报错 invalid PID number

则执行 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

再执行 nginx -s reload  就可以重启nginx了

相关文章:

  • 2022-12-23
  • 2021-10-21
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-12-27
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案