CVS for LINUXÅäÖÃÏê½â
cvs·þÎñÆ÷µÄ°²×°£º
1¡£²é¿´ÄãµÄ²Ù×÷ϵͳÉÏÊÇ·ñ°²×°ÁËcvs£º
#> rpm -qa|grep cvs
Èç¹ûûÓа²×°¿ÉÒÔÔÚÍøÉÏÏÂÔص½×îеÄrpm°ü¡£ºÜÈÝÒ×ÕÒ£¬Æäʵ²»´æÔÚʲôlinux°æ±¾¡£
2¡£½¨Á¢cvsÓû§×飺
#> groupadd cvs
3¡£½¨Á¢cvs×éµÄcvsrootÓû§ºÍËùÊôµÄĿ¼£º
#> useradd -g cvs –d /cvsroot cvsroot
4¡£ÎªcvsrootÓû§Ìí¼ÓÃÜÂ룺
#> passwd cvsroot
5¡£¸Ä±ä /cvsroot/ µÄĿ¼ÊôÐÔ£º
#> chmod –R 770 /cvsroot
6¡£¸Ä±äÓû§µÇ½Éí·Ý£º
#> su - cvsroot
7¡£¿ªÊ¼´´½¨µ¥¸öÏîÄ¿£º
#> cd /cvsroot
#> mkdir project1
#>mkdir project2
8¡£¿ªÊ¼½¨Á¢²Ö¿â£º
#> cvs –d /cvsroot/project1 init
#> cvs –d /cvsroot/project2 init
9¡£½¨Á¢cvs·þÎñÆô¶¯Îļþ£¬ÎÒÃÇʹÓÃxinetd·½Ê½£º
#> [crtl]+[d] Çл»µ½rootÓû§Éí·Ý
#> cd /etc/xinetd.d
#> vi cvspserver
service cvspserver
{
disable = no
flags = reuse
socket_type = stream
wait = no
user = root
server= /usr/bin/cvs
server_args= -f --allow-root=/home2/cvsroot/project1 --allow-root=/home2/cvsroot/project2 pserver log_on_failure += userid
}
×¢£ºÓÉÓÚxinetdµÄserver_args³¤¶ÈÏÞÖÆ,µ±ÄãÏëÔËÐкܶàµÄµ¥¸ö²Ö¿âµÄʱºò,¿ÉÒÔÕâô×ö£º
#> vi cvspserver
service cvspserver
{
disable = no
flags = reuse
socket_type = stream
wait = no
user = root
server = /cvsroot/cvs.run
log_on_failure += userid
}
±àдcvs.run½Å±¾
#> vi /cvsroot/cvs.run
#!/bin/bash
/usr/bin/cvs -f
--allow-root=/cvsroot/project1
--allow-root=/cvsroot/project2
pserver
#>chmod +x /cvsroot/cvs.run
10¡£¼ÓÈëcvs·þÎñ£º
#>vi /etc/services
cvspserver 2401/tcp #pserver cvs service
cvspserver 2401/udp #pserver cvs service
11¡£Æô¶¯cvs·þÎñ£º
#> /etc/init.d/xinetd restart
12¡£¼ì²écvspserver·þÎñÊÇ·ñÒѾÆô¶¯£º
#> netstat -l |grep cvspserver
Ó¦¸ÃÓÐÈçϽá¹û£º
tcp 0 0 *:cvspserver *:* listen
¶þ¡£cvs·þÎñµÄÓû§¹ÜÀí£º
ÉÏÃæÎÒÃÇÒѾ½¨Á¢ÁËproject1ºÍproject2Á½¸öcvs²Ö¿â£¬ÏÂÃæÎÒÃÇ·Ö±ð¸øÁ½¸ö²Ö¿â½¨Á¢cvsÓû§¡£
13¡£´´½¨¿ÉÒԵǽcvs·þÎñÆ÷µÄÓû§ÃûºÍÃÜÂ룺
#> su cvs
Ïà¹ØÎĵµ£º
ÌáÒª£ºLinux ´ÅÅÌ·ÖÇø±í¡¢ÎļþϵͳµÄ²é¿´¡¢Í³¼ÆµÄ¹¤¾ßºÜ¶à£¬ÓÐЩ¹¤¾ßÊǶ๦Äܵģ¬²»½ö½öÊDz鿴´ÅÅ̵ķÖÇø±í£¬¶øÇÒÒ²ÄܽøÐдÅÅÌ·ÖÇøµÄ²Ù×÷£»µ«ÔÚ±¾ÎÄ£¬ÎÒÃÇÖ»½²´ÅÅÌ·ÖÇøµÄ²é¿´£¬ÒÔ¼°·ÖÇøµÄʹÓÃÇé¿öµÄ²é¿´£»±¾ÎÄÖ»ÊǸøÐÂÊÖÉÏ·֮Ó㻹ØÓÚ·ÖÇø¹¤¾ßµÄ²Ù×÷£¬ÎÒ½«ÔÚÒÔºó×öרÃŽéÉÜ£»´ËÎÄÄ¿µÄ:Ö÷ÒªÊÇÏò³õѧÕß½éÉÜÒ»ÏÂÈëÃűر¸µÄÒ»µ ......
ÈëÃÅƪ
¡¶LINUXȨÍþÖ¸ÄÏ¡·Êé²»´í£¬Ð´µÄºÜÈ«ÃæÒ²±È½Ï¹ã£¬Éæ¼°µÄ²»É×öΪÈëÃÅÊé¼®²»´í£¬¿ÉÒԱȽÏÈ«ÃæµÄÁ˽âlinux¡£ÁíÍâ±È½ÏÈÈÃŵÄÒ²¿ÉÒÔ¿´¿´¡¶Äñ¸çµÄ˽·¿²Ë¡·µÈÊ飬ƫ¹ÜÀíÀàµÄÊé¡£Èç¹ûÏë×öserver·½ÏòµÄ¿ÉÒÔÕÒÀ´¿´¿´¡£
Çý¶¯Æª
¡¶LINUXÉ豸Çý¶¯³ÌÐò¡·¾ÍÊÇÍøÉÏ˵µÄ“LDD”£¬¾µäÖ®×÷£¬±Ø±¸Êé¼®¡£¹ú²ú¾µä¡¶Lin ......
ÎÄÕÂÀ´Ô´:http://www.ibm.com/developerworks/cn/linux/l-linux-synchronization.html
¼¶±ð£º Öм¶
M. Tim Jones, ¹ËÎʹ¤³Ìʦ, Emulex
2007 Äê 11 ÔÂ 19 ÈÕ
ÔÚѧϰ Linux® µÄ¹ý³ÌÖУ¬ÄúÒ²Ðí½Ó´¥¹ý²¢·¢£¨concurrency£©¡¢ÁÙ½ç¶Î£¨critical section£©ºÍËø¶¨£¬µ«ÊÇÈçºÎÔÚÄÚºËÖÐʹÓÃÕâЩ¸ÅÄîÄØ£¿±¾ÎÄÌÖÂÛÁË 2.6 °æÄÚºËÖÐ ......
Ê×Ïȼì²ébindÊÇ·ñÕý³£°²×°£¨ÒÔÏÂÃüÁî½öÏÞÓÚrpm°üµÄ¼ì²é£©
rpm -qa|grep bind
Èç¹û³öÏÖÏàÓ¦µÄ°²×°°üÐÅÏ¢£¬Ôò¿ÉÒÔ½øÈëÏÂÒ»²½
½ÓÏÂÀ´ÊÇʹÓÃbindÅäÖÃDNSËùÐèÒªµÄϵͳÒÔ¼°¶ÔÓ¦Îļþ£¬´óÖÂÈçÏ£º
/etc/hosts --Ö÷»úipÓëÓòÃûÖ®¼äµÄÒ»¸ö¶ÔÓ¦Îļþ£¨ÏµÍ³×Ô´ø£©£¬¿ÉÒÔʵÏÖ¿ìËÙ½âÎöµÄ¹¦ÄÜ
¸ÃÎļþµÄÅäÖÃÄÚÈÝ´óÖÂÈçÏ£º
# Do n ......
ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼
¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£
ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
1.shutdown
shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ ÓÐЩÓû§»áʹÓÃÖ±½Ó¶ÏµôµçÔ´µÄ·½Ê ......