nginx的点点

说是在新的服务器上面配置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

重新启动

 

posted @ 2019-11-19 09:09  小东阁下  阅读(168)  评论(0编辑  收藏  举报