摘要: #!/usr/bin/env python # -*-coding:utf-8 -*- import requests import json class AutoZabbix: def __init__(self, hostname, visibleName, ip, groupname, tem 阅读全文
posted @ 2018-12-06 12:39 whitesky-root 阅读(211) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/phennry/p/6382755.html?utm_source=itdadao&utm_medium=referral tcpdump -i eth0 src 172.16.0.86 and '(tcp and src port 8188 or src port 8189)' -nn -V -xxx tcpdump -i eth0 s... 阅读全文
posted @ 2018-12-06 12:35 whitesky-root 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1 一、添加好配置文件后 2 3 二、更新新的配置到supervisord 4 supervisorctl update 5 6 三、重新启动配置中的所有程序 7 supervisorctl reload 8 9 10 11 12 13 14 用stop停止掉的进程,用reload或者update都不会自动重启。 ;当numprocs为1时,proces... 阅读全文
posted @ 2018-11-24 17:13 whitesky-root 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: wget https://www.ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 tar jxvf ffmpeg-snapshot.tar.bz2 cd ffmpeg/ ./configure make ;make install 阅读全文
posted @ 2018-11-07 20:50 whitesky-root 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 在使用nginx记录访问日志时,发现在含有 request_body 的 PUT , POST 请求时,日志中会含有 x22 x9B x5C x09 x08 字符,不利于阅读和处理。 具体 支持 request_body 的http method参见 http1.1定义 9 Method Definitions 和 Payloads of HTTP Request Methods n... 阅读全文
posted @ 2018-10-13 23:57 whitesky-root 阅读(10644) 评论(0) 推荐(0) 编辑
摘要: 源实例db0迁移至目标实例db1 aof导入方式: 1.源实例生成aof数据 2.目标实例导入aof数据 阅读全文
posted @ 2018-09-28 20:53 whitesky-root 阅读(2224) 评论(0) 推荐(0) 编辑
摘要: 快速记忆:proxypass最后如果带 / ,则代理到目标机就没有location后面的目录, 不带 / , 到目标机后携带location后面的目录,一起带过去了 阅读全文
posted @ 2018-09-22 22:07 whitesky-root 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 1 grant select,show view,lock tables,trigger on confluence.* to 'DBbackup'@'127.0.0.1' identified by 'confluencepasswd'; 2 flush privileges; 阅读全文
posted @ 2018-08-28 21:09 whitesky-root 阅读(326) 评论(0) 推荐(0) 编辑
摘要: ip.cn ipinfo.io cip.cc ifconfig.me myip.ipip.net 阅读全文
posted @ 2018-08-19 21:24 whitesky-root 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1 a = [1, 2] 2 b = 'Immutable' 3 def test(): 4 # global b 5 print(a) 6 a.append('asd') 7 b = b + 'asd' # 当只是引用变量b的值,如:filename=b,而非修改b的值时,不需声明全局b变量 8 def test2(): 9 ... 阅读全文
posted @ 2018-06-02 10:55 whitesky-root 阅读(321) 评论(0) 推荐(0) 编辑