上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 70 下一页
摘要: 1.选出对应时间的日志 sed -ne '/15\/Dec\/2020:09:00:04 +0800/,/15\/Dec\/2020:10:38:54 +0800/p' access.log |grep -v 'HEAD / HTTP/1.1' > /tmp/all-ip.txt 2.统计独立访问i 阅读全文
posted @ 2020-12-15 11:17 littlevigra 阅读(115) 评论(1) 推荐(0) 编辑
摘要: 1.Nginx 作为服务器时,获取客户端真实 IP 使用 http_realip_module,默认安装的 Nginx 是没有安装这个模块的,需要重新编译 Nginx 增加 --with-http_realip_module。 wget http://nginx.org/download/nginx 阅读全文
posted @ 2020-12-15 00:06 littlevigra 阅读(1650) 评论(3) 推荐(0) 编辑
摘要: 1.Quick setup — if you’ve done this kind of thing before https://github.com/littlevigra/django-urls-mgr 2.create a new repository on the command line 阅读全文
posted @ 2020-12-13 20:51 littlevigra 阅读(200) 评论(1) 推荐(0) 编辑
摘要: 1.curl -O https://arthas.aliyun.com/arthas-boot.jar 2.java -jar arthas-boot.jar # 查看当前进程中前3个占用cpu比较高的线程 thread -n 3 Linux环境下使用Arthas定位cpu飙高问题 - qudehu 阅读全文
posted @ 2020-12-12 10:24 littlevigra 阅读(7232) 评论(2) 推荐(0) 编辑
摘要: 1.kubectl create cm license-config --from-file=fenghui_20501231_1000_2.lic -n daoyi-pord 2.kubectl describe cm license-config -n daoyi-prod 阅读全文
posted @ 2020-12-11 00:06 littlevigra 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1.安装node,npm wget https://nodejs.org/dist/v14.15.1/node-v14.15.1-linux-x64.tar.xz tar -xf node-v14.3.0-linux-x64.tar.xz mv node-v14.3.0-linux-x64 /opt 阅读全文
posted @ 2020-12-08 20:40 littlevigra 阅读(141) 评论(0) 推荐(0) 编辑
摘要: pipeline { agent any stages { stage('common') { //每个stage为一流程,与脚本式基本一致,每个stage可以定义名称 steps { //步骤块,内部包含具体操作 sh 'rm -fr /tmp/jenkins-test;mkdir -p /tmp 阅读全文
posted @ 2020-12-07 19:29 littlevigra 阅读(292) 评论(1) 推荐(0) 编辑
摘要: 1.一个location有四个实例,每次修改一半的权重 [root@master dxw-test]# cat modify_lb.py import json,sys,time from tencentcloud.common import credential from tencentcloud 阅读全文
posted @ 2020-11-28 21:29 littlevigra 阅读(384) 评论(1) 推荐(0) 编辑
摘要: 1.SDK 安装,执行以下命令,详细可参见 tencentcloud-sdk-python github 项目。 pip install tencentcloud-sdk-pythonhttps://cloud.tencent.com/document/product/573/38366 阅读全文
posted @ 2020-11-28 14:13 littlevigra 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1.需要mysql的all权限 2. 加个索引:ALTER TABLE `tb_qy_learnonline_student` ADD INDEX `IDX_TQLS_ORG_ID_BELONG_AGENT`(`org_id`, `belong_agent`) USING BTREE; 3.添加索引 阅读全文
posted @ 2020-11-27 17:10 littlevigra 阅读(383) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 70 下一页