<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      OpenResty 使用介紹

      yum安裝

      http://openresty.org/cn/linux-packages.html#centos
      
      # add the yum repo:
      wget https://openresty.org/package/centos/openresty.repo
      sudo mv openresty.repo /etc/yum.repos.d/
      
      # update the yum index:
      sudo yum check-update
      
      # 安裝openresty
      sudo yum install -y openresty
      
      # 如果你想安裝命令行工具 resty
      sudo yum install -y openresty-resty

      # 包管理工具和文檔管理工具
      yum install -y openresty-opm

       

      源碼安裝

      yum install readline-devel pcre-devel openssl-devel
      https://openresty.org/download/openresty-1.21.4.1.tar.gz
      tar xf openresty-1.21.4.1.tar.gz 
      ./configure
      make
      make install

       管理命令

      # 檢查配置文件
      /usr/local/openresty/nginx/sbin/nginx  -t
      
      # 啟動(dòng)
      /usr/local/openresty/nginx/sbin/nginx 
      
      # 重新加載配置文件
      /usr/local/openresty/nginx/sbin/nginx -s reload
      
      # 停止
      /usr/local/openresty/nginx/sbin/nginx -s stop

       

      配置文件

      #user  nobody;
      worker_processes auto;
      
      #error_log  logs/error.log;
      #error_log  logs/error.log  notice;
      #error_log  logs/error.log  info;
      
      #pid        logs/nginx.pid;
      
      
      events {
          worker_connections 10024;
      }
      
      
      http {
          include       mime.types;
          default_type  application/octet-stream;
      
          #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
          #                  '$status $body_bytes_sent "$http_referer" '
          #                  '"$http_user_agent" "$http_x_forwarded_for"';
      
          log_format  main  escape=json '{ "@timestamp": "$time_local", '
                               '"remote_addr": "$remote_addr", '
                               '"upstream_addr": "$upstream_addr",'
                               '"remote_user": "$remote_user", '
                               '"body_bytes_sent": "$body_bytes_sent", '
                               '"request_time": "$request_time", '
                               '"status": "$status", '
                               '"request": "$request", '
                               '"request_method": "$request_method", '
                               '"http_referrer": "$http_referer", '
                               '"http_x_forwarded_for": "$http_x_forwarded_for", '
                               '"http_user_agent": "$http_user_agent",'
                               '"http_uri": "$uri",'
                               '"http_host":"$http_host",'
                   '"req_header": "$req_header",'
                               '"resp_body":"$resp_body" }';
      
          access_log  logs/access.log  main;
      
          client_max_body_size 20m;
          sendfile            on;
          tcp_nopush          on;
          tcp_nodelay         on;
          keepalive_timeout   65;
          types_hash_max_size 2048;
      
          #gzip  on;
          include /usr/local/openresty/nginx/conf/conf.d/*.conf;
      }
      nginx.conf
      server {
          listen 10001;
          lua_need_request_body on;
      
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Real-Port $remote_port;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      
          set $req_header "";
          header_filter_by_lua '
              local head = ngx.req.get_headers()
              for k,v in pairs(head) do 
                  ngx.var.req_header = ngx.var.req_header .. string.format("%s : %s, ",k,v)
              end 
          ';
      
          set $resp_body "";
          body_filter_by_lua '
              local resp_body = string.sub(ngx.arg[1], 1, 1000)
              ngx.ctx.buffered = (ngx.ctx.buffered or "") .. resp_body
              if ngx.arg[2] then
                  ngx.var.resp_body = ngx.ctx.buffered
              end
          ';
      
          location / {  
              default_type text/html;
              content_by_lua '
                  ngx.say("<p>Hello, World!</p>")
              ';
          }
      }
      hello.conf

       

      posted @ 2022-06-21 17:14  LiShiChao  閱讀(270)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 亚洲av色夜色精品一区| 性欧美vr高清极品| 日韩亚洲国产综合高清| 讷河市| 日韩精品久久不卡中文字幕| 国产熟女高潮一区二区三区| 婷婷开心色四房播播| 日韩内射美女人妻一区二区三区| 国产av一区二区午夜福利| 乐业县| 亚洲尤码不卡av麻豆| 无套内谢少妇一二三四| 亚洲性日韩精品一区二区三区| 国产av普通话对白国语| 四虎国产精品永久入口| 在线亚洲午夜片av大片| 狠狠躁夜夜躁无码中文字幕 | 日韩国产中文字幕精品| 日韩精品一区二区三区中文无码| 欧洲精品色在线观看| 沧源| 无遮挡午夜男女xx00动态| 噜噜综合亚洲av中文无码| 精品国产品香蕉在线| 2020国产欧洲精品网站| 亚洲精品国产熟女久久久| 丰满人妻被黑人连续中出| 赤城县| 亚洲少妇人妻无码视频| 国产精品久久亚洲不卡| 亚洲大尺度一区二区av| 国产三级精品三级| 婷婷丁香五月六月综合激情啪| 亚洲中文字幕精品无人区| 亚洲欧美中文日韩V日本| 婷婷五月综合丁香在线| 中文字幕乱码熟妇五十中出| 亚洲精品97久久中文字幕无码| 泽普县| 免费看黄色亚洲一区久久| 国产乱人伦AV在线麻豆A|