如何源码编译安装NGINX

2024-10-13 02:43:53

1、把下载好的nginx源码安装包上传到linux系统中

如何源码编译安装NGINX

3、执行命令 tar xvfP nginx-1.15.7.tar.gz压缩包解开

如何源码编译安装NGINX

5、执行命令./configure --without-http_rewrite_module --without-http_gzip_module 检查系统配置执行命令 make && make install 安装nginx

如何源码编译安装NGINX

6、执行命令 make && make install 安装nginx

如何源码编译安装NGINX

7、执行命令 /usr/local/nginx/sbin/nginx -h,有下图回显说明安装成功

如何源码编译安装NGINX
猜你喜欢