美文网首页
nginx 安装

nginx 安装

作者: 果酱一一 | 来源:发表于2015-12-30 21:55 被阅读67次

安装前置条件

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 安装

      本文链接:https://www.haomeiwen.com/subject/nqbihttx.html