2021年2月26日

ngx-lua相关命令

摘要: nginx文件 lua_code_cache off; content_by_lua_file /usr/local/openresty/lualib/project/grays/grays.lua; lua文件 ngx.header.content_type="text/plain"; ngx.s 阅读全文

posted @ 2021-02-26 20:23 木林coder 阅读(58) 评论(0) 推荐(0) 编辑

2021年2月25日

ngx-lua

摘要: http { set $test 'hello world'; location \ { content_by_lua ' ngx.header.content_type="text/plain"; ngx.say (ngx.var.test); '; } } 阅读全文

posted @ 2021-02-25 21:10 木林coder 阅读(84) 评论(0) 推荐(0) 编辑

六星lua安装

摘要: wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz tar -zxvf LuaJIT-2.0.5.tar.gz cd LuaJIT-2.0.5 make && make install PREFIX=/usr/local/LuaJIT export 阅读全文

posted @ 2021-02-25 11:20 木林coder 阅读(66) 评论(0) 推荐(0) 编辑

编译安装nginx

摘要: https://www.cnblogs.com/luobiao320/p/7189934.html 阅读全文

posted @ 2021-02-25 10:40 木林coder 阅读(29) 评论(0) 推荐(0) 编辑

2021年2月24日

nginx.conf-2

摘要: server { listen 80; server_name 120.78.64.28; location / { limit_req zone=one ; root /usr/local/nginx/html; index index.html index.htm index.php; #if 阅读全文

posted @ 2021-02-24 15:46 木林coder 阅读(70) 评论(0) 推荐(0) 编辑

nginx.conf

摘要: user root; worker_processes 1; worker_priority -15; worker_cpu_affinity auto; #error_log logs/error.log; #error_log logs/error.log notice; #error_log 阅读全文

posted @ 2021-02-24 15:44 木林coder 阅读(118) 评论(0) 推荐(0) 编辑

redis-cluster

摘要: version: "3.6" services: #服务 master: image: redis container_name: master networks: redis-network: ipv4_address: 192.168.1.11 #设置ip地址 working_dir: /usr 阅读全文

posted @ 2021-02-24 15:14 木林coder 阅读(71) 评论(0) 推荐(0) 编辑

2021年2月11日

cluster相关操作

摘要: https://segmentfault.com/a/1190000014499174 //docker搭建cluster环境教程 https://zhuanlan.zhihu.com/p/455651071?utm_id=0 设置主从 redis-cli -a 123456 -h 120.78.6 阅读全文

posted @ 2021-02-11 08:41 木林coder 阅读(52) 评论(0) 推荐(0) 编辑

2021年2月7日

redis哨兵启动

摘要: #能够编排管理3个容器,php,redis,nginx version: "3.6" services: #服务 master: image: redis container_name: master networks: redis-network: ipv4_address: 192.168.1. 阅读全文

posted @ 2021-02-07 12:13 木林coder 阅读(220) 评论(0) 推荐(0) 编辑

sentinel.conf 哨兵配置

摘要: Example sentinel.conf *** IMPORTANT *** By default Sentinel will not be reachable from interfaces different than localhost, either use the 'bind' dire 阅读全文

posted @ 2021-02-07 11:39 木林coder 阅读(114) 评论(0) 推荐(0) 编辑

导航