“Openresty基础”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
(创建页面,内容为“=install= <pre> sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo sudo yum install -y openresty </…”)
 
 
(未显示同一用户的16个中间版本)
第1行: 第1行:
 +
  [[category:ops]]
 
=install=
 
=install=
 
<pre>
 
<pre>
第7行: 第8行:
  
  
==
+
=config=
 +
<pre>
 +
 
 +
ln -s /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx
 +
nginx  -t
 +
nginx  -s reload
 +
 
 +
vi  /usr/local/openresty/nginx/conf/nginx.conf 
 +
 
 +
#add
 +
  # hailuo  2020
 +
  server {
 +
    listen 80;
 +
  #  listen 443 ssl;
 +
    server_name  prehailuo.com;
 +
 
 +
 
 +
#      ssl_certificate      /etc/nginx/ssl/hailuo.crt ;
 +
#      ssl_certificate_key  /etc/nginx/ssl/hailuo.key;
 +
#      ssl_session_cache    shared:SSL:1m;
 +
#      ssl_session_timeout  5m;
 +
#      ssl_ciphers  HIGH:!aNULL:!MD5;
 +
#      ssl_prefer_server_ciphers  on;
 +
 
 +
    client_max_body_size 100m;
 +
  client_body_timeout 300;
 +
    keepalive_timeout  300;
 +
    client_header_timeout 300;
 +
 
 +
proxy_ignore_client_abort on;
 +
 
 +
#    access_log      /var/log/nginx/nexy.bcom.log main;
 +
    error_log      /var/log/nginx/nexy.bcom.error.log;
 +
 
 +
 
 +
 
 +
 
 +
    location / {
 +
          root /data/www/prod-fe-staging--hailuo-admin-web;
 +
          try_files $uri $uri/ /index.html;
 +
#        proxy_set_header X-Real-IP $remote_addr;
 +
#        #        proxy_set_header Host $host;
 +
#        #        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 +
#        #        proxy_pass http://nexy.hailuo.pro_servers;
 +
#
 +
}
 +
 
 +
  }
 +
#hailuo the end
 +
</pre>
 +
=References=
 +
 
 +
有关PHP
 +
[https://cloud.tencent.com/developer/article/1516617 3-OpenResty 配置PHP]
 +
 
 +
[https://segmentfault.com/a/1190000038476057 从零搭建php环境-openresty]
 +
 
 +
[https://blog.csdn.net/CapejasmineY/article/details/104372410 LNMP架构——OpenResty实现php缓存前移(将memcache移到nginx前端层面)]
 +
 
 +
 
 +
[https://www.geek-share.com/detail/2791581351.html  Openresty常用指令和参数 ]
 +
 
 +
[https://www.cnblogs.com/jimodetiantang/p/9257819.html  OpenResty之指令与常用API ]
 +
 
 +
 
 +
[https://www.cnblogs.com/landpack/p/6979122.html openresty使用笔记(一)]
 +
 
 +
[https://moonbingbing.gitbooks.io/openresty-best-practices/ngx/nginx_brief.html OpenResty 最佳实践]
 +
 
 +
[https://yuerblog.cc/2018/02/13/learn-openresty/ openresty入门]
 +
 
 +
[https://www.jianshu.com/p/a1fb8153dd2d OpenResty安装、配置与使用]
 +
 
 +
[https://segmentfault.com/a/1190000005670968 OpenResty安装、配置与使用]
 +
 
 +
[https://blog.csdn.net/z960339491/article/details/80915239 在原有的nginx上面安装Openresty和lua相关的模块]
 +
 
 +
[https://www.runoob.com/w3cnote/openresty-intro.html OpenResty 使用介绍]
 +
 
 +
[https://www.jianshu.com/p/76e36c806f3d 第二章 OpenResty(Nginx+Lua)开发入门]
 +
 
 +
 
 +
[https://blog.csdn.net/lupengfei1009/article/details/86062644 OpenResty(Nginx+Lua)高并发最佳实践]
 +
 
 +
[http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html agentzh 的 Nginx 教程(版本 2019.07.31)]
 +
 
 +
[https://blog.csdn.net/jwentao01/article/details/95341994 Nginx(含lua模块)安装(Linux)]
 +
 
 +
[https://fsp1yjl.github.io/2019/02/16/201902-%E4%B8%AA%E4%BA%BA%E5%AF%B9openresty%E4%BD%BF%E7%94%A8%E7%9A%84%E5%8F%8D%E6%80%9D/ 个人对openresty使用的反思]

2021年10月21日 (四) 11:09的最新版本

install

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
sudo yum install -y openresty


config


ln -s /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx
 nginx  -t 
nginx  -s reload

vi  /usr/local/openresty/nginx/conf/nginx.conf  

#add
   # hailuo  2020
   server {
    listen 80;
  #  listen 443 ssl;
    server_name  prehailuo.com;


 #      ssl_certificate      /etc/nginx/ssl/hailuo.crt ;
 #      ssl_certificate_key  /etc/nginx/ssl/hailuo.key;
 #      ssl_session_cache    shared:SSL:1m;
 #      ssl_session_timeout  5m;
 #      ssl_ciphers  HIGH:!aNULL:!MD5;
 #      ssl_prefer_server_ciphers  on;

    client_max_body_size 100m;
   client_body_timeout 300;
    keepalive_timeout  300;
    client_header_timeout 300;

 proxy_ignore_client_abort on;

#    access_log      /var/log/nginx/nexy.bcom.log main;
    error_log       /var/log/nginx/nexy.bcom.error.log;




    location / {
          root /data/www/prod-fe-staging--hailuo-admin-web;
          try_files $uri $uri/ /index.html;
#        proxy_set_header X-Real-IP $remote_addr;
#        #        proxy_set_header Host $host;
#        #        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#        #        proxy_pass http://nexy.hailuo.pro_servers;
#
 }

   } 
#hailuo the end 

References

有关PHP 3-OpenResty 配置PHP

从零搭建php环境-openresty

LNMP架构——OpenResty实现php缓存前移(将memcache移到nginx前端层面)


Openresty常用指令和参数

OpenResty之指令与常用API


openresty使用笔记(一)

OpenResty 最佳实践

openresty入门

OpenResty安装、配置与使用

OpenResty安装、配置与使用

在原有的nginx上面安装Openresty和lua相关的模块

OpenResty 使用介绍

第二章 OpenResty(Nginx+Lua)开发入门


OpenResty(Nginx+Lua)高并发最佳实践

agentzh 的 Nginx 教程(版本 2019.07.31)

Nginx(含lua模块)安装(Linux)

个人对openresty使用的反思