nginx安装步骤:
1、 安装依赖包:
apt-get install gcc
apt-get install libpcre3 libpcre3-dev
apt-get install zlib1g zlib1g-dev
sudo apt-get install openssl
sudo apt-get install libssl-dev
2、 安装nginx:
cd /usr/local
mkdir nginx
cd nginx
wget http://nginx.org/download/nginx-1.13.7.tar.gz
tar -xvf nginx-1.13.7.tar.gz
3、 编译nginx
cd /usr/local/nginx/nginx-1.13.7
./configure
apt install make
make
make install
4、 启动nginx
cd/usr/local/nginx/sbin
./nginx