摘要:
我使用crontab同步一个文件夹时,发现一个问题,我在crontab中设置的1分钟运行一次.但当那个文件夹的内容改变时。1分钟不一定能同步完,但这时第二个rsync进行又起来了。这个就产生一个问题,二个rsync一起处理相同的文件,这样会出问题。如下1 * * * * /usr/bin/rsync... 阅读全文
随笔档案-2014年04月
openssl HeartBlood
2014-04-24 19:02 by cmsd, 836 阅读, 收藏, 编辑
摘要:
受影响[编辑]
OpenSSL 1.0.2-beta
OpenSSL 1.0.1 - OpenSSL 1.0.1f
除非针对CVE-2014-0160的操作系统补丁已经安装,而没有更改库版本,如Debian、Red Hat Enterprise Linux(及其衍生版,如CentOS、Amazon Linux)或Ubuntu(及其衍生版,如Linux Mint)。 阅读全文
pip是用国内镜像源
2014-04-20 22:40 by cmsd, 9797 阅读, 收藏, 编辑
摘要:
pipy国内镜像目前有:
http://pypi.douban.com/ 豆瓣
http://pypi.hustunique.com/ 华中理工大学
http://pypi.sdutlinux.org/ 山东理工大学
http://pypi.mirrors.ustc.edu.cn/ 中国科学技术大学 阅读全文
修改最大打开文件数和最大proc数量
2014-04-15 15:17 by cmsd, 294 阅读, 收藏, 编辑
摘要:
1、vim /etc/profile 增加 ulimit -n 10240ulimit -u 102402、修改/etc/security/limits.conf* soft nofile 10240* hard nofile 10240* soft noproc 10240* hard... 阅读全文
openvpn构建
2014-04-14 15:05 by cmsd, 410 阅读, 收藏, 编辑
摘要:
openvpn构建
1. 检测是否支持tun/tap
cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state ##这代表支持
2. 安装依赖rpm包
yum -y install openssl-devel gcc gcc-c++ make pam-devel
3. 安装lzo库 (编译安装需要gcc make 和gcc-c++) 阅读全文
redmine一键安装
2014-04-08 22:29 by cmsd, 206 阅读, 收藏, 编辑
摘要:
参加项目 bitnami项目 https://bitnami.com/stack/redmine/installer百度网盘地址为:http://pan.baidu.com/s/1jESnO 阅读全文
rsync+sersync实时同步
2014-04-06 15:58 by cmsd, 440 阅读, 收藏, 编辑
摘要:
sersync安装配置
1.建立目录
mkdir -p /opt/sersync/{bin,conf,log}
2. 下载解压sersync
wget http://sersync.googlecode.com/files/sersync2.5_64bit_binary_stable_final.tar.gz
tar xvf sersync2.5_64bit_binary_stable_final.tar.gz 阅读全文