Nginx的配置正确性检查
2016-03-31 13:49
507 查看
Nginx的配置正确性检查报错:
[root@ser conf]# /usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
解决办法:
[root@ser /]# cd lib64/
[root@ser lib64]# ln -s libpcre.so.0.0.1 libpcre.so.1
[root@ser conf]# /usr/local/nginx/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
此时问题已解决
[root@ser conf]# /usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
解决办法:
[root@ser /]# cd lib64/
[root@ser lib64]# ln -s libpcre.so.0.0.1 libpcre.so.1
[root@ser conf]# /usr/local/nginx/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
此时问题已解决
相关文章推荐
- Nginx启动提示找不到libpcre.so.1解决方法
- nginx+keepalived实现集群配置
- Nginx和Apache比较
- nginx反代mogilefs实现海量小文件存储
- nginx实现跨域访问
- Apache、nginx配置的网站127.0.0.1可以正常访问,内外网的ip地址无法访问,谁的锅?
- Nginx学习笔记
- PHP7+MySQL5.7+Nginx1.9. on Ubuntu 14.0
- OS X - 在80端口启动Nginx
- Linux-Nginx-关闭进程
- nginx配置gzip
- PHP7+MySQL5.7+Nginx1.9. on Ubuntu 14.04(方法有问题)
- Nginx 403 Forbidden错误的解决方法
- nginx安装
- 虚拟机linux 挂载windows共享目录 给linux的nginx服务器使用
- Nginx-添加echo模块
- nginx location匹配规则
- Nginx、LVS、HAProxy负载均衡软件的优缺点
- 构建基于Nginx的web服务器
- CentOS7 keepalive+nginx高可用配置