09 2020 档案

摘要:#!/bin/sh # # chkconfig: 2345 55 25 # Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx # For Debian, run: update-rc.d  阅读全文
posted @ 2020-09-30 00:19 骑着蜗牛看海呀 阅读(748) 评论(0) 推荐(0)
摘要:1. 下载librdkafka 2、解压 3.编译:make && make install 4. 环境变量指定PKG_CONFIG_PATH: export PKG_CONFIG_PATH=/usr/lib/librdkafka/src/ 阅读全文
posted @ 2020-09-27 11:10 骑着蜗牛看海呀 阅读(1389) 评论(0) 推荐(0)
摘要:1、查看网络带宽 nload 阅读全文
posted @ 2020-09-16 20:20 骑着蜗牛看海呀 阅读(100) 评论(0) 推荐(0)
摘要:1、获取http请求nethod ngx.req.get_method() 2、获取请求体body ngx.req.get_body_data() ngx.req.read_body() 3、获取请求参数args ngx.req.get_uri_args() 4、获取时间日期相关函数 ngx.tod 阅读全文
posted @ 2020-09-14 19:22 骑着蜗牛看海呀 阅读(471) 评论(0) 推荐(0)
摘要:1、查询所有文档 GET _search { "query": { "match_all": {} } } 2、查询所有(指定)索引 GET _cat/indices GET _cat/indices/index_name 阅读全文
posted @ 2020-09-05 19:19 骑着蜗牛看海呀 阅读(132) 评论(0) 推荐(0)
摘要:1.linux查看占用内存最多的程序 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head 2.查看占用cpu最多的程序 ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head 阅读全文
posted @ 2020-09-03 09:20 骑着蜗牛看海呀 阅读(112) 评论(0) 推荐(0)
摘要:1. 新建search.sh脚本,写入以下shell脚本: #!/bin/sh # lazy find # GNU All-Permissive License # Copying and distribution of this file, with or without modification 阅读全文
posted @ 2020-09-01 11:20 骑着蜗牛看海呀 阅读(369) 评论(0) 推荐(0)