摘要: 都是用Ubuntu16.04系统,直接使用sudo apt-get install mysql 安装好数据库就好。 主库:192.168.3.191从库:192.168.3.193 1. 开启mysqllogbinvi /etc/mysql server-id = 1 # 2台mysql要设置不同的 阅读全文
posted @ 2019-05-20 10:37 hejp 阅读(145) 评论(0) 推荐(0) 编辑
摘要: import shutil with open('/etc/passwd', 'rb') as sfobj: with open('/tmp/mima.txt', 'wb') as dfobj: shutil.copyfileobj(sfobj, dfobj) # 拷贝文件对象 shutil.copyfile('/etc/passwd', '/tmp/mima2.tx... 阅读全文
posted @ 2019-05-20 10:02 hejp 阅读(119) 评论(0) 推荐(0) 编辑