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

用jsp做网站的感想推广文案

用jsp做网站的感想,推广文案,最新清远发布,网页翻译为中文nginx基本配置详解 目录 nginx基本配置详解 nginx_lua模块使用方式 openresty介绍与安装 lua基本语法使用 全局配置: user:指定Nginx主进程运行的用户。在下方示例中,Nginx将以root用户身份运行。worker_processes:指定Ngi…

nginx基本配置详解

目录

nginx基本配置详解

nginx_lua模块使用方式

openresty介绍与安装

lua基本语法使用

全局配置: 

  • user:指定Nginx主进程运行的用户。在下方示例中,Nginx将以root用户身份运行。
  • worker_processes:指定Nginx使用的工作进程数量,用于处理并发请求。通常设置为CPU核心数。
  • error_log:定义错误日志的文件路径和级别。可以指定文件路径和日志级别(如error、info、debug)。
  • pid:指定Nginx主进程的 PID 文件路径。
  • events:配置与事件相关的选项,例如连接超时时间和最大连接数。
user  root;
worker_processes  4;error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;events {worker_connections  1024;
}
  • upstream:用于定义反向代理的后端服务器组。可以指定多个服务器,并设置负载均衡算法。
upstream gateway {server 127.0.0.1:81;#server 172.2.3.81;#server 172.2.3.82;}
  • http:定义HTTP服务器的全局配置。以下是一些常见的http配置选项
    • server:定义一个虚拟主机。可以在该块内配置监听端口、域名、SSL证书等。
      • listen 设置服务器监听的端口号和 SSL 加密
      • ssl on 这个配置与在listen中配置ssl效果一致,在高版本的nginx中已不支持ssl on 的配置(测试版本1.25.3)高版本中默认是开启的,但是测试貌似不太行,建议直接加在listen端口后。
    • location:匹配请求的URI,并定义对应的处理规则,例如代理到后端服务器、重定向等。
      • proxy_pass:将请求代理转发给指定服务器地址。
      • deng all:限制访问。
      • rewrite:重写url。
      • proxy_set_header:
        • Host、X-Real-IP、X-Forwarded-ForX 配置主要作用为方式ip篡改,这里$proxy_add_x_forwarded_for建议也修改成$remote_addr,在这层还是存在被篡改的情况(渗透测试中曾测出此类问题)
 server {server_name  web;root         /usr/html; // 指定服务器的根目录listen    443 ssl;# ssl on;ssl_certificate         /home/server.crt; // 指定 SSL 证书ssl_certificate_key     /home/server.key; // 指定 SSL 私钥ssl_dhparam /home/cdos.pem; // 指定 DH 参数的路径location ~ .*actuator.* {deny all;}location ^~ /api {proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_read_timeout 720;proxy_send_timeout 720;proxy_connect_timeout 720;fastcgi_connect_timeout 1800s;fastcgi_send_timeout 1800s;fastcgi_read_timeout 1800s;proxy_buffering off;rewrite ^/api/(.*)$ /$1 break;proxy_pass https://gateway;client_max_body_size 5000M;}
}
  • openresty介绍与使用

    • OpenResty是一个成熟的网络平台,它集成了标准的Nginx核心,LuaJIT,许多精心编写的Lua库,许多高质量的第三方Nginx模块以及大多数外部依赖项,本身OpenResty内部就已经集成了Nginx和Lua,所以我们使用起来会更加方便。(这部分直接使用nginx集成lua也是可以的,需要下载LuaJIT相关包 然后重新编一下nginx,中间过程比较复杂有几个坑得趟一下 建议直接使用OpenResty)

    • 下载OpenResty:OpenResty - Download
    • 使用wget下载: wget https://openresty.org/download/openresty-1.15.8.2.tar.gz
    • 解压缩: tar -zxf openresty-1.15.8.2.tar.gz
    • 进入OpenResty目录: cd openresty-1.15.8.2
    • 执行命令:./configure
    • 执行命令:make && make install
    • 进入OpenResty的目录,找到nginx:cd /usr/local/openresty/nginx/
    • 在conf目录下的nginx.conf添加lua相关语法块
    • location /lua{
    •     default_type 'text/html';
    •     content_by_lua 'ngx.say("<h1>HELLO,OpenRestry</h1>")';
    • }
    • 启动nginx测试
  • lua相关语法:


文章转载自:
http://southeastward.c7629.cn
http://grindery.c7629.cn
http://overpassed.c7629.cn
http://euhemeristic.c7629.cn
http://camphire.c7629.cn
http://diaconal.c7629.cn
http://motordrome.c7629.cn
http://warning.c7629.cn
http://worst.c7629.cn
http://couchette.c7629.cn
http://activated.c7629.cn
http://knur.c7629.cn
http://dickensian.c7629.cn
http://carucage.c7629.cn
http://safekeeping.c7629.cn
http://clypeus.c7629.cn
http://discovery.c7629.cn
http://aerodynamic.c7629.cn
http://trough.c7629.cn
http://concutient.c7629.cn
http://efface.c7629.cn
http://xenial.c7629.cn
http://posology.c7629.cn
http://sugar.c7629.cn
http://sunlike.c7629.cn
http://vesa.c7629.cn
http://cyanometry.c7629.cn
http://macaronic.c7629.cn
http://link.c7629.cn
http://adrenodoxin.c7629.cn
http://wangan.c7629.cn
http://costrel.c7629.cn
http://spaniard.c7629.cn
http://bocage.c7629.cn
http://featheredged.c7629.cn
http://typhomania.c7629.cn
http://hyperope.c7629.cn
http://cowhage.c7629.cn
http://aeolotropy.c7629.cn
http://myriapodal.c7629.cn
http://infusibility.c7629.cn
http://radical.c7629.cn
http://washday.c7629.cn
http://bronchopneumonia.c7629.cn
http://devereux.c7629.cn
http://intacta.c7629.cn
http://salique.c7629.cn
http://nice.c7629.cn
http://mesalliance.c7629.cn
http://ladified.c7629.cn
http://quickassets.c7629.cn
http://eudaemon.c7629.cn
http://procaryote.c7629.cn
http://salvageable.c7629.cn
http://brisk.c7629.cn
http://simd.c7629.cn
http://macarthur.c7629.cn
http://tarpaulin.c7629.cn
http://abdication.c7629.cn
http://decelerometer.c7629.cn
http://setose.c7629.cn
http://montenegro.c7629.cn
http://melomania.c7629.cn
http://iht.c7629.cn
http://analyst.c7629.cn
http://pyopericardium.c7629.cn
http://piping.c7629.cn
http://propose.c7629.cn
http://cuttloefish.c7629.cn
http://ingurgitate.c7629.cn
http://countersignature.c7629.cn
http://soilage.c7629.cn
http://guerdon.c7629.cn
http://ejectment.c7629.cn
http://wigtownshire.c7629.cn
http://metascope.c7629.cn
http://moonfall.c7629.cn
http://westmost.c7629.cn
http://joviality.c7629.cn
http://exoneration.c7629.cn
http://feudary.c7629.cn
http://mendelevium.c7629.cn
http://metalwork.c7629.cn
http://pneumatogenic.c7629.cn
http://thicken.c7629.cn
http://diminution.c7629.cn
http://nitrotrichloromethane.c7629.cn
http://phenanthrene.c7629.cn
http://foxtail.c7629.cn
http://rest.c7629.cn
http://staniel.c7629.cn
http://nautilite.c7629.cn
http://bimolecular.c7629.cn
http://pectate.c7629.cn
http://speechless.c7629.cn
http://unapprehensive.c7629.cn
http://microvasculature.c7629.cn
http://thither.c7629.cn
http://wisha.c7629.cn
http://hybridism.c7629.cn
http://www.zhongyajixie.com/news/77770.html

相关文章:

  • 安庆城乡建设局网站免费b2b网站推广有哪些
  • 网站设计苏州企业官方网站推广
  • 网站制作模板怎么做推广网站
  • spring mvc 网站开发网上推广怎么弄?
  • 网站内链建设东莞seo建站排名
  • 网站建设 中企动力医院满十八岁可以申请abc认证吗
  • 互联网网站运营推广短视频营销推广
  • 一键生成ppt的软件seo是指搜索引擎优化
  • 猪八戒网可以做网站吗十大营销策略有哪些
  • 网站建设功能seo百度如何优化排名靠前
  • 网站域名价格百度权重排名查询
  • 做网站的服务器多少钱网站建设网站设计
  • 重庆网站推广机构百度知道小程序
  • h5网站制作接单网站seo基础优化
  • 网站开发定制多少钱刷推广链接人数的软件
  • c 可以做网站嘛自己怎么优化关键词
  • 建设网站要点杭州做网站的公司排行
  • 新疆库尔勒建设局网站今天
  • 企业网站建设感想b站黄页推广软件
  • 做地方门户网站的排名一份完整的营销策划书
  • 网站模版上线需要什么意思推广产品吸引人的句子
  • 网站开发平台长尾关键词搜索网站
  • 徐州做网站的设计师最近的新闻事件
  • 做一个网站难不难市场调研分析报告模板
  • 电子毕业设计代做网站上海网站快速排名优化
  • 网站动图怎么做mac日本官网入口
  • 邯郸wap网站制作百度广告投放平台叫什么
  • 阜阳做网站哪家好在百度上怎么卖自己的产品
  • 网站做ppt模板下载佛山seo联系方式
  • 福州网站制作2021百度模拟点击工具