LinuxÏÂapache+svn+sslÍêÃÀ½áºÏ´î½¨°²È«°æ±¾¿ØÖÆƽ̨
±¾½ÚºÍ´ó¼ÒÒ»ÆðѧϰһÏÂÔÚlinuxÏÂʹÓÃapache+svn+sslÅäÖð²È«°æ±¾¿ØÖÆƽ̨ÎÊÌ⣬¿´Íê±¾ÎÄÄã¿Ï¶¨Óв»ÉÙÊÕ»ñ£¬Ï£Íû±¾ÎÄÄ̻ܽáÄã¸ü¶à¶«Î÷¡£Ê×ÏȽéÉÜÒ»ÏÂlinuxÏÂapache+svn+sslÅäÖõĻ·¾³¡£
»·¾³£º
centos5.4_x64
apache2.2.14
subversion-1.4.2(µ£ÐÄ°ü¹ØÁªÐÔÎÊÌ⣬¾ÍûÓп¼ÂÇ×îа汾£©
°²×°¹ý³Ì£º
1£¬apache°²×°
#./configure--prefix=/usr/local/apache--enable-so--enable-dav=shared--enable-dav-fs=shared--enable-dav-lock=shared--enable-ssl=shared
make
makeinstallÈç¹ûÕą̂apache²»×öÆäËûʹÓã¬Õâ¸öÅäÖþÍÒѾ×ã¹»
2£¬subversion°²×°
subversion-1.4.2]#./autogen.sh#½¨ÒéÏÈÖ´ÐдËÁìÃü£¬subversion»á½øÐгõʼ»¯£¬Ö®Ç°ÎÃ×ÓÔÚmakeµÄʱºò±¨´í£¬ºóÀ´Ö´Ðд˲Ù×÷ºó£¬make¾Í˳Àû¹ýÈ¥ÁË
subversion-1.4.2]#./configure--with-apxs=/usr/local/apache/bin/apxs--with-apr=/usr/local/apache/bin/apr-1-config--with-apr-util=/usr/local/apache/bin/apu-1-config--with-ssl
subversion-1.4.2]#make
subversion-1.4.2]#makeinstall
µ½´Ë£¬Èç¹ûûÓгö´í£¬°²×°¹¤×÷¾ÍÒѾÍê³ÉÁË£¬ÏÂÃæ½øÈëapache+svn+sslÅäÖý׶Ρ£
ÅäÖùý³Ì£º
1£¬apacheµÄÅäÖÃ
Õý³£°²×°ÏÂ
LoadModuledav_modulemodules/mod_dav.so
LoadModuledav_fs_modulemodules/mod_dav_fs.so
LoadModuledav_lock_modulemodules/mod_dav_lock.so
LoadModuledav_svn_modulemodules/mod_dav_svn.so
LoadModuleauthz_svn_modulemodules/mod_authz_svn.so
LoadModulessl_modulemodules/mod_ssl.so
Õ⼸¸ömodule±£Ö¤²»ÊDZ»×¢Ê͵ģ¬ÁíÍâÕÒµ½
Includeconf/extra/httpd-dav.conf
Includeconf/extra/httpd-ssl.confÕâÁ½ÐУ¬È¥µôÇ°ÃæµÄ×¢ÊÍ¡£
±à¼conf/extra/httpd-dav.conf£¬¼ÓÈëÈçÏÂÄÚÈÝ£¬ÆäÓàÄÚÈÝ¿ÉÒÔÈ«²¿É¾³ý
<Location/svn>#ÊÇÔÚurl»òÕßsvn¿Í»§¶ËÉÏÖ¸¶¨µÄ·ÃÎÊ·¾¶ DAVsvn#ÉùÃ÷svn SVNParentPath/data3/svn#ÓÃÀ´±íʾ¹²Í¬µÄ¸¸Ä¿Â¼£¬ËùÓв»Í¬µÄ°æ±¾¿â¶¼ÊÇ´æ·ÅÔÚ´ËĿ¼Ï AuthzSVNAccessFile/data3/svn/authz#Ö¸¶¨±£´æ·¾¶Öеİ汾¿â·ÃÎʲßÂÔÎļþ AuthTypeBasic#ÍùÏÂÊÇapacheµÄ¼òµ¥ÈÏÖ¤·½Ê½£¬¼°ÃÜÂëÎļþ´æ·ÅλÖà AuthName"Subversionrepository" AuthUserFile/data3/svn/htpasswd Requirevalid-user </Location>
±à¼Íê³Éºó±£´æÍ˳ö£¬ÓÉÓÚhttp·ÃÎʵķ½Ê½ÃÜÂë´«ÊäÊÇÃ÷Îĵģ¬ËùÒÔ»¹ÐèÒªÅäÖÃssl½øÐмÓÃÜ´«
Ïà¹ØÎĵµ£º
Ò»¡¢ÒýÑÔ£º
±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØͼ£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾Ñ飨Õâ¸ö»¹µ ......
1. ÄÚºËѧϰ·½·¨£¬±àÒë¡¢µ÷ÊԵȳ£¼ûÎÊÌâ
1.1 ¹ØÓÚ±àÒëÉý¼¶Äں˵½2.6.0µÄһЩÎÊÌâ ×÷Õߣºommm
http://linux.chinaunix.net/bbs/thread-281831-1-5.html
1.2 VMWare Workstation 6.0µ÷ÊÔLinux Kernel£¬¾¹Èç´Ë·½±ã ×÷Õߣºalbcamus
http://linux.chinaunix.net/bb ......
example:
zip -q -r html.zip html
²ÎÊý˵Ã÷£º
Óï¡¡¡¡·¨£ºzip [-AcdDfFghjJKlLmoqrSTuvVwXyz$][-b <¹¤×÷Ŀ¼>][-ll][-n <×Öβ×Ö·û´®>][-t <ÈÕÆÚʱ¼ä>][-<ѹËõЧÂÊ>][ѹËõÎļþ][Îļþ...][-i <·¶±¾Ñùʽ>][-x <·¶±¾Ñùʽ>]
²¹³ä˵Ã÷£ºzipÊǸöʹÓù㷺µÄѹËõ³ÌÐò£¬Îļþ¾ËüѹËõºó»áÁíÍ ......
ʲôÊÇSocket
¡¡¡¡ Socket½Ó¿ÚÊÇTCP/IPÍøÂçµÄAPI£¬Socket½Ó¿Ú¶¨ÒåÁËÐí¶àº¯Êý»òÀý³Ì£¬³ÌÐòÔ±¿ÉÒÔÓÃËüÃÇÀ´¿ª·¢TCP/IPÍøÂçÉϵÄÓ¦ÓóÌÐò¡£ÒªÑ§InternetÉϵÄTCP/IPÍøÂç±à³Ì£¬±ØÐëÀí½âSocket½Ó¿Ú¡£
¡¡ ¡¡ Socket½Ó¿ÚÉè¼ÆÕß×îÏÈÊǽ«½Ó¿Ú·ÅÔÚUnix²Ù×÷ϵͳÀïÃæµÄ¡£Èç¹ûÁ˽âUnixϵͳµÄÊäÈëºÍÊä³öµÄ»°£¬¾ÍºÜÈÝÒ×Á˽âSocketÁË¡£ÍøÂçµÄ ......
½ÓÏÂÀ´£¬ÎÒÃǽøÈësysfs²¿·Ö¡£¿´¿´
kobject_add()->create_dir()->sysfs_create_dir()
bus create file->sysfs create file()
. . .
ÕâЩsysfsº¯ÊýµÄÄÚÄ»¡£
˵°×ÁË£¬sysfs¾ÍÊÇÀûÓÃVFSµÄ½Ó¿ÚÈ¥¶ÁдkobjectµÄ²ã´Î½á¹¹£¬½¨Á¢ÆðÀ´µÄÎļþϵͳ¡£¹ØÓÚsysfsµÄÄÚÈݾÍÔÚfs/sysfs/Ï¡£&nbs ......