1.安装依赖包
sudo apt-get install build-essential
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install zlib1g-dev
sudo apt-get install openssl libssl-dev
2.编译Ngnix
tar -zxvf linux-nginx-1.10.2.tar.gz
./configure --prefix=/opt/nginx
sudo make
sudo make install
3.启动nginx
cd /opt/nginx/sbin
sudo ./nginx
4.nginx安装验证
查看启动进程
ps aux|grep nginx
输入http://localhost
网友评论