Linuxϰ²×°CVS·þÎñÆ÷
£¨±¾ÎÄÕÂÖ÷ÒªÊǸöÈËÈÝÒ×ÕÒ×ÊÁ϶ø×ªµÄ£¬±¾ÎÄÀ´´Ë http://hackang.javaeye.com/blog/234000£©
Ò»¡¢Ê×ÏȲ鿴ÓÐûÓа²×°cvs
rpm -qa|grep cvs
Èç¹ûûÓа²×°£¬È¥downÒ»¸örpm°ü°²×°Ò»°Ñ rpm -i cvs-1.11.22-5.el5.i386.rpm
¶þ¡¢Ìí¼Ócvs×éºÍÓû§
groupadd cvs
useradd -g cvs -s /sbin/nologin cvsroot
cd /home/cvsroot
chown -R cvsroot /home/cvsroot
Èý¡¢¸ü¸ÄĿ¼ȨÏÞ£¬ÒòΪÌá½»´úÂëÓÐI/OµÄ¶Áд²Ù×÷
chown -R cvsroot.cvs /home/cvsroot/
chmod -R 775 /home/cvsroot/
ËÄ¡¢ÉèÖÃÈ«¾Ö±äÁ¿
vi /etc/profile
¼ÓÉÏ
export CVSROOT=/home/cvsroot/
ÒªÁ¢¼´ÉúЧ£¬Ö´ÐÐ
source /etc/profile
Îå¡¢³õʼ»¯cvs
cvs init
Áù¡¢ÈÃCVSÔÚ¿ª»úʱ×Ô¶¯Æô¶¯
cat /etc/services | grep cvspserver
Èç¹û¿´µ½cvspserver 2401/tcp # CVS client/server operations Ç°ÃæÓÐ#ºÅ£¬È¥³ý¾Í¿ÉÒÔÁË£¬È»ºó±£´æÍ˳ö£¬·ñÔòÖ±½ÓÍ˳ö
cd /etc/xinetd.d
¿´ÓÐûÓÐcvsÎļþ£¬Èç¹ûÓÐÖ±½Ó±à¼£¬·ñÔò´´½¨
vi cvs
ÄÚÈÝÈçÏ£º
service cvspserver
{
disable
= no
port
= 2401
socket_type
= stream
protocol
= tcp
wait
= no
user
= root
passenv &n
Ïà¹ØÎĵµ£º
¸¸×Ó½ø³ÌÈçºÎͨÐÅ£¿
Ò»¶Ô¸¸×Ó½ø³Ì¿ÉÒÔͨ¹ýÕý³£µÄ½ø³Ì¼äͨÐŵİ취(¹ÜµÀ£¬Ì×½Ó×Ö£¬ÏûÏ¢¶ÓÁУ¬¹²ÏíÄÚ´æ)½øÐÐͨÐÅ£¬µ«Ò²¿ÉÒÔͨ¹ýÀûÓÃËüÃÇ×÷Ϊ¸¸×Ó½ø³ÌµÄÏ໥¹ØÏµ¶ø¾ßÓеÄÒ»Ð©ÌØÊâ·½·¨¡£
Ò»¸ö×îÏÔÈ»µÄ·½·¨ÊǸ¸½ø³Ì¿ÉÒԵõ½×Ó½ø³ÌµÄÍ˳ö״̬¡£
ÒòΪ×Ó½ø³Ì´ÓËüµÄ¸¸½ø³Ì¼Ì³ÐÎļþÃèÊö·û£¬ËùÒÔ¸¸½ø³Ì¿ÉÒÔ´ò¿ªÒ»¸ö¹ÜµÀµÄÁ½¶Ë£¬È» ......
ÔÚfork()/execve()¹ý³ÌÖУ¬¼ÙÉè×Ó½ø³Ì½áÊøÊ±¸¸½ø³ÌÈÔ´æÔÚ£¬¶ø¸¸½ø³Ìfork()֮ǰ¼Èû°²×°SIGCHLDÐźŴ¦Àíº¯Êýµ÷ÓÃwaitpid()µÈ´ý×Ó½ø³Ì½áÊø£¬ÓÖûÓÐÏÔʽºöÂÔ¸ÃÐźţ¬Ôò×Ó½ø³Ì³ÉΪ½©Ê¬½ø³Ì£¬ÎÞ·¨Õý³£½áÊø£¬´Ëʱ¼´Ê¹ÊÇrootÉí·Ýkill-9Ò²²»ÄÜɱËÀ½©Ê¬½ø³Ì¡£²¹¾È°ì·¨ÊÇɱËÀ½©Ê¬½ø³ÌµÄ¸¸½ø³Ì(½©Ê¬½ø³ÌµÄ¸¸½ø³Ì±ØÈ»´æÔÚ)£¬½©Ê¬½ø³Ì³ÉÎ ......
µ±LinuxÄÚºËÔÚÌåϵ½á¹¹²îÒì½Ï´óµÄƽ̨֮¼äÒÆÖ²Ê±£¬»á²úÉúÓëÊý¾ÝÀàÐÍÏà¹ØµÄÎÊÌâ¡£
.ÔÚ±àÒëÄÚºËʱʹÓà -Wall -W strict-prototypes Ñ¡Ïî, ¿ÉÒÔ±ÜÃâºÜ¶à´íÎóµÄ·¢Éú
.ÄÚºËʹÓõĻù±¾Êý¾ÝÀàÐÍÖ÷ÒªÓÐ:
int ±ê×¼CÓïÑÔÕûÊýÀàÐÍ
&n ......
ÎÄÕÂ×÷ÕߣºSlyar ÎÄÕÂÀ´Ô´£ºSlyar Home (www.slyar.com) ×ªÔØÇë×¢Ã÷£¬Ð»Ð»ºÏ×÷¡£
¸øÅ®ÅóÓѸ´ÖÆÁËÒ»·ÝÎÒÅäÖúõÄUbuntu Server Vmware vmdk£¬ÔÚËýµçÄÔÉÏÓÃÕâ¿éÐéÄâÓ²ÅÌн¨³öµÄUbuntuÒ²ÄÜÓã¬Î¨Ò»ÓÐÎÊÌâµÄ¾ÍÊÇÕÒ²»µ½Íø¿¨ÁË£¬Ìáʾ"No such device eth0"...
½â¾ö¹ý³Ì²»Ð´ÁË£¬·´ÕýºÄµôÁËÎҺü¸¸öСʱ...
ÔÒòÊÇVmware±£´æµÄÓ ......