###########mysql###########1.mysql安装(1)tarzxfmysql-boost-5.7.17.tar.gz(2)yuminstallcmake-2.8.12.2-4.el6.x86_64.rpm-ycdmysql-5.7.17/(3)cmake-DCMAKE_INSTALL_PREFIX=/usr/local/lnmp/mysql-DMYSQL_DATADI=/usr/local/lnmp/mysql/data-DMYSQL_UNIX_ADDR=/usr/local/ln..
分类:
数据库 时间:
2017-07-27 22:35:04
阅读次数:
278
一、mysql的安装:1.getmysql-boost-5.7.17.tar.gz(from老吴)使用mysql-boost-5.7.17.tar.gz时,查看df-h,物理空间应该大于10Gtarzxfmysql-boost-5.7.17.tar.gz##解压mysql,会发现解压完后du-sh是500+M2.软件包依赖性:在cmake过程中需要使用到gcc、gcc-c++编译器、ncurses-..
分类:
其他好文 时间:
2017-07-23 22:57:38
阅读次数:
433
1. 目的 动态修改 html 页面内容 2. 使用方式 openresty 在 header_filter 阶段 以及body_filter 阶段进行数据修改 3. 源码 此方法是实现一个追加 js 到html 页面,同时将原有页面信息转为大写 location /{ root html; ind ...
分类:
其他好文 时间:
2017-07-07 11:47:56
阅读次数:
381
查看系统版本 [root@localhost redis-3.2.9]# cat /etc/system-release CentOS Linux release 7.3.1611 (Core) 下载OpenResty,下载地址:https://openresty.org/cn/download.h ...
分类:
其他好文 时间:
2017-07-06 00:30:29
阅读次数:
783
OpenResty是一个基于 Nginx 与 Lua 的高性能 Web 平台,其内部集成了大量精良的 Lua 库、第三方模块以及大多数的依赖项。用于方便地搭建能够处理超高并发、扩展性极高的动态 Web 应用、Web 服务和动态网关(摘自官网)。本文将会介绍如何在Centos7上,安装Nginx+Lu ...
分类:
其他好文 时间:
2017-06-21 23:09:29
阅读次数:
445
1. 安装 opm get p0pr0ck5/lua-resty-logger-socket opm get p0pr0ck5/lua-resty-logger-socket 2. 使用 location lua_by_lua_block log_by_lua_block { local logge ...
分类:
其他好文 时间:
2017-06-19 23:22:50
阅读次数:
1477
1. kong api gateway Github: https://github.com/Mashape/kong 2. Lapis web 开发框架 Github: https://github.com/leafo/lapis 3. Vanilla web 开发框架 Github: https ...
分类:
其他好文 时间:
2017-06-19 09:48:59
阅读次数:
214
1. jwt opm get SkyLothar/lua-resty-jwt opm get SkyLothar/lua-resty-jwt 2. cookie opm get p0pr0ck5/lua-resty-cookie opm get p0pr0ck5/lua-resty-cookie 3 ...
分类:
其他好文 时间:
2017-06-18 21:45:05
阅读次数:
250
1. 原理 a. 从redis 获取需要表示的短链接的id( redis incr) b. hashids 编码 id c. openresty conteent_by_lua_block 阶段显示数据 2. 安装以来的插件 a. lua hashdis 使用 luarocks 注意需要先安装lua... ...
分类:
其他好文 时间:
2017-06-18 11:50:43
阅读次数:
183
https://github.com/openresty/lua-nginx-module#ngxexec 参照:http://blog.csdn.net/weiyuefei/article/details/38434797 在Nginx中实现重定向可以通过rewrite指令,具体可参考《Nginx ...