码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
gin
上下文设置变量 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
通过filebeat的modules搜集nginx日志
前提安装好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 服务以及日志切割方法小结 [Logrotate、python、shell脚本实现 ]
功能:rsyslog 负责写入日志, logrotate负责备份和删除旧日志, 以及更新日志文件。 一 rsyslog服务 配置文件(/etc/rsyslog.conf) # rsyslog configuration file # For more information see /usr/sha ...
分类:编程语言   时间:2020-07-10 14:56:12    阅读次数:106
php实现浏览器端大文件分块上传
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
JSR223 和Beashell 使用方法
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
c#读取并异步写入文件
1.同步读取和写入 StreamReader objReader = new StreamReader("E://workspace//zzz//read.txt", Encoding.GetEncoding("utf-8")); string sLine = ""; ArrayList LineL ...
分类:Windows程序   时间:2020-07-10 13:41:07    阅读次数:171
【转】scala 时间、时间戳系列操作
格式说明: 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
python标准库之time,random
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
Rust执行cmd或shell命令
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!