12 2020 档案

摘要:1.若nginx配置的响应等待时间(proxy_read_timeout)为30秒,就会触发超时重试,将请求又打到另一台。如果处理中没有考虑到重复数据的场景,就会发生数据多次重复插入! proxy_next_upstream error | timeout | invalid_header | ht 阅读全文
posted @ 2020-12-31 21:02 littlevigra 阅读(667) 评论(0) 推荐(0) 编辑
摘要:1.服务返回异常5次就重启 #!/bin/bash restart=0 time=0 while true do for i in `cat /opt/check_status/monitor_url.txt` do echo $i sleep 30 timeout 10 ssh appuser@1 阅读全文
posted @ 2020-12-30 21:11 littlevigra 阅读(139) 评论(0) 推荐(0) 编辑
摘要:0.stub_status configure arguments: --prefix=/usr/local/tengine --with-http_realip_module --with-http_gzip_static_module --with-pcre --with-http_stub_s 阅读全文
posted @ 2020-12-30 11:20 littlevigra 阅读(956) 评论(2) 推荐(0) 编辑
摘要:0.获取admin的token 1.告警脚本 [root@slave1 do1cloud]# cat /do1cloud/post_build/sz_build.sh#!/bin/bashJENKINS_URL=$3JOB_NAME=$4BUILD_NUMBER=$5#深圳团队userkey='42 阅读全文
posted @ 2020-12-29 17:41 littlevigra 阅读(1378) 评论(0) 推荐(0) 编辑
摘要:1.sh /home/jenkins_scripts/sendmessg.sh 生产 公众号 ${DEPLOY_FILE} 开始发布 2.脚本 sh /home/jenkins_scripts/sendmessg.sh 生产 公众号 ${DEPLOY_FILE} 开始发布 #!/bin/sh use 阅读全文
posted @ 2020-12-28 14:13 littlevigra 阅读(133) 评论(0) 推荐(0) 编辑
摘要:1.JAVA_OPTS=" $JAVA_OPTS -server -Xms4096m -Xmx4096m -Xss512k -XX:PermSize=256M -XX:MaxPermSize=512M -Dfile.encoding=UTF-8" 2.JAVA_OPTS="$JAVA_OPTS -s 阅读全文
posted @ 2020-12-25 11:25 littlevigra 阅读(370) 评论(0) 推荐(0) 编辑
摘要:1.Nginx 配置中配置如下修改即可 server { ... location / { ... add_header Content-Security-Policy upgrade-insecure-requests; ... } } https://blog.exsvc.cn/article/ 阅读全文
posted @ 2020-12-24 20:20 littlevigra 阅读(633) 评论(0) 推荐(0) 编辑
摘要:1.拉取代码: mkdir /do1cloud/testplugins cd /do1cloud/testplugins git clone https://github.com/KrisMarko/kr-changelog.git 2.重启jenkins服务 ls /root/.jenkins/p 阅读全文
posted @ 2020-12-18 11:59 littlevigra 阅读(647) 评论(0) 推荐(0) 编辑
摘要: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 阅读(119) 评论(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 阅读(1673) 评论(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 阅读(205) 评论(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 阅读(7292) 评论(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 阅读(251) 评论(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 阅读(144) 评论(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 阅读(295) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示