ÅäÖÃ×Ô¼ºµÄLinux svnserve·þÎñÆ÷
Ò»¡¢Ð½¨²¢³õʼ»¯°æ±¾¿â
1.н¨´úÂë²Ö¿â
# svnadmin create /home/myrepos
ÕâÑù£¬ÎÒÃǾÍÔÚ/homeĿ¼ÏÂн¨ÁË°æ±¾¿âmyrepos¡£
2.³õʼ»¯´úÂë²Ö¿â
#mkdir -p code/{branches,tags,trunk}
°´ÕÕsvnÊÖ²áÉϵĽ¨Ò飬ÎÒÃÇ°æ±¾¿âµÄ²¼¾Ö²ÉÓÃbranches/tags/trunkÕâÑùµÄÈý¸öĿ¼¡£
È»ºó¿ÉÒÔ½«´úÂëÖ±½Ó¿½±´µÄtrunkĿ¼£¬Ò²¿ÉÒÔËæºó²ÉÓÃsvn addµÄ·½Ê½Ìí¼Ó¡£
#svn import code file: ///home/myrepos
½«ÎÒÃǹ¹ÔìºÃµÄ°æ±¾¿â²¼¾Ö£¨ÒÔ¼°´úÂ룬Èç¹ûÒѾ¿½±´µ½trunkϵĻ°£©Ìá½»µ½°æ±¾¿â¡£
ÓÉÓÚÕâÀïÎÒÃÇÊÇÔÚ±¾µØ²Ù×÷£¬Òò´Ë¿ÉÒÔÖ±½ÓʹÓÃfileÐÒ鷽ʽÌá½»¡£
¸ñʽΪ£ºfile:// + °æ±¾¿â¾ø¶ÔµÄ·¾¶
OK£¬µ½ÕâÀïÎÒÃÇÒѾ¹¹½¨ÁËÒ»¸ö±¾µØ°æ±¾¿â£¬¿ÉÒÔÔÙ±¾µØʹÓÃsvn ciµÄ·½·¨µÃµ½°æ±¾¿â
µÄ¸±±¾ÁË¡£Èç¹ûÇ°ÃæÖ»ÊÇÌá½»ÁË°æ±¾¿â²¼¾Ö£¬¶øûÓÐÌá½»´úÂëµÄ»°£¬Ôò¿ÉÒÔͨ¹ýÈçÏÂÃü
ÁÌá½»°æ±¾´úÂ룺
#svn co file: ///home/myrepos/trunk repos
ͨ³£Ö»´ÓÖ÷ÏßĿ¼trunkÏÂÈ¡³öÔ´Â룬·ÅÔÚÁËн¨µÄreposĿ¼¡£È»ºó¿ÉÒÔ½«Ô´Â뿽±´
µ½reposĿ¼¡£
Ö´ÐÐÒÔÏÂÁ½ÌõÃüÁ´úÂëÌí¼ÓµÄ°æ±¾¿â¡£
#svn add *
#svn ci * -m "Committed codes"
Ê×ÏÈÐèÒª½«¿½±´µÄ´úÂë¼ÓÈëµ½µ±Ç°µÄ¸±±¾ÖУ¬È»ºó½«´úÂëÌá½»µ½°æ±¾¿â¡£
¶þ¡¢ÅäÖò¢Æô¶¯svnserve
1. ÅäÖÃsvnserve
ÕâÒ»²½Ö÷ÒªÍê³ÉÔ¶³ÌÓû§·ÃÎÊ°æ±¾µÄȨÏÞ¡£
ÔÚ°æ±¾¿âĿ¼ÏÂÓиöconfĿ¼£ºhome/myrepos/conf£¬¸ÃĿ¼°üº¬Èý¸öÎļþ£º
authz£¬passwd£¬svnserve.conf¡£
£¨1£©svnserve.conf
´ËÎļþÖصãµÄÉèÖÃÄÚÈÝÈçÏ£º
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
ÆäÖУ¬anon-acces sºÍauth-access·Ö±ð´ú±íÉèÖÃÄäÃûÓû§ºÍÊÚȨÓû§µÄ·ÃÎÊȨÏÞ¡£
read´ú±íÖ»¶Á£¬write´ú±í¿É¶Á¿Éд£¬»¹ÓÐÒ»¸önone£¬´ú±í½ûÖ¹·ÃÎÊ¡£Èç¹û²»ÏëÈÃÄäÃûÓû§
·ÃÎʵĻ°£¬¿ÉÒÔÉèÖÃanon-access = none¡£
password-dbΪ±£´æ°æ±¾¿âµÄÓû§ÃûºÍÃÜÂ룬ͨ³£ÎªconfĿ¼ÏµÄpasswdÎļþ¡£
authz-dbÖ¸ÏòµÄÎļþ£¬Ö÷ÒªÓÃÓÚ½«Óû§½øÐзÖ×飬²¢¸³Ó費ͬµÄ×鲻ͬµÄȨÏÞ¡£
Æ©ÈçÓжà¸öĿ¼ʱ£¬ÉèÖÃij¸ö×éµÄÓû§Ö»¿ÉÒÔ·ÃÎÊÆäÖеÄÄÇЩĿ¼¡£
£¨2£©passwd
ÈçÇ°Ãæ½éÉÜ£¬Õâ¸öÎļþµÄÖ÷ÒªÄÚÈÝÈçÏÂ
[users]
harry = harrysecret
sally = sallyssecret
ÒÔÉÏÁ½ÐоÍÊÇ¿ÉÒÔ·ÃÎÊ°æ±¾¿âµÄÓû§ÃûºÍÃÜÂë¡£¸ñʽΪ£ºuser = passwd¡£
£¨3£©authz
[groups]
# harry_and_sally = harry,sally
# [/foo/bar]
# harry = r
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
°²×°²½Ö裺
Ø °²×°resinÇ°ÏÈÒª±£Ö¤°²×°ÁËJDK£¬¿ÉÒÔÓÃÃüÁî²é¿´ÊÇ·ñ°²×°ÁËJDK£º
[root@wxr webapps]# java -versions
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
Ø ÏÂÔØRes ......
×ܾõµÃÔÚITÐÐÒµÀï»ì£¬Ñ§±à³ÌÓïÑÔҪѧϰC²ÅÏñÑù£¬¿ª·¢ÒªÔÚLinuxϲÅÄÜ·¢»ÓºÃ£¬ºÇºÇ£¬Ëæ¿Ú˵µÄ£¬²»¹ý¸öÈËÈÏΪÏëÉîÈëµÄѧϰ¼ÆËã»ú֪ʶ£¬»¹ÊÇÓ¦¸ÃѧϰLinux²Ù×÷ϵͳ£¬ËùÒÔ´Ó½ñÌ쿪ʼÿÌì³é³öÒ»¸öСʱѧϰ£¬ÔÚ´Ë×öһЩѧϰ¼Ç¼£¬ÒÔ¹©ÒÔºó²éѯ×ܽᡣ
½ñÌìÊÇ°²×°£¬ÊÇÔÚVMwareÏ°²×°µÄRed hat 9,°²×°Ï൱˳³©£¬Ò»Â·nextÏÂÈ¥£¬¾ÍOKÁ ......
1.н¨Îļþ
Ö¸Áî:¢Ù> ÎļþÃû
¢Útouch ÎļþÃû
2.ɾ³ýÎļþ
Ö¸Áî:rm
²ÎÊý:-d Ö±½Ó°ÑÓûɾ³ýµÄĿ¼µÄÓ²Á¬½ÓÊý¾Ýɾ³É0,ɾ³ýĿ¼
-f Ç ......
¡¾ÊµÏÖ¹¦ÄÜ¡¿£ºLinuxϵÄC±à³Ì£º±àдһ¸ö³ÌÐò£¨¿â£©£¬ÊµÏÖ¶¨Ê±Æ÷£¨¼ÆʱÆ÷£©µÄ¹¦ÄÜ£¬ËüÄÜΪÓû§ÌṩÔÚͬһ½ø³ÌÖжà´ÎʹÓõĶ¨Ê±Æ÷¡£ÕâÀïÒªÇóÓÃÐźÅÀ´ÊµÏÖ¡£
¡¾½âÌâ˼·¡¿£º±àдһ¸ö½á¹¹ÌåTimer´ú±íÒ»¸ö¼ÆʱÆ÷£¬È»ºóÔÙ¶¨ÒåTimerÀàÐ͵ÄÊý×émyTimer[N]£¬ÓÃÀ´±£´æÎÒÃÇÉèÖõĶ¨Ê±Æ÷£»ÔÙ¶¨Ò庯ÊýsetTimer£¨£©Éú³É¼ÆʱÆ÷£¬²¢½«Éú³É ......