nginx部署

╄→гoц情女王★ 提交于 2020-02-04 19:07:21
1.安装依赖
yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel
2.安装pcre
cd /usr/local/src/
tar -zxvf pcre-8.35.tar.gz
cd pcre-8.35
./configure
make && make install
pcre-config --version
3.安装nginx
cd /usr/local/src/
tar -zxvf nginx-1.6.2.tar.gz
cd nginx-1.6.2
./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.35
make && make install
/usr/local/webserver/nginx/sbin/nginx -v
nginx
nginx -s reload
nginx -s reopen
nginx -s stop
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!