系统相关
首页 > 系统相关> > Linux(Centos 7)安装Nginx

Linux(Centos 7)安装Nginx

作者:互联网

#安装gcc
yum -y install gcc

#安装pcre
yum install -y pcre pcre-devel

#安装zlib
yum install -y zlib zlib-devel

#下载Nginx安装包
wget http://nginx.org/download/nginx-1.17.10.tar.gz

#解压Nginx安装包
tar -zxvf nginx-1.17.10.tar.gz

#编译安装Nginx
cd nginx-1.17.10 ./configure make && make install

#启动Nginx
cd /usr/local/nginx/ sbin/nginx

测试Nginx是否启动:在浏览器地址栏输入IP

标签:pcre,1.17,Centos,tar,nginx,Nginx,install,Linux
来源: https://blog.csdn.net/q984141/article/details/117032250