请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

nginx配置修改不生效

图片描述
按照要求配置了config 并不能生效
本机http://192.168.2.107:8080/sell/buyer/product/list 虚拟机内能ping通,
已经nginx -s reload依然无效,甚至systemctl status nginxd.service后启动也不行,最后重新安装了一遍虚拟机,依然不可以。
求解一下原因?

正在回答 回答被采纳积分+3

1回答

提问者 慕少5125093 2020-06-20 23:03:47

???人生迷茫时刻?再一次尝试

root@localhost conf]# systemctl stop nginxd.service 
[root@localhost conf]# systemctl status nginxd.service 
● nginxd.service - nginx
   Loaded: loaded (/usr/lib/systemd/system/nginxd.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Sat 2020-06-20 15:02:15 UTC; 2s ago
  Process: 2460 ExecStop=/usr/local/nginx/sbin/nginx -s stop (code=exited, status=0/SUCCESS)
  Process: 949 ExecStart=/usr/local/nginx/sbin/nginx (code=exited, status=0/SUCCESS)
 Main PID: 968 (code=exited, status=0/SUCCESS)

Jun 20 14:43:15 localhost.localdomain systemd[1]: Starting nginx...
Jun 20 14:43:15 localhost.localdomain systemd[1]: Started nginx.
Jun 20 15:02:15 localhost.localdomain systemd[1]: Stopping nginx...
Jun 20 15:02:15 localhost.localdomain systemd[1]: Stopped nginx.
[root@localhost conf]# systemctl start  nginxd.service

他好了,我也好了 淦

0 回复 有任何疑惑可以回复我~
  • 我的配置nginx配置也改了,也重启了nginx,但是仍然还是访问了虚拟机的ip服务,,,,,按照楼主的方式
    systemctl stop  nginxd.service
    systemctl status  nginxd.service
    systemctl start  nginxd.service
    还是不行哦?咋办
    回复 有任何疑惑可以回复我~ 2020-08-04 01:58:10
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信