时间:2022-12-10人气:作者:未知

重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误,进到logs文件发现的确没有nginx.pid文件
[root@localhost sbin]# ./nginx -s reload
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
解决方法:
[root@localhost nginx]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
使用nginx -c的参数指定nginx.conf文件的位置
[root@localhost nginx]# cd logs/
[root@localhost logs]# ll
总用量 12
-rw-r--r-- 1 root root 1246 12月 9 18:10 access.log
-rw-r--r-- 1 root root 516 12月 10 15:39 error.log
-rw-r--r-- 1 root root 5 12月 10 15:38 nginx.pid
看nginx.pid文件已经有了。
打造万能Windows封装包 对于那些经常需要给朋友攒机或者重新安装操作系统的电脑高手来说,每次安装Windows系统所经历的漫长等待无异于一次折磨。虽然身边有
(332)人喜欢2024-10-07
修改注册表加快Windows 7关机速度 关机更迅速,操作简单方便,何乐而不为呢! 在Windows7系统的“开始”菜单的搜索框中输入“regedit”打开注册
(315)人喜欢2024-10-07
windows关闭默认共享 一、运行–CMD–net share 会显示你的电脑的共享情况 二、如果有些没有关闭:net share c$ /d net sha
(330)人喜欢2024-10-07windows安装redis缓存使用图文教程 下载安装 通过https://github.com/mythz/redis-windows这里可以直接下载,然后解
(341)人喜欢2024-10-07
打造万能Windows封装包 对于那些经常需要给朋友攒机或者重新安装操作系统的电脑高手来说,每次安装Windows系统所经历的漫长等待无异于一次折磨。虽然身边有
(332)人喜欢2024-10-07
修改注册表加快Windows 7关机速度 关机更迅速,操作简单方便,何乐而不为呢! 在Windows7系统的“开始”菜单的搜索框中输入“regedit”打开注册
(315)人喜欢2024-10-07
windows关闭默认共享 一、运行–CMD–net share 会显示你的电脑的共享情况 二、如果有些没有关闭:net share c$ /d net sha
(330)人喜欢2024-10-07windows安装redis缓存使用图文教程 下载安装 通过https://github.com/mythz/redis-windows这里可以直接下载,然后解
(341)人喜欢2024-10-07