解决nginx端口占用问题
[error] 612#4188: CreateFile() "C:\yjzx\nginx-1.24.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
查找logs下nginx.pid文件确实没有创建成功,在网上查找了下了解决办法。
发现大多数的解决办法是使用nginx 的如下启动命令:
nginx -c conf/nginx.conf
BASH 复制 全屏
全部删掉,logs文件夹里的东西改完端口,运行上诉命令,即可解决问题
加载conf文件
nginx -s reload
重启
start nginx
问题解决