首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Linux Nginx 安装

Linux Nginx 安装

作者头像
ClearSeve
发布于 2022-02-10 18:41:17
发布于 2022-02-10 18:41:17
2.7K0
举报
文章被收录于专栏:ClearSeveClearSeve

系统: CentOS7 64位

代码语言:javascript
复制
# 基本依赖环境安装
yum -y install gcc pcre-devel zlib-devel openssl openssl-devel

nginx下载地址 查看历史所有版本 下载nginx-1.20.1.tar.gz,上传到任意目录即可,运行配置命令时候,可以指定具体的安装位置。

安装nginx

代码语言:javascript
复制
# 解压nginx
tar -zxvf nginx-1.20.1.tar.gz
cd nginx-1.20.1
# 运行nginx安装配置脚本
./configure --prefix=/usr/local/nginx

make && make insatll

报错:

checking for uint32_t … uint32_t not found, u_int32_t not found 解决方法: 安装 kernel-headers yum install kernel-headers kernel-devel gcc make -y

configure: error: the HTTP rewrite module requires the PCRE library. yum -y install pcre-devel

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年1月19日,如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • 报错:
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档