首页 > 其他 > 详细

nginx的点点

时间:2017-08-09 12:08:34      阅读:243      评论:0      收藏:0      [点我收藏+]

说是在新的服务器上面配置nginx,我就直接从其他服务器上面复制过去的,并不是自己安装的,结果报错

进入nginx安装目录sbin下,输入命令./nginx -t

报错:./nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

解决办法:原来是libpcre.so.1依赖文件没有,在lib64下面没有libpcre.so.1这个文件,在网络上面也可以自己下载,我是直接从原来的里面复制过来的

然后就成功了

[root@localhost sbin]# ./nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

 

在后面启动的时候还是报错啊  what the fuck--------

[root@localhost sbin]# ./nginx -s reload
nginx: [error] invalid PID number "" in "/data/logs/nginx.pid"

然后输入了 下   /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

重新启动

技术分享

 

nginx的点点

原文:http://www.cnblogs.com/cdm023/p/7324354.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!