nginx 安装

安装前置条件

yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel

wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
./configure
make && make install
pcre-config --version

安装nginx

wget http://nginx.org/download/nginx-1.9.9.tar.gz
./configure --sbin-path=/usr/bin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-pcre=/data/soft/pcre-8.35
make && make install
/usr/bin/nginx -v
/usr/bin/nginx -s reload
nginx

http://www.01happy.com/centos-nginx-shell-chkconfig/
http://www.runoob.com/linux/nginx-install-setup.html

你可能感兴趣的:(nginx 安装)