当前位置: 首页 > news >正文

网站 后台模板wordpress修改订阅者

网站 后台模板,wordpress修改订阅者,93zyz资源网站生态文明建设为,想要网站推广页文章目录openEuler2403编译安装Nginx一、前言1.简介2.环境二、正文1.安装依赖包2.编译安装3.常用指令4.常用模块1)http模块2)Stream 模块3)其他常用模块4)第三方模块5)示例openEuler2403编译安装Nginx 一、前言 1.简…

文章目录

  • openEuler2403编译安装Nginx
  • 一、前言
    • 1.简介
    • 2.环境
  • 二、正文
    • 1.安装依赖包
    • 2.编译安装
    • 3.常用指令
    • 4.常用模块
      • 1)http模块
      • 2)Stream 模块
      • 3)其他常用模块
      • 4)第三方模块
      • 5)示例

openEuler2403编译安装Nginx

一、前言

1.简介

nginx(“ engine x”)是一个 HTTP Web 服务器、反向代理、内容缓存、负载均衡器、TCP/UDP 代理服务器和邮件代理服务器

2.环境

Linux 发行版:openEuler-24.03-LTS-SP2-x86_64-dvd.iso

Nginx 版本:nginx-1.28.0

nginx 官网:https://dbeaver.io/

nginx-download:https://nginx.org/en/download.html

nginx入门和使用实践:https://blog.csdn.net/u011424614/article/details/107051875

openEuler常用操作指令:https://blog.csdn.net/u011424614/article/details/150942929

openEuler中LVM调整实现home与root分区空间平衡:https://blog.csdn.net/u011424614/article/details/150961763

openEuler安装部署JDK11:https://blog.csdn.net/u011424614/article/details/150961633

openEuler2403安装部署MySQL8:https://blog.csdn.net/u011424614/article/details/150966094

VirtualBox安装openEuler24.03:https://blog.csdn.net/u011424614/article/details/150725588

VMware安装openEuler24.03:https://blog.csdn.net/u011424614/article/details/150723134

二、正文

1.安装依赖包

dnf install pcre-devel zlib-devel openssl-devel

2.编译安装

  • NGINX 官网下载

在这里插入图片描述

  • 下载链接右击,可拷贝下载链接
# 创建下载目录,并进入目录
mkdir /opt/nginx && cd /opt/nginx# 下载软件包,如果 wget 无法下载,可使用浏览器或迅雷下载
wget https://nginx.org/download/nginx-1.28.0.tar.gz# 解压
tar -zxvf nginx-1.28.0.tar.gz#创建安装目录,并进入源码目录
mkdir /opt/nginx/install && cd nginx-1.28.0/# 配置安装路径,启用SSL和流模块
./configure --prefix=/opt/nginx/install --with-http_ssl_module --with-stream
# 编译安装
make && make install# 进入安装目录的sbin
cd /opt/nginx/install/sbin

3.常用指令

  • 启动和停止
# 启动 Nginx
./nginx
# 停止 Nginx(快速停止)
./nginx -s stop
# 优雅停止 Nginx(处理完当前请求后停止)
./nginx -s quit
# 重启 Nginx
./nginx -s reload 
# 重新打开日志文件
./nginx -s reopen
  • 配置管理
# 测试配置文件语法
./nginx -t
# 测试配置文件并显示详细信息
./nginx -T
# 指定配置文件启动,注意替换安装目录
./nginx -c /opt/nginx/install/conf/nginx.conf 
# 显示版本信息
./nginx -v
  • 进程管理
# 查看 Nginx 进程
ps aux | grep nginx 
# 查看 Nginx 监听端口 
netstat -tlnp | grep nginx 
ss -tlnp | grep nginx
# 杀死所有 Nginx 进程
pkill nginx
  • 日志(注意替换安装目录)
