下载nginx
检查是否安装了依赖库:
[[email protected] ~]# rpm -q gcc gcc-4.8.5-11.el7.x86_64 [[email protected] ~]# rpm -q openssl openssl-1.0.1e-60.el7_3.1.x86_64 [[email protected] ~]# rpm -q zlib zlib-1.2.7-17.el7.x86_64 [[email protected] ~]# rpm -q pcre pcre-8.32-15.el7_2.1.x86_64
都安装了
/usr/local/文件夹下创建nginx
将下载文件迁移到该nginx文件夹下,并解压
安装nginx
./configure && make && make install
https://my.oschina.net/liucao/blog/470241
时间: 2024-10-21 05:35:21