Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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/ÖÐ
µÚËIJ½:¾ßÌå°²×°
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
×¢ÒâÕâÀïÉú³ÉÍê³ÉÁË»¹ÊDz»ÄÜÓñØÐëÓÃ


Ïà¹ØÎĵµ£º

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½ø³ÌµÄÖ´ÐÐÎļþ·¾¶

ƽʱһ°ãÓÃpsÀ´²é¿´½ø³ÌÐÅÏ¢£¬¸Ï½ô¾Í¹»ÁË¡£½ñÌìÐèÒªÖªµÀÏêϸµÄ·¾¶£¬Ò»Ê±»¹Ïë²»ÆðÀ´¡£¼ÇµÃÓиö²ÎÊý£¬¿ÉÒԸıäpsµÄÊä³öÀïÃæcmdµÄÏÔʾ¿í¶È£¬¿Éϧ¼Ç²»ÇåÁË¡£»ØÍ·ÔÙÕÒÕÒ¡£
http://www.svn8.com/linux/glpz/20100221/22543.html
Õâ¸öÉÏÃæ½éÉܵķ½·¨ÊǸù¾ÝpidÔÚ/proc/pid_number ÏÂÃæ²é¿´¾ßÌåÐÅÏ¢¡£¾ÍÊÇÓеãСÂé·³¡£ ......

ÅäÖÿª·¢Ö§³Ö¸ß²¢·¢TCPÁ¬½ÓµÄLinuxÓ¦ÓóÌÐòÈ«¹¥ÂÔ

Ô­Îļû£ºhttp://www.cppblog.com/flashboy/articles/47012.html
1¡¢ÐÞ¸ÄÓû§½ø³Ì¿É´ò¿ªÎļþÊýÏÞÖÆ
   ÔÚLinuxƽ̨ÉÏ£¬ÎÞÂÛ±àд¿Í»§¶Ë³ÌÐò»¹ÊÇ·þÎñ¶Ë³ÌÐò£¬ÔÚ½øÐи߲¢·¢TCPÁ¬½Ó´¦Àíʱ£¬×î¸ßµÄ²¢·¢ÊýÁ¿¶¼ÒªÊܵ½ÏµÍ³¶ÔÓû§µ¥Ò»½ø³Ìͬʱ¿É´ò¿ªÎļþÊýÁ¿µÄÏÞÖÆ(ÕâÊÇÒòΪϵͳΪÿ¸öTCPÁ¬½Ó¶¼Òª´´½¨Ò»¸ösocket¾ä±ú£¬Ã¿¸ ......

redhat linuxÃüÁî´óÈ«


Ò». Æô¶¯,¹Ø»ú,µÇÈë,µÇ³öÏà¹ØÃüÁî
<login> 怬
<logout> µÇ³ö
<exit> µÇ³ö
<shutdown> ֹͣϵͳ
<halt> ֹͣϵͳ
<reboot> ÖØÆô¶¯
<poweroff> ÇжϵçÔ´
<sync> °ÑÄÚ´æÀïµÄÄÚÈÝдÈë´ÅÅÌ
<lilo> °²×°liloÆô¶¯¹ÜÀí³ÌÐò
<grub> °²×°liloÆô¶¯¹ÜÀí³ÌÐò ......

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ºÅ