# 查看访问日志
tail -f /opt/nginx/install/logs/access.log  
# 查看错误日志 
tail -f /opt/nginx/install/logs/error.log 
# 实时监控日志
tail -f /opt/nginx/install/logs/access.log  | grep "pattern"
  • 防火墙
# 测试环境
systemctl stop firewalld.service
systemctl disable firewalld.service# 生产环境,建议使用
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
# 查看防火墙已开放端口
firewall-cmd --zone=public --list-ports
  • 测试访问:http://192.168.249.52/

在这里插入图片描述

4.常用模块

1)http模块

  • 基础功能模块
--with-http_ssl_module          # SSL/TLS 加密支持
--with-http_v2_module           # HTTP/2 支持 
--with-http_realip_module       # 获取真实客户端IP
--with-http_stub_status_module  # 状态监控统计
--with-http_gzip_static_module  # 预压缩文件传输
  • 认证和安全模块
--with-http_auth_request_module # 请求认证
--with-http_secure_link_module  # 安全链接
--with-http_sub_module          # 字符串替换
--with-http_addition_module     # 内容添加
  • 缓存和压缩模块
--with-http_gunzip_module       # gzip解压缩 
--with-http_gzip_static_module  # 静态gzip文件
--with-http_slice_module        # 大文件分片 

2)Stream 模块

  • TCP/UDP代理
--with-stream                   # Stream核心模块 
--with-stream_ssl_module        # Stream SSL支持
--with-stream_realip_module     # Stream真实IP获取

3)其他常用模块

--with-pcre                     # 正则表达式支持
--with-file-aio                 # 异步文件I/O
--with-threads                  # 线程池支持
--with-mail                     # 邮件代理模块 
--with-mail_ssl_module          # 邮件SSL支持

4)第三方模块

--add-module=/path/to/module    # 添加第三方模块 
--add-dynamic-module=/path/to/module  # 动态模块 

5)示例

  • 根据实际需求选择启用的模块,避免不必要的功能占用资源
./configure \
--prefix=/opt/nginx/install \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_realip_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-stream \
--with-stream_ssl_module \
--with-threads \
--with-file-aio 
http://www.dtcms.com/a/527175.html

相关文章:

  • 做窗帘的效果图网站怎么快速推广
  • 纯flash网站北京菜谱设计制作公司
  • 网站视频下载到手机怎么做提升网站建设品质价位
  • 合肥网站建设哪里有wordpress仿
  • 中国网站免费服务器p2p网站开发方法
  • 天津网站制作工具信息技术会考做网站
  • 做阿里渠道的销售要有哪些网站免费招工人在哪个网站
  • 合肥网站建设排名龙岩网站建设极速建站
  • 网站使用帮助建设银行辽宁省分行网站
  • 烟台广告公司网站建设东莞智通人才网首页
  • 网站文章发布网络推广和网络运营
  • 深圳网站建设李天亮网页版哔哩哔哩怎么下载视频
  • 网站开发到上线需要多久超市建网站
  • 自己做网站卖二手车网站配色表
  • 游戏网站建设与策划网站建设优劣的评价标准
  • php网站成品中国移动官方官网
  • 电商网站做互联网金融15个平面设计图素材网站
  • seo排名工具站长广东阳江最新消息
  • 网站开发要什么样的环境wordpress数据库结构
  • 如何提高网站seo排名极速微网站建设cms
  • 贵州建设厅二建考试网站上海外贸出口代理公司
  • 宁波网站seo定制网站建设的书籍
  • 搜寻的网站有哪些重庆营销型网站开发公司
  • 网站右侧浮动寮步建设网站
  • phpcms 多语言网站苏州专业高端网站建设公司
  • 网站开发代理合同写wordpress博客程序
  • 微电影网站源码xiazai做官网的步骤
  • 青岛网站建设eoe手机赚钱一天400元
  • 网站建设企业公司正规营销型网站培训中心
  • 专做婚礼logo的网站门户网站建设需要多少钱