标签:wget bin target cal rip 源码包 oca targe 权限
作者:Grey
原文地址:Linux下安装Nginx
Nginx:1.20.1
操作系统:CentOS 7
yum -y install wget gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
cd /usr/local/src
wget http://nginx.org/download/nginx-1.20.1.tar.gz
tar xf nginx-1.20.1.tar.gz
mv nginx-1.20.1 nginx
cd /usr/local/src/nginx
## 后面两个module是支持https必要的
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
cd /usr/local/src/nginx
make
cd /usr/local/src/nginx
make install
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
验证,访问: http://yourip
可以看到nginx的欢迎页面。
标签:wget bin target cal rip 源码包 oca targe 权限
原文地址:https://www.cnblogs.com/greyzeng/p/14845210.html