CentOS6.x 安装 nginx-1.19.4
2024-09-03 14:57:57
1、下载nginx
http://nginx.org/en/download.html
wget http://nginx.org/download/nginx-1.19.4.tar.gz
2、解压,进入目录
tar -zxvf nginx-1.19.4.tar.gz
cd nginx-1.19.4.tar.gz
3、编译安装到/usr/local/nginx119
./configure --prefix=/usr/local/nginx119
报错:./configure: error: the HTTP rewrite module requires the PCRE library.
解决:yum -y install pcre-devel openssl openssl-devel
再次 ./configure --prefix=/usr/local/nginx119
通过
make -j
make install
4、查看安装是否成功
cd /usr/local/nginx119/sbin
./nginx
5、旧版本配置文件迁移
最新文章
- 2013最新版Subversion 1.7.10 for Windows x86 + Apache 2.4.4 x64 安装配置教程+错误解决方案
- JS中级 - 02:表单、表格
- 【iOS】XcodeColors插件与CocoaLumberjack工具
- 【poj1745】 Divisibility
- IP地址子网掩码、主机数、子网掩码及主机段的算法
- bzoj1492--斜率优化DP+cdq分治
- Flip Game poj 1753
- [JS]手动实现一个横屏滚动公告js插件
- Java (三、数组)
- 多线程--wait()和notify(),Thread中的等待和唤醒方法
- 如何用java发送Http的post请求,并传递参数
- mfc 中的error RC2104 : undefined keyword or key name
- 快速做ssh免密钥登陆
- 在django中使用django_debug_toolbar进行日志记录
- 在Unity中使用Lua脚本
- Ajax异步提交造成变量undefined
- SRM467
- ldap objectclass
- [转]关闭WIN7“程序兼容性助理”
- Effective C++ 避免数组多态