1、查看系统是否安装gcc g++
-
gcc -v
-
g++ -v
2、安装pcre
- 解压pcre-8.40.tar.gz
tar -xvf pcre-8.40.tar.gz
- 编译
./configure --prefix=/home/pcre
- make && make install
make && make install
3、安装ngixn
- 解压tar包
tar -zxvf nginx-1.14.2.tar.gz
- 编译
cd nginx-1.14.2/
./configure --prefix=/home/nginx
make && make install