摘要: binlog日志 配置binlog日志存储位置 修改my.cnf文件: expire_logs_days=3 设置自动清理 log bin=/log/mysql/log bin/mysql master bin log bin index=/log/mysql/log bin/mysql maste 阅读全文
posted @ 2018-10-23 21:49 徐~某~某 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 原文出处: "http://blog.51cto.com/wutou/1932317" VM虚拟机大家都用,我在用完后,经常使用“挂起客户机”,但是这样一来,系统恢复启动很快,但是少了正常的系统自检,包括和网络同步时间。 今天在虚拟机上测试“find /root/Text mtime +3 name 阅读全文
posted @ 2018-10-17 21:41 徐~某~某 阅读(3937) 评论(1) 推荐(0) 编辑
摘要: employee文件中记录了工号和姓名 employee.txt: 100 Jason Smith 200 John Doe 300 Sanjay Gupta 400 Ashok Sharma bonus文件中记录工号和工资 bonus.txt: 100 $5,000 200 $500 300 $3 阅读全文
posted @ 2018-10-13 16:43 徐~某~某 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 用shell处理以下内容 1、按单词出现频率降序排序! 2、按字母出现频率降序排序! the squid project provides a number of resources toassist users design,implement and support squid installa 阅读全文
posted @ 2018-10-11 16:50 徐~某~某 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 原文出处: "https://www.jianshu.com/p/855c9fb373ff" Shell 里面的方括号(包括单中括号与双中括号)可用于以下三种情况的判断: 1. 算术比较。 比如一个变量是否为0, [ $var eq 0 ] 2. 文件属性测试。比如一个文件是否存在,[ e $var 阅读全文
posted @ 2018-10-11 16:08 徐~某~某 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 判断网址是否正常 !/bin/bash array=( www.baidu.com www.sohu.com www.google.com www.helloworldxhn.com ) for url in ${array[ ]} do res_code=$(curl I m 2 $url 2 / 阅读全文
posted @ 2018-10-11 15:32 徐~某~某 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 原文: "http://codingpy.com/article/python 201 a tutorial on threads/" 创建多线程 创建多线程主要有2种方式。 使用threading.Thread函数 继承threading类 1. 使用threading.Thread函数 impo 阅读全文
posted @ 2018-10-01 22:51 徐~某~某 阅读(987) 评论(0) 推荐(0) 编辑
摘要: 作者:卢钧轶(cenalulu) 本文原文地址: "http://cenalulu.github.io/python/gil in python/" GIL是什么 GIL(Global Interpreter Lock)并不是python的特性,而是Python解释器 Cpython引入的一个概念 阅读全文
posted @ 2018-09-30 10:12 徐~某~某 阅读(2435) 评论(0) 推荐(0) 编辑
摘要: mysql安装(rpm) 1.卸载系统自带的 mariadb lib [root@centos linux ~] rpm qa|grep mariadb mariadb libs 5.5.44 2.el7.centos.x86_64 [root@centos linux ~] rpm e maria 阅读全文
posted @ 2018-09-29 22:15 徐~某~某 阅读(470) 评论(0) 推荐(0) 编辑
摘要: mysql读写分离配置 环境:centos7.2 mysql5.7 场景描述: 数据库Master主服务器:192.168.206.100 数据库Slave从服务器:192.168.206.200 MySQL Proxy调度服务器:192.168.206.210 以下操作,均是在192.168.20 阅读全文
posted @ 2018-09-29 21:29 徐~某~某 阅读(2189) 评论(0) 推荐(0) 编辑