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、旧版本配置文件迁移

最新文章

  1. 2013最新版Subversion 1.7.10 for Windows x86 + Apache 2.4.4 x64 安装配置教程+错误解决方案
  2. JS中级 - 02:表单、表格
  3. 【iOS】XcodeColors插件与CocoaLumberjack工具
  4. 【poj1745】 Divisibility
  5. IP地址子网掩码、主机数、子网掩码及主机段的算法
  6. bzoj1492--斜率优化DP+cdq分治
  7. Flip Game poj 1753
  8. [JS]手动实现一个横屏滚动公告js插件
  9. Java (三、数组)
  10. 多线程--wait()和notify(),Thread中的等待和唤醒方法
  11. 如何用java发送Http的post请求,并传递参数
  12. mfc 中的error RC2104 : undefined keyword or key name
  13. 快速做ssh免密钥登陆
  14. 在django中使用django_debug_toolbar进行日志记录
  15. 在Unity中使用Lua脚本
  16. Ajax异步提交造成变量undefined
  17. SRM467
  18. ldap objectclass
  19. [转]关闭WIN7“程序兼容性助理”
  20. Effective C++ 避免数组多态

热门文章

  1. day21 Pyhton学习 模块
  2. 【纯水题】CF 833A The Meaningless Game
  3. 实时离线一体化在资产租赁saas服务中使用
  4. 转 Swoole】用swoole简单实现MySQL连接池
  5. utf-8和utf-8-sig的区别
  6. xpath取末尾
  7. Centos7 安装python环境
  8. JS实现页面计时
  9. maven 配置文件 settings.xml pom.xml
  10. 实战四:Gateway网关作全局路由转发