今天安装nginx遇到一个奇怪的问题,nginx打开后,我想关闭,个人有个强迫症:开了之后不想用时就关闭,ps:个人使用的版本是:1.18.0

结果使用命令 nginx -s stop命令来关闭后,访问localhost:80时,仍然能够打开

nginx关闭后仍然能够访问localhost:80

 

 使用命令打开netstat -ano | findstr 80找到80端口有哪些程序在占用,发现了很多个

nginx关闭后仍然能够访问localhost:80

可以通过tasklist | findstr  pid 查看进程相关信息,如,下面这个是我又打开了多个ngnix后,和上面端口对不上

nginx关闭后仍然能够访问localhost:80

 

 

想了想好像是我打开时点了多次nginx.exe,才打开了多个,但是关闭时却只能关一个,多次关闭时就会报错,如下面所示

nginx关闭后仍然能够访问localhost:80

 

 解决方法,杀死所有的nginx进程

nginx关闭后仍然能够访问localhost:80

 

 杀死后再次访问localhost:80,就不能访问了

nginx关闭后仍然能够访问localhost:80

 

相关文章:

  • 2022-12-23
  • 2022-02-28
  • 2021-07-09
  • 2021-08-12
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-05
  • 2021-07-24
  • 2021-09-09
  • 2022-12-23
  • 2021-04-28
  • 2021-04-11
  • 2021-08-03
相关资源
相似解决方案