易截截图软件、单文件、免安装、纯绿色、仅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下mysql安装配置入门知识

1、下载MySQL的Linux安装文件
  Linux下安装MySQL需要下面两个文件:
   MySQL-server-5.1.7-0.i386.rpm
  下载地址为:http://dev.mysql.com/downloads/mysql/5.1.html,打开此网页,下拉网页找到“Linux x86 generic RPM (statically linked against glibc 2.2.5) downloads”项,找到“Ser ......

linux下vi与vim编辑器的区别及使用方法

vi与vim一样都是编辑器,不同的是vim更高级一些,可以理解是vi的高级版本。vi就像Windows中的计事本,而vim则可以算的上是
office中的word。vi主要用来编辑一些文件,vim是程序员的好工具。好的。。。。下面在介绍一下vi的使用。。。。。。
    1.
使用vi进入一般模式
[root@linux ~]# vi test.tx ......

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下的多线程编程

1 引言
  线程(thread)技术早在60年代就被提出,但真正应用多线程到操作系统中去,是在80年代中期,solaris是这方面的佼佼者。传统的Unix也支持线程的概念,但是在一个进程(process)中只允许有一个线程,这样多线程就意味着多进程。现在,多线程技术已经被许多操作系统所支持,包括Windows/NT,当然,也包括Linux。 ......

linux(unix服务器)下后台运行matlab

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.脚本文 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号