https://blog.csdn.net/yougoule/article/details/78186138
1. yum install gcc gcc-c++
2. cd /usr/local/src
3. wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
4. tar -zxvf pcre-8.39.tar.gz
5. cd pcre-8.39
6. ./configure
7. make && make install
9. cd /usr/local/src
wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make && make install
10.
cd /usr/local/src
wget http://nginx.org/download/nginx-1.11.13.tar.gz
tar -zxvf nginx-1.11.13.tar.gz
cd nginx-11.1.13
./configure
make && make install
启动 : /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
停止 : ps -ef | grep nginx
kill -QUIT 2072
ps出错:
# ldd $(which /usr/local/nginx/sbin/nginx)
2 libpthread.so.0 => /lib64/libpthread.so.0 (0x00000030e8400000)
3 libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00000030f9a00000)
4 libpcre.so.1 => not found
5 libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00000030f2a00000)
6 libz.so.1 => /lib64/libz.so.1 (0x00000030e8800000)
7 libc.so.6 => /lib64/libc.so.6 (0x00000030e7800000)
8 /lib64/ld-linux-x86-64.so.2 (0x00000030e7400000)
9 libdl.so.2 => /lib64/libdl.so.2 (0x00000030e8000000)
对于/lib/* 32位系统来说:
1#查看lib库
2# ls /lib/ |grep pcre
3libpcre.so.0
4libpcre.so.0.0.1
5#添加软连接
6# ln -s /lib/libpcre.so.0.0.1 /lib/libpcre.so.1
ps:也有可能 pcre lib文件在目录:/usr/local/lib/
对于/lib64/* 64位系统来说:
1#查看lib库
2# ls /lib64/ |grep pcre
3libpcre.so.0
4libpcre.so.0.0.1
5#添加软连接
6# ln -s /lib64/libpcre.so.0.0.1 /lib64/libpcre.so.1
ps:也有可能 pcre lib文件在目录:/usr/local/lib64/。