02 2020 档案
摘要:这时假设 package.path 的值是: /Users/dengjoe/lua/?.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lu
阅读全文
摘要:# nginx.conf http { # you do not need to configure the following line when you # use LuaRocks or opm. lua_package_path "/path/to/lua-resty-mlcache/lib
阅读全文
摘要:-- -- classic, object model. -- -- Copyright (c) 2014, rxi -- -- This module is free software; you can redistribute it and/or modify it under -- the t
阅读全文
摘要:lua 注释 1. 单行注释 -- 功能等同于C++中的// 2. 多行注释 --[[ 注释的内容 ]] 功能等同于C++中的 /**/ 3. 多行注释 --[ [ 注释和内容 ] ], 也等同于C++中的/**/, 这个主要用于注释的内容里面有像arr[arr2[idx]] 这种文本, 如果使用-
阅读全文
摘要:worker_processes 1; error_log logs/error.log; events { worker_connections 1024; } http { server { listen 8080; location /api { content_by_lua_block {
阅读全文
摘要:local cjson = require "cjson" local json = cjson.encode({ foo = "bar", some_object = {}, some_array = cjson.empty_array }) ngx.say(json) local functio
阅读全文
摘要:写在前面 在web服务端开发中,字符的编解码几乎每天都要打交道。编解码一旦处理不当,就会出现令人头疼的乱码问题。 不少从事node服务端开发的同学,由于对字符编码码相关知识了解不足,遇到问题时,经常会一筹莫展,花大量的时间在排查、解决问题。 文本先对字符编解码的基础知识进行简单介绍,然后举例说明如何
阅读全文
摘要:content_by_lua_block { ngx.req.read_body() -- explicitly read the req body local data = ngx.req.get_body_data() if data then ngx.say("body data:") ngx
阅读全文
摘要:数据库访问--第三方 http { upstream backend { drizzle_server 192.168.4.119:3306 protocol=mysql dbname=igirl user=root password=123456; drizzle_keepalive max=10
阅读全文
摘要:NGINX 1)命令 Nginx -s stop Nginx -s reload--重新加哉配置文件 Nginx -V 显示源码安装配置时设定的参数2)模块化软件./configure 默认安装一些模块如果要添加非默认模块,需要./configure --with-xx模块名称 启用内置模块 --a
阅读全文
摘要:Stylus Import Disclaimer: In all places the @import is used with Stylus sheets, the @require could be used When using @import without the .css extensi
阅读全文
摘要:默认块级元素,默认宽度100%,高度自适用,默认背景色无色 默认块级元素的浮动子元素,形成蛇形流浮动 margin-left属性的使用,会按照蛇形移动 浮动元素会丢失块级别默认特性,比如宽度100%,可以显式设置100%,使其具备浮动块级特性 浮动子元素内容会自动冲开父高度 通过浮动子元素设置: m
阅读全文
摘要:float和position:absolute脱离文本流的区别原创 paediatrician 最后发布于2016-09-19 10:43:05 阅读数 5375 收藏展开文档流:将窗体自上而下分成一行行, 并在每行中按从左至右的顺序排放元素,块状元素独占一行,内联元素不独占一行;CSS中脱离文档流
阅读全文
摘要:作为NGNIX服务器,暴露服务 8000/8443 代理服务 8001--管理服务 9542-kong采集性能服务 T
阅读全文
摘要:width is content width height is content height set margin and padding zero leads box to the same with content 外边距合并的概念,取相邻两个块的较大外边距合并
阅读全文

浙公网安备 33010602011771号