centos-nginx安装
# 安装依赖
yum -y install gcc automake autoconf libtool make
yum install gcc gcc-c++
yum -y install automake pcre pcre-devel zlib zlib-devel openssl-devel
# 上传 安装包
#
tar -zxvf nginx-1.21.6.tar.gz cd nginx-1.21.6 ./configure --with-http_ssl_module make && make install
开放80端口
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
启动
cd /usr/local/nginx/sbin/
./nginx

浙公网安备 33010602011771号