易截截图软件、单文件、免安装、纯绿色、仅160KB

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
注意这里生成完成了还是不能用必须用


相关文档:

Linux iptable文档

总览
用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 ......

Linux 的多线程编程的高效开发经验

2009 年 4 月 23 日
本文中我们针对 Linux 上多线程编程的主要特性总结出 5 条经验,用以改善 Linux 多线程编程的习惯和避免其中的开发陷阱。在本文中,我们穿插一些 Windows 的编程用例用以对比 Linux 特性,以加深读者印象。
背景
Linux 平台上的多线程程序开发相对应其他平台(比如 Windows)的多线程 API 有一些细微 ......

三款 Linux 下的免费桌面级杀毒软件(图)


由于 Linux 良好的用户权限管理体系,病毒往往是 Linux 系统管理员最后才需要考虑的问题。以往,Linux 上的杀毒软件主要是为企业的邮件和文件服务器所设计的。如今,随着 Linux 桌面用户数量的增长,桌面用户在受益于 Linux 系统对病毒较强的天然免疫力的同时,也需要杀毒软件清理从网络或U盘带来的WIndows病毒。尽管那些 ......

Ubuntu linux系统下建立arm交叉编译器

解决步骤:以arm-linux-gcc-4.3.2.tgz为例
1.       把arm-linux-gcc-4.3.2.tgz拷贝到你指定的目录里,然后用tar命令解压到当前目录。成功后,会在4.3.2/bin下找到arm-linux-gcc。
例如:/opt/arm-linux-gcc-4.3.2.taz,以下命令,红色为系统提示符,黑色为用户命令
gylu@dell-desktop:~$ ......

linux下的ELF文件分析

from:http://www.dzjs.net/html/qianrushixitong/2008/0509/3125.html
1 引言
    ELF(Executable and Linkable Format)即可执行连接文件格式,是Linux,SVR4和Solaris2.0默认的目标文件格式,目前标准接口委员会TIS已将ELF标准化为一种可移植的目标文件格式,运行于32-bit Intel体系微机上,可与多种操作 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号