CentOS8.2下如何编译安装Nginx-1.19.6?
准备前提:阿里云CentOS8.2、Nginx-1.19.6
一.准备依赖包
yum -y install zlib-devel pcre-devel openssl-devel
二.准备nginx用户
useradd -M -s /sbin/nologin nginx
三.源码编译与安装
./configure –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-http_random_index_module –with-http_sub_module
make
make install
Nginx在LNMP中源码编译是最简单的!!!
四.文章中涉及的所有细节和软件包,可详细参考以下课程:
CentOS8 LNMP高性能商用架构,http://www.yzmedu.com/course/390
1 COMMENT