CentOS 8 安装 Nginx

源码获取:

nginx 下载页:http://nginx.org/en/download.html

1、 yum 安装nginx 环境

yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel pcre pcre-devel

2、 下载nginx 最新稳定版本

wget http://nginx.org/download/nginx-1.16.1.tar.gz

3、解压

tar -zxvf nginx-1.16.1.tar.gz

4、最简单的安装:

# 全部采用默认安装 (进入Nginx目录)
./configure
make && make install 

执行完成之后 nginx 运行文件 就会被安装在 /usr/local/nginx 下。

发布了79 篇原创文章 · 获赞 55 · 访问量 32万+

猜你喜欢

转载自blog.csdn.net/qq_33833327/article/details/104793775