Ubuntu 11.04 安装 svnManager

安装svnManager
前提安装:

#安装apache2
sudo apt-get install apache2

#安装subversion 和 apache2 组件
sudo apt-get install subversion libapache2-svn

#安装mysql
sudo apt-get install mysql

#开启网络访问的80端口

###tomcat6 开启80端口
修改 /etc/default/tomcat6 文件中 AUTHBIND=yes
# If you run Tomcat on port numbers that are all higher than 1023, then you
# do not need authbind.  It is used for binding Tomcat to lower port numbers.
# NOTE: authbind works only with IPv4.  Do not enable it when using IPv6.
# (yes/no, default: no)
#AUTHBIND=no

#加载模块
sudo a2enmod dav_svn

#使apache能访问svn的库,在 /etc/apache2/mods-avaiable/dav_svn.con 文件中找到

<location /svn>
DAV svn

#Repository Folders Location (make sure this folder exists
#and keep location in mind)
SVNParentPath /srv/svn/repos

AuthType Basic
AuthName "Restricted Access"

#File will be created by SVNManager, keep location in mind!
AuthUserFile /srv/svn/htpasswd

Require valid-user
#SSLRequireSSL

#File will be created by SVNManager, keep location in mind
AuthzSVNAccessFile /srv/svn/accessfile

</location>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wywxww.html