ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÊÕ²Ø [¼±]Linux+Apache+svn+mysql·þÎñÆ÷ÉÏ´«ÌرðÂýµÄÎÊÌâ

·¢²¼Ê±¼ä:2013-03-14 21:15:01À´Ô´:ºìÁª×÷Õß:hejiajia001
ÎÊÌâÃèÊö:
±¾ÈËÔÚÍâÍø·þÎñÆ÷ÉϴSVN×öÏîÄ¿¹ÜÀí. ÒòΪ¿¼Âǵ½ºóÆÚ¶àÏîÄ¿¹ÜÀí·½±ã, ʹÓõÄÊÇapache+mysql+svnµÄ·½Ê½.
ÒòΪ±¾È˵ÄWEB·þÎñÆ÷ʹÓõÄÊÇnginx, ¶øSVNÐèÒªapacheÖ§³Ö, ËùÒÔapache°ó¶¨µÄÊÇ8080¶Ë¿Ú. ·þÎñÆ÷IP:192.168.0.78, ÔÙ±¾È˸ø·þÎñÆ÷°ó¶¨ÁËÒ»¸öÓòÃû, ËùÒÔÐèÒª´ÓnginxÈë¿Ú, ËùÒÔÔÚnginxÖ÷»úÉÏ×öÁËÒ»¸öµ½8080¶Ë¿ÚµÄÖض¨Ïò,ÅäÖÃÈçÏÂ:[code]server
{
listen 80;
server_name svn.bottle.com;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host:80;
proxy_set_header X_Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Via "nginx";
}
}[/code]³öÓÚ°²È«ÐÔ¿¼ÂÇ,ÔÚiptablesÀïÖ»¿ª·Å¶Ô±¾»ú[127.0.0.1]µÄ8080¶Ë¿Ú;
apache SVN¿éµÄÅäÖÃÈçÏÂ:[code]
DAV svn
SVNParentPath /workspace/svn/
AuthName "Wecome access bottle's Subversion server"
AuthType Basic
AuthBasicAuthoritative off
AuthMySQLEnable On
AuthMySQLHost localhost
AuthMySQLUser root
AuthMySQLPassword 123456
AuthMySQLDB friday_server
AuthMySQLUserTable svn_users
AuthMySQLNameField username
AuthMySQLPasswordField passwd
AuthMySQLPwEncryption md5
Require Valid-user
[/code]ÅäÖÃÍê³Éºó, Äܹ»Õý³£·ÃÎÊ, µ«ÊÇÉÏ´«ÎļþµÄËÙ¶ÈÌرðµÄÂý, ¶øÏÂÔØËٶȻáºÜ¿ì.(±¾ÈËÓÐÊÔ¹ýÅäÖöÀÁ¢µÄsvn·þÎñÆ÷, ¶ÀÁ¢µÄsvnÉÏ´«ËÙ¶ÈÕý³£) ÕÒ²»µ½Ô­ÒòËùÒÔÇóÖú! Ï£Íû¸÷λ´óÉñ¸øÓè»Ø´ð, Íò·Ö¸Ðл!!
ÎÊÌâ²¹³ä: apache·Ç×Ô¼º±àÒë°²×°, ÓõÄÊÇrpm°üÖ±½Ó°²×°µÄ.
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. 657129880@qq.co ÓÚ 2013-04-21 17:55:48·¢±í:

    лл·ÖÏí£¡£¡£¡