03 2016 档案

摘要:转自 https://segmentfault.com/a/1190000002737213 2.1 安装lsyncd 2.2.1 lsyncd同步配置 到这启动 lsycnd 就可以完成实时同步了,默认的许多参数可以满足绝大部分需求,非常简单。 2.2.2 lsyncd.conf配置选项说明 se 阅读全文
posted @ 2016-03-31 18:09 若丶相依 阅读(2141) 评论(0) 推荐(0)
摘要:使用rsync+lsync实现触发式实时同步 服务器信息 centos6.5 主:192.168.5.4 搭建lsync 从:192.168.5.3 搭建rsync 1.1 从服务器设置 # service xinetd start # chkconfig xinetd on 1.3.创建同步文件的 阅读全文
posted @ 2016-03-31 17:36 若丶相依 阅读(2793) 评论(0) 推荐(0)
摘要:rdesktop 使用简单,windows也不和装什么服务端,是要把远程桌面共享打开就行了 安装 yum -y install rdesktop 具体使用方法要先打开终端,然后输入以下命令: rdesktop -u administrator -p password -g 1024*720 192. 阅读全文
posted @ 2016-03-23 13:37 若丶相依 阅读(10316) 评论(0) 推荐(0)
摘要:突然碰到有人问ssh再传输密钥时候能不手动输入密码,由于没有碰到过这种情况,所以查了一下发现可以用sshpass做到。 sshpass 【参数】 ssh命令: 参数: -p password #将参数password作为密码 -f passwordfile # 提取passwordfile的第一行作 阅读全文
posted @ 2016-03-23 13:25 若丶相依 阅读(220) 评论(0) 推荐(0)
摘要:1 #!/usr/bin/env python 2 #-*- coding=utf-8 -*- 3 #----------------导入模块------------------------------ 4 import os 5 import sys 6 7 #----------------设置 阅读全文
posted @ 2016-03-11 15:58 若丶相依 阅读(283) 评论(0) 推荐(0)
摘要:基于python3.4 while循环 1 #!/usr/bin/python3 2 #-*- coding=utf-8 -*- 3 4 import random 5 import sys 6 import os 7 8 lucky_num = int(random.randint(0,9)) 9 阅读全文
posted @ 2016-03-11 15:50 若丶相依 阅读(301) 评论(0) 推荐(0)