CentOS7.6快速安装Nginx
温馨提示:
本文最后更新于 2023年05月10日,已超过 207 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我。
一:安装依赖
yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel
二:下载Nginx版本
wget -c https://nginx.org/download/nginx-1.18.0.tar.gz
三:解压
tar -zxvf nginx-1.18.0.tar.gz
cd nginx-1.18.0
四:配置(支持后期配置SSL)
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
五:编译安装
make
make install
六:启动
# 启动
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
# 重启
/usr/local/nginx/sbin/nginx -s reload
结束
正文到此结束
- 本文标签: NGINX
- 本文链接: https://www.godsblog.cn/article/13
- 版权声明: 本文由Hu Wei Bin原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权