易截截图软件、单文件、免安装、纯绿色、仅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
注意这里生成完成了还是不能用必须用


相关文档:

VMware虚拟机中修改Linux MAC地址

MAC地址为网卡的物理地址,在Windows系统下非常容易修改,在linux模式下则有些复杂, 我们看看VMware虚拟机中修改Linux MAC地址的方法
方法一:
这个方法最直接简单有效,修改Linux系统里相关rc.local文件MAC值即可。
方法二:
修改虚拟机的*.vmx文件,这种方法最值得推荐,因为这样就类似于重新“烧录”了VMw ......

Linux下如何查看CPU信息, 包括位数和多核信息


# uname -a
Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
(查看当前操作系统内核信息)
# cat /etc/issue | grep Linux
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
(查看当前操作系统发行版信息)
# cat /proc/cpuinfo | grep name | cut -f2 -d: ......

linux调度器之主调度器框架

进程是操作系统提供的最古老,最重要的抽象之一,它对开发人员和操作人员隐藏了两个基本的硬件资源:处理器和存储器。进程的重要性在于它营造出个数不受物理处理器限制的虚拟处理器并为每个虚拟处理器配备了独立的,容量不受物理内存大小限制的内存空间。这些虚拟处理器为应用程序模拟出一个和物理处理器几乎相同的环境:每 ......

linux共享内存使用实例

三个文件,一个头文件,一个读,一个写,用同一个key值申请共享内存。
//shm.h
#ifndef _SHM_COM_H
#define _SHM_COM_H 1
#define TEXT_SZ 2048
struct shared_use_at
{
    int written_by_you;
    char some_text[TEXT_SZ];
};
struct kts
{
 int power;
 int mod ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号