首页 > 代码库 > nginx安装

nginx安装

操作系统:ubuntu14.04 64位

1,安装pcre

./configure

make

make install

2,安装openssl

./config

make

make install

3,安装zlib

./configure

make

make install

4,安装nginx

./configure

make

make install

 

在启动nginx时报错:

/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

解决方法:由于没有找到共享库libpcre.so.1

cd /lib

ln -s /usr/local/lib/libpcre.so.1 libpcre.so.1

nginx安装