摘要: import threadingimport timeimport loggingFORMAT = "%(asctime)s %(thread)d %(message)s"FORMATLOG1 ="%(asctime)s %(thread)d %(threadName)s %(message)s"l 阅读全文
posted @ 2020-02-02 11:27 冬日的温暖 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 一、打包程序: 1.Windows中,pyinstaller依赖pywin32,所在如果打包有问题请先安装pywin32模块 pip install pywin32 2.在cmd中输入命令pip install pyinstaller -i https://pypi.tuna.tsinghua.ed 阅读全文
posted @ 2020-01-15 10:44 冬日的温暖 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 排序 lst = [5,10,2,4,8,1]def sort(item,reverse=False): ret = [] for i in item: for x,y in enumerate(ret): #[10,5] flage=i>y if reverse else i<y if flage 阅读全文
posted @ 2020-01-13 20:35 冬日的温暖 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 1.从windows主机字体中复制你想要的字体 2.把选中的字体上传到zabbix服务器所在的字体目录下 3.修改配置文件 defines.inc.php ,把graphfont 替换成 simkai :%s/graphfont/simkai 4.重启服务 systemctl restart zab 阅读全文
posted @ 2020-01-04 15:12 冬日的温暖 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 安装:yum install mariadb-server mariadb vim /etc/my.cnf.d/server.cnfinnodb_file_per_table = on#设置后当创建数据库的表的时候表文件都会分离开,方便复制表,不开启创建的表都在一个文件skip_name_resol 阅读全文
posted @ 2019-12-22 16:39 冬日的温暖 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 配置源 ceph版本为luminous [root@ceph-node1 ~]# yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm [root@ceph-node1 ~]# yu 阅读全文
posted @ 2019-12-15 16:27 冬日的温暖 阅读(148) 评论(0) 推荐(0) 编辑
摘要: binlog_format = mixedlog-bin = /data/mysql/mysql-binexpire_logs_days = 7 #binlog过期清理时间max_binlog_size =1G #binlog每个日志文件大小binlog_cache_size = 4m #binlo 阅读全文
posted @ 2019-12-10 22:10 冬日的温暖 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 一、两个物理网卡做链路聚合(em3,em4) 1)创建team类型的网卡,连接别名为team0,使用的模式为activebackup-主备/loadbalance-负载均衡nmcli con add type team con-name team0 ifname team0 config '{"ru 阅读全文
posted @ 2019-11-27 15:47 冬日的温暖 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 一、软件版本 1.jdk-8u211-linux-x64.rpm 2.elasticsearch-6.8.1.rpm 3.logstash-6.8.1.rpm 4.kibana-6.8.1-x86_64.rpm 5.winlogbeat-6.8.4-windows-x86_64 在windows服务 阅读全文
posted @ 2019-11-25 09:44 冬日的温暖 阅读(1734) 评论(0) 推荐(0) 编辑
摘要: 以下是配置中注意点:1.设置查找目录 2.seting.pyALLOWED_HOSTS = ["*"] 3.配置数据库 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'devops', 'HOST': 阅读全文
posted @ 2019-10-05 15:39 冬日的温暖 阅读(167) 评论(0) 推荐(0) 编辑