5.清理g++:apt-get install g++
apt-get install build-essential
make clean
./configure
make
6.安装:cd pcre-8.37/
./configure && make && make install
cd zlib-1.2.8/
./configure && make && make install
cd openssl-1.0.2a/
./Configure && make && make install
安装nginx:指定安装目录/usr1/hutaf/nginx
cd nginx-1.8.0/
./configure --sbin-path=/usr1/hutaf/nginx/nginx --conf-path=/usr1/hutaf/nginx/nginx.conf --pid-path=/usr1/hutaf/nginx/nginx.pid --with-http_ssl_module --with-pcre=/usr1/hutaf/server/pcre-8.37 --with-zlib=/usr1/hutaf/server/zlib-1.2.8 --with-openssl=/usr1/hutaf/server/openssl-1.0.2a --add-module=/usr1/hutaf/server/gnosek-nginx-upstream-fair-a18b409/ && make && make install
安装完成nginx后,在/usr1/hutaf/nginx会生成许多文件。