nginx安装过程
参考:https://www.cnblogs.com/nokiaguy/p/4703429.html
wget http://nginx.org/download/nginx-1.14.0.tar.gz
tar -xzf nginx-1.14.0.tar.gz
apt-get install zlib1g zlib1g.dev
apt-get update
apt-get install libssl-dev
./configure --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module
make && make install
检查:
/opt/nginx/sbin/nginx -t
如果找不到libpcre.so.1
/opt/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
https://blog.csdn.net/ystyaoshengting/article/details/50504746
apt-get install openssl
wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz
tar -zxvf pcre-8.40.tar.gz
cd pcre-8.40
./configure
make && make install
pcre-config --version
find / -type f -name *libpcre.so.*
/lib/x86_64-linux-gnu/libpcre.so.3.13.2
/usr/local/lib/libpcre.so.1.2.8
/opt/download/pcre-8.40/.libs/libpcre.so.1.2.8
网友评论