上下文设置变量 package main import ( "fmt" "github.com/gin-gonic/gin" "time" ) func MiddleWare() (gin.HandlerFunc){ return func(c *gin.Context) { t:=time.Now ...
分类:
其他好文 时间:
2020-07-10 14:59:21
阅读次数:
95
前提安装好ES和Kibana NGINX日志格式如下 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http ...
分类:
其他好文 时间:
2020-07-10 14:57:44
阅读次数:
123
功能:rsyslog 负责写入日志, logrotate负责备份和删除旧日志, 以及更新日志文件。 一 rsyslog服务 配置文件(/etc/rsyslog.conf) # rsyslog configuration file # For more information see /usr/sha ...
分类:
编程语言 时间:
2020-07-10 14:56:12
阅读次数:
106
PHP用超级全局变量数组$_FILES来记录文件上传相关信息的。 1.file_uploads=on/off 是否允许通过http方式上传文件 2.max_execution_time=30 允许脚本最大执行时间,超过这个时间就会报错 3.memory_limit=50M 设置脚本可以分配的最大内存 ...
分类:
Web程序 时间:
2020-07-10 13:44:42
阅读次数:
87
A.JSR223 是基于 groovy 的语法,所以先了解下常用 JSR223 的方法 1. log:用来记录日志文件,写入到 jmeber.log 文件,使用方法:log.info(“This is log info!”); 2. ctx ( JmeterContext ) 通 过 它 来 访 问 ...
分类:
Web程序 时间:
2020-07-10 13:42:04
阅读次数:
84
1.同步读取和写入 StreamReader objReader = new StreamReader("E://workspace//zzz//read.txt", Encoding.GetEncoding("utf-8")); string sLine = ""; ArrayList LineL ...
格式说明: Letter Date or Time Component Presentation Examples G Era designator Text AD y Year Year 1996; 96 Y Week year Year 2009; 09 M Month in year Mont ...
分类:
其他好文 时间:
2020-07-10 13:30:43
阅读次数:
149
select * from show_center.biz_show where show_Name like '%黑小鸭%' order by update_time desc limit 10; select * from show_center.std_show where show_Name ...
分类:
其他好文 时间:
2020-07-10 13:08:57
阅读次数:
72
1.time库: 获取当前本地时间:time.localtime() 获取本地时间字符串:time.ctime() 获取世界UTC时间:time.gmtime() 休眠:time.sleep() 获去时间戳:time.time() 获取时间的标准化输出:time.strftime("%Y-%m-%d ...
分类:
编程语言 时间:
2020-07-10 13:07:22
阅读次数:
82
use std::process::Command; // cmd_str可以是从输入流读取或从文件里读取 let cmd_str: String; if cfg!(target_os = "windows") { // 这里不用\\而是/的话会被windows认为/tmp的/t是一个option而 ...
分类:
系统相关 时间:
2020-07-10 13:06:03
阅读次数:
168