Nginx centerOS7安装

1. yum -y install gcc-c++. //安装所需环境

2. yum install pcre pcre-devel. //安装所需环境

3. yum install -y zlib zlib-devel. //安装所需环境

4. yum install -y openssl openssl-devel. //安装所需环境

5. mkdir /usr/local/nginx. //创建存放目录

6. cd /usr/local/nginx. //进入目录

7. wget http://nginx.org/download/nginx-1.18.0.tar.gz //下载压缩包

8. tar -zxvf nginx-1.18.0.tar.gz. //解压

9. cd nginx-1.18.0 //进入nginx文件夹

10. ./configure //使用默认配置

11. make&&make install // 编译安装

你可能感兴趣的:(笔记,腾讯云)