网站首页 > 技术教程 正文
操作系统:centos 7.9
下载
官网下载:http://nginx.org/en/download.html
wget -c http://nginx.org/download/nginx-1.22.0.tar.gz
安装依赖
yum install -y gcc-gcc++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
安装
tar -zxvf nginx-1.22.0.tar.gz -C /opt
cd /opt/nginx-1.22.0
//开启ngx_http_ssl_module模块
./configure --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module
make & make install
配置
vi /opt/nginx/conf/nginx.conf
配置端口
listen 80;
启动&重启
/opt/nginx/sbin/nginx 开启
/opt/nginx/sbin/nginx -s stop 停止
/opt/nginx/sbin/nginx -s reload //重新加载配置文件
参考链接
http://nginx.org/en/download.html
https://blog.csdn.net/sinat_27933301/article/details/104958330
猜你喜欢
- 2024-10-13 unix或centos离线安装jdk和nginx操作说明
- 2024-09-30 CentOS 7 用户怎样安装 LNMP(Nginx+PHP+MySQL)
- 2024-09-30 Nginx安装(Linux nginx安装)
- 2024-09-30 Centos7 安装nginx(Centos7 安装软件)
- 2024-09-30 Nginx进阶-如何安装Nginx服务?(nginx怎么安装)
- 2024-09-30 CentOS7如何安装最新版PHP7?Nginx或Apache该如何配置?
- 2024-09-30 如何在 CentOS 8 上安装 Nginx(centos8.2安装)
- 2024-09-30 CentOS安装nginx(Centos安装telnet服务)
你 发表评论:
欢迎- 最近发表
-
- Win10 TH2正式版官方ESD映像转换ISO镜像方法详解
- 使用iso镜像升级到Windows 10的步骤
- macOS Ventura 13.2 (22D49) Boot ISO 原版可引导镜像
- 安利一个用ISO镜像文件制作引导U盘的的小工具RUFUS
- CentOS 7使用ISO镜像配置本地yum源
- 用于x86平台的安卓9.0 ISO镜像发布下载:通吃I/A/N、完全免费
- AlmaLinux 9.6发布:升级工具、初步支持IBM Power虚拟化技术
- Rufus写入工具简洁介绍与教程(写入模式)
- 新硬件也能安装使用了,Edge版Linux Mint 21.3镜像发布
- 开源工程师:Ubuntu应该抛弃32位ISO镜像
- 标签列表
-
- 下划线是什么 (87)
- 精美网站 (58)
- qq登录界面 (90)
- nginx 命令 (82)
- nginx .http (73)
- nginx lua (70)
- nginx 重定向 (68)
- Nginx超时 (65)
- nginx 监控 (57)
- odbc (59)
- rar密码破解工具 (62)
- annotation (71)
- 红黑树 (57)
- 智力题 (62)
- php空间申请 (61)
- 按键精灵 注册码 (69)
- 软件测试报告 (59)
- ntcreatefile (64)
- 闪动文字 (56)
- guid (66)
- abap (63)
- mpeg 2 (65)
- column (63)
- dreamweaver教程 (57)
- excel行列转换 (56)
本文暂时没有评论,来添加一个吧(●'◡'●)