Nginxのビルドコマンドメモ(Ubuntu20.04)
建造所需之物
apt install -y build-essential libpcre3 libpcre3-dev
ビルド
您可以从以下链接中选择所需的选项:
https://gakumon.tech/nginx/nginx_install_option.html
git clone https://github.com/nginx/nginx
cd nginx
./auto/configure --without-http_gzip_module --with-stream
make && make install
创建符号链接
ln -s /usr/local/nginx/sbin/nginx /usr/local/sbin/nginx
ln -s /usr/local/nginx/conf/nginx.conf /etc/nginx/nginx.conf