CentOS7安装配置Nginx

参考:https://blog.csdn.net/qq_37345604/article/details/90034424
1、安装GCC

gcc -v

2、pcre、pcre-devel安装

yum install -y pcre pcre-devel

3、zlib安装

yum install -y zlib zlib-devel

4、安装openssl

yum install -y openssl openssl-devel

5、安装下载nginx安装包

wget http://nginx.org/download/nginx-1.9.9.tar.gz  

6、解压,先确保包含这个文件将爱

cd /usr/local/
ls
mkdir java

7、解压

tar -zxvf  nginx-1.9.9.tar.gz -C /usr/local/java

你可能感兴趣的:(CentOS7安装配置Nginx)