Linux负载均衡
http://www.askwan.com/post/28/
haproxy+keepalived
Linux企业集群
http://book.51cto.com/art/200806/76015.htm#
第一步:rsync同步web数据(测试通过并且自己加入了ssh的RSA key验证)
http://www.linuxsir.org/main/?q=node/256 rsync 服务器架设方法 v0.1b (正在修订中)
第二步:安装heartbeat并且可以故障切换(正在学习中..)
centos 5.2
yum install -y heartbeat heartbeat-devel heartbeat-ldirectord heartbeat-gui piranha
第三步:配置heartbeat
因为是rpm安装所以默认/etc/ha.d/中没有包含ha.cf,authkeys,haresources这三个文件必须拷贝过来
rpm查询cat /etc/ha.d/README.config
You need three configuration files to make heartbeat happy,
and they all go in this directory.
They are:
ha.cf Main configuration file
haresources Resource configuration file
authkeys Authentication information
These first two may be readable by everyone, but the authkeys file
must not be.
The good news is that sample versions of these files may be found in
the documentation directory (providing you installed the documentation).
If you installed heartbeat using rpm packages then
this command will show you where they are on your system:
rpm -q heartbeat -d
If you installed heartbeat using Debian packages then
the documentation should be located in /usr/share/doc/heartbeat
然后利用cp把三个文件拷贝到/etc/ha.d/中
第四步:具体安装
http://linux.chinaunix.net/bbs/viewthread.php?tid=1051263
heartbeat2.x的测试终结篇,针对使用heartbeat的新手
注意:例如我们想做httpd的双机热备份的话,首先要把httpd的启动脚本从init中删除
chkconfig --del httpd
chkconfig --level 345 httpd off
删除完成以后修改haresources
HA2 192.168.0.40 httpd
注意这里生成完成了还是不能用必须用
相关文档:
总览
用iptables -ADC 来指定链的规
则
,-A添加 -D删除 -C 修改
iptables - [RI] chain rule num rule-specification[option]
用iptables - RI 通过规则的顺序指定
iptables -D chain rule num[option]
删除指定规则
iptables -[LFZ] [chain][option]
用iptables -LFZ 链名 [选项]
iptables -[NX] chain
用 -NX ......
进程是操作系统提供的最古老,最重要的抽象之一,它对开发人员和操作人员隐藏了两个基本的硬件资源:处理器和存储器。进程的重要性在于它营造出个数不受物理处理器限制的虚拟处理器并为每个虚拟处理器配备了独立的,容量不受物理内存大小限制的内存空间。这些虚拟处理器为应用程序模拟出一个和物理处理器几乎相同的环境:每 ......
由于,需要定时备份数据,所以使用 7za来打包。。。 目标文件夹经常含有大量的用户上传图片,这些图片无需高密度定期备份,所以,希望在打包的时候排除它们。。
研究了一下7za的命令行,大致可以这样完成:
7za a '-x!backup/fold/' test.zip backup
&nb ......
http://hi.baidu.com/imheaventian/blog/item/c238604f7d3551c6d1c86a0e.html
(cited from:http://hi.baidu.com/yilinghl/blog/item/c9a9be34a459b2bfd1a2d3b5.html)
后台运行matlab脚本文件的方法:nohup
实现功能:
1. 字符环境下运行matlab.
2.字符环境下运行matlab脚本文件,脚本文件无图像的屏幕输出。
3.脚本文 ......