老服务器系统用的centos6.5,后来新买了几台服务器,centos7,跑nginx+php,遇到的问题总结如下:
1、服务器初始化:yum -y install lrzsz make cmake gcc gcc-c++ gcc-g77 autoconf automake nc curl-devel libpng-devel libjpeg-devel libuuid libuuid-devel zlib* fiex* libxml* ncurses-devel bison libmcrypt* libtool-ltdl-devel* libiconv mhash mcrypt pcre-devel openssl openssl-devel gperf libevent libevent-devel bzip2 bzip2-devel bzip2-libs subversion telnet nc.x86_64 python-devel python-setuptools
2、从老机器scp编译好的nginx+php+supervisord,启动服务时,遇到一堆报错。
supervisord:pkg_resources.DistributionNotFound: supervisor==3.1.3
解决方法为重新安装supervisord: easy_install supervisor
nginx:/usr/local/app/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
解决方法:ldd $(which /usr/local/app/nginx/sbin/nginx) 查看缺少的库文件,找到后做一个软连接:ln -s /lib64/libpcre.so.1.2.0 /lib64/libpcre.so.0
php:/usr/local/app/php/sbin/php-fpm: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
解决方法:ldd $(which /usr/local/app/php/sbin/php-fpm) 查看缺少的库文件得到结果:libpng12.so.0 => not found 执行yum install libpng12 -y
liunx小白,最近运行一程序,遇到这个,缺少libpcre.so.0的问题,找了好多,知道看到你的帖子,才解决,其他的软连接对象都不行