1、安装所需要的依赖 gcc-c++、openssl、pcre、zlib
rpm -Uvh --force --nodeps ./gcc-c++/*.rpm
rpm -Uvh --force --nodeps ./openssl/*.rpm
rpm -Uvh --force --nodeps ./pcre/*.rpm
rpm -Uvh --force --nodeps ./zlib/*.rpm
注意: 最后跟的是依赖所在的路径
2、下载nginx安装包,下载地址:http://nginx.org/en/download.html
3、解压安装包,安装到/usr/local/nginx
tar -zxvf 安装包名
4、进入解压包中,开始手动编译文件,依次执行一下命令
./configure
make
make install
5、启动nginx: /usr/local/nginx/sbin/nginx
6、验证是否安装成功:
ps -ef|grep nginx
依赖包获取路径:
链接:https://pan.baidu.com/s/1zD1aK2zjgTXp_7RAcQcYmA
提取码:nnrr
&spm=1001.2101.3001.5002&articleId=126667911&d=1&t=3&u=a26c082a65e04b8490f7d1c77ec88724)
2191

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



