系统相关
首页 > 系统相关> > CentOS7下安装ngnix

CentOS7下安装ngnix

作者:互联网


yum -y install gcc automake autoconf libtool make

yum -y install gcc gcc-c++


cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz

tar -zxvf openssl-1.1.1b.tar.gz

cd openssl-1.1.1b
./config && make && make install

 

cd /usr/local/src
wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz

tar -zxvf pcre-8.40.tar.gz

cd pcre-8.40
./configure && make && make install

 

cd /usr/local/src
wget http://zlib.net/zlib-1.2.11.tar.gz

tar -zxvf zlib-1.2.11.tar.gz

cd zlib-1.2.11
./configure && make && make install


cd /usr/local/src
wget http://nginx.org/download/nginx-1.18.0.tar.gz

tar -zxvf nginx-1.18.0.tar.gz

cd nginx-1.18.0
./configure && make && make install


whereis nginx

cd /usr/local/nginx/sbin
./nginx -v


/usr/local/nginx/sbin/nginx

ps -ef|grep nginx

 

firewall-cmd --state

systemctl stop firewalld.service

标签:tar,make,ngnix,gz,cd,CentOS7,nginx,&&,安装
来源: https://www.cnblogs.com/bhldc/p/14784265.html