1 Star 14 Fork 2

陈全 / Nginx Dry Goods Tutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
01-Centos7安装Nginx.md 967 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2023-06-03 22:54 . initialize the project

一、安装编译工具及库文件

yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel

二、安装PCRE(PCRE 作用是让 Nginx 支持 Rewrite 功能)

##下载安装包 ##

cd /usr/local/src/

wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz

##解压安装包 ##

tar zxvf pcre-8.35.tar.gz

##进入安装包目录 ##

cd pcre-8.35

##编译安装 ##

./configure

make && make install

三、安装 Nginx

##下载 Nginx ##

cd /usr/local/src/

wget http://nginx.org/download/nginx-1.22.0.tar.gz

##解压nginx ##

tar zxvf nginx-1.22.0.tar.gz

##进入nginx安装目录##

cd nginx-1.22.0

##编译安装##

./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.35

make

make instal

##启动nginx##

/usr/local/webserver/nginx/sbin/nginx

##重新启动nginx##

/usr/local/webserver/nginx/sbin/nginx -s reload

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cangshanchenquan/nginx-dry-goods-tutorial.git
git@gitee.com:cangshanchenquan/nginx-dry-goods-tutorial.git
cangshanchenquan
nginx-dry-goods-tutorial
Nginx Dry Goods Tutorial
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891