Nginx安装
1.安装依赖包
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
2.创建一个nginx文件夹
cd /usr/local
mkdir nginx
cd nginx
3.下载nginx的tar包
wget http://nginx.org/download/nginx-1.13.7.tar.gz
4.解压
tar -xvf nginx-1.13.7.tar.gz
5.进入nginx底下的目录
cd nginx-1.13.7
6.执行命令
./configure
7.安装
make
make install
8.配置nginx
vi /usr/local/nginx/conf/nginx.conf
9.查看进程是否启动
ps -ef | grep nginx
10.启动nginx
./usr/local/nginx/sbin/nginx