// 直接安装
sudo dnf install nginx # CentOS 8+/RHEL 8+
sudo systemctl start nginx
1. 检查、安装依赖
(1) GCC(GNU Compiler Collection)编译 C/C++ 程序的工具。gcc-c++ 是 C++ 编译器。
rpm -q gcc // 查看版本 yum install gcc gcc-c++ // 安装
(2)PCRE(Perl Compatible Regular Expressions)正则表达式库,Nginx用它处理正则表达式
rpm -q pcre // 查看版本 yum install -y pcre pcre-devel // 安装
(3) Zlib 是一个用于数据压缩的库,Nginx 使用它来支持 Gzip 压缩。
rpm -q zlib // 查看版本 yum install -y zlib-devel

&spm=1001.2101.3001.5002&articleId=145693531&d=1&t=3&u=082b1df619d3445d84b44f7a9d7ba4a5)
4148

被折叠的 条评论
为什么被折叠?



