Linux下nginx反向代理服务器安装与配置实操
1、在安装nginx之前先安装nginx的依赖
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
2、查看一下nginx有没有安装好
find -name nginx
3、下载nginx
wget http://learning.happymmall.com/nginx/linux-nginx-1.10.2.tar.gz
4、解压nginx
tar -zxvf linux-nginx-1.10.2.tar.gz
5、进入nginx-1.10.2
cd nginx-1.10.2
6、指向configure
sudo ./configure
7、执行make
sudo make
8、执行安装
sudo make install
9、执行whereis nginx
whereis nginx
10、进入 sbin/
cd sbin/
11、启动nginx
sudo ./nginx
12、查看nginx的进程
ps auxl grep nginx
13、浏览器测试