Ubuntu6.4编译安装nginx1.13

安装依赖包:
sudo apt install -y build-essential
sudo apt install -y libtool
sudo apt install -y libpcre3 libpcre3-dev
sudo apt install -y zlib1g-dev
sudo apt-get install -y  openssl libssl-dev
#安装上面依赖包的时候建议分条命令执行

下载并编译安装:
wget http://nginx.org/download/nginx-1.13.2.tar.gz
tar zxvf nginx-1.13.2.tar.gz
cd nginx-1.13.2
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-file-aio --with-http_realip_module
make
sudo make install

猜你喜欢

转载自blog.csdn.net/Doudou_Mylove/article/details/103342797