Linux °²×°SVN
ÆäʵLinuxÏÂSVN»¹ÊDZȽϼòµ¥£¬ ÔÚÍøÉÏ£¬ Ò»ËѾÍÊÇÒ»´ó°ÑµÄ×ÊÁÏ¡£ µ«ºÜÉÙÓÐÈËÒ»´Î°²×°³É¹¦£¬ ÒòΪLinuxÖеĻ·¾³Ì«¸´ÔÓ£¬
ºÜÈÝÒ×»·¾³³åÍ»¡£
linux svnÒ»°ãÒÀÀµÓÚhttpd£¨Apache Web·þÎñÆ÷£©.
svn¶ÀÁ¢·½Ê½
µ±È»svn»¹ÓжÀÁ¢·½Ê½£¬ ¼´²»ÐèÒªapache·þÎñÆ÷, ¼´Ìø¹ýÏÂÃæµÄapache°²×°£¬ ¼°ÅäÖÃÖйØÓÚhttpd.conf²¿·Ö¡£
ÔÚ±àÒësubversionʱ
$./configure -prefix=/opt/svn -without-berkeley-db -with-zlib
(×¢£ºÒÔsvnserve·½Ê½ÔËÐУ¬²»¼Óapache±àÒë²ÎÊý¡£ÒÔfsfs¸ñʽ´æ´¢°æ±¾¿â£¬²»±àÒëberkeley-db)
°²×°apache
¼ì²éapacheÊÇ·ñ°²×°¡£
Ò»°ãserver·¢ÐаæµÄlinux»á¸½´øapache web ·þÎñÆ÷¡£ ËùÒÔÐèÒªÏÈ¿´¿´ÊÇ·ñ°²×°ÁËapache£¬ ¼°°²×°µÄ°æ±¾ºÅ¡£
ͨ¹ý¿ÉÖ´ÐÐÎļþÊÇ·ñ´æÔÚ£º ÔÚµ±Ç°Â·¾¶Ï£¬ תÈë $ httpd(apachectl) -v, Èç¹û´æÔÚ£¬ ÄÇôÊäÈë$
whereis httpd(apachectl), ÕÒ³öÆä·¾¶£¬ ÔÙͨ¹ý$ fileÃüÁî²éÆ䰲װ·¾¶¡£Èç¹û²»´æÔÚÃüÁî;
ÄÇô¼ì²é/etc/init.d/httpdÊÇ·ñ´æÔÚ£¬ Èç¹û´æÔÚ£¬ ²é¿´°²×°Â·¾¶¡£ ͨ¹ývi(m)µÈ¹¤¾ß²é¿´ÆäÄÚÈÝ£¬ ¿ÉÒÔÕÒµ½Â·¾¶¡£
ͨ¹ý·¢Ðаü¹¤¾ß¼ì²é£¬ ÈçÔÚradhat(fedora)ϵͳÖУ¬ ʹÓõÄÊÇrpm»òyum,
Debian(°üÀ¨ubuntu)µÄdpkg»òapt-get¹¤¾ß, SuseʹÓõÄÊÇYaST(RPM). Èç¹ûÊÇÒÔ¶þ½øÖÆ°ü°²×°£¬
ÔòÐèҪʹÓÃÕâЩ¹¤¾ß¼ì²é£¬ Ôò˵Ã÷ÒÑ°²×°apache.
$ rpm -qa | grep "Èí¼þ»òÕß°üµÄÃû×Ö"
$ yum list installed | grep "Èí¼þÃû»òÕß°üÃû"
$ dpkg -l |grep ii | grep packagename
$ apt-cache show package
Èç¹ûÊÇÔ´´úÂëÂë°²×°£¬ ÇÒͨ¹ýµÚÒ»ÖÖ·½Ê½»¹ÕÒ²»µ½£¬ ÄÇô...ÕÒÕÒ¼¸¸ö³£Óõĵأ¬ Èç/usr/local(/lib)Ï£¬
/usr(/lib)Ï£¬ »ò¿´¿´/var/www£¬ /httpdĿ¼µÈ¡£
ÕÒµ½apacheʱ£¬ ÄÇôÐèÒª¾ö¶¨Ê¹Óõ±Ç°apache£¬ »¹ÊÇÉý¼¶°æ±¾(http://httpd.apache.org/docs/2.2/upgrading.html
)¡£
Èç¹û²»´æÔÚ£¬ °²×°Ö®¡£
°²×°apache¡£
ÏÂÃæ¼òµ¥½éÉÜͨ¹ý°ü£¬ Ô´´úÂ룬 ×Ô¶¯°ü¹ÜÀí¹¤¾ß°²×°apacheµÄ·½Ê½
°²×° $ yum -y install httpd ÉèÖÃ×ÔÆô¶¯£¨fedora£© /sbin/chkconfig httpd on
°²×° $ sudo apt-get install apache2
°²×° $ yast2 -install apache2
rpm/deb °ü£¬ ¹ÙÍøÉϲ»Ìṩ¡£ Èç¹ûÓÐÆä°ü£¬ ¿Éͨ¹ýrpm -i»òdpkg -i
Ô´´úÂ룺
ͨ¹ý http://httpd.apache.org/download.cgi
£¬
²é¿´×îа汾µÄÁ¬½Ó£¬ È統ǰ×îа汾Á¬½ÓΪ£º http://apache.freelamp.com/httpd/httpd-2.2.15.tar.gz
£¨ÏÂ
Ã
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃ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 ......
Ò»¡¢ÒýÑÔ£º
±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØͼ£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾Ñ飨Õâ¸ö»¹µ ......
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£
²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò»Ñù£¬µ«Linux·¢ÐÐ°æ± ......
tar
-c: ½¨Á¢Ñ¹Ëõµµ°¸
-x£º½âѹ
-t£º²é¿´ÄÚÈÝ
-r£ºÏòѹËõ¹éµµÎļþĩβ׷¼ÓÎļþ
-u£º¸üÐÂÔѹËõ°üÖеÄÎļþ
ÕâÎå¸öÊǶÀÁ¢µÄÃüÁѹËõ½âѹ¶¼ÒªÓõ½ÆäÖÐÒ»¸ö£¬¿ÉÒԺͱðµÄÃüÁîÁ¬Óõ«Ö»ÄÜÓÃÆäÖÐÒ»¸ö¡£ÏÂÃæµÄ²ÎÊýÊǸù¾ÝÐèÒªÔÚѹËõ»ò½âѹµµ°¸Ê±¿ÉÑ¡µÄ¡£
-z£ºÓÐgzipÊôÐÔµÄ
-j£ºÓÐbz2ÊôÐÔµÄ
-Z£ºÓÐcompressÊôÐ﵀ ......
µ±linuxÖеÄC apiº¯Êý·¢ÉúÒ쳣ʱ,Ò»°ã»á½«errno±äÁ¿(Ðèinclude
errno.h)¸³Ò»¸öÕûÊýÖµ,²»Í¬µÄÖµ±íʾ²»Í¬µÄº¬Òå,¿ÉÒÔͨ¹ý²é¿´¸ÃÖµÍƲâ³ö´íµÄÔÒò£¬ÔÚʵ¼Ê±à³ÌÖÐÓÃÕâÒ»Õнâ¾öÁ˲»ÉÙÔ±¾¿´À´ÄªÃûÆäÃîµÄÎÊÌâ¡£µ«ÊÇ
errnoÊÇÒ»¸öÊý×Ö£¬´ú±íµÄ¾ßÌ庬Ò廹Ҫµ½errno.hÖÐÈ¥ÔĶÁºê¶¨Ò壬¶øÿ´Î²éÔÄÊÇÒ»¼þºÜ·±ËöµÄÊÂÇé¡£ÓÐÏÂÃ漸ÖÖ·½·¨ ......