Ubuntu搭建版本库svn与wensvn管理工具
2014-05-05 20:40
405 查看
下载必须的版本管理工具
#sudo apt-get install subversion
#svnadmin create <projectname>
#cd <projectname>
#ls
conf db format hooks locks README.txt
#cd conf
#ls
authz passwd svnserve.conf
#cat authz
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to:
### - a single user,
### - a group of users defined in a special [groups] section,
### - an alias defined in a special [aliases] section,
### - all authenticated users, using the '$authenticated' token,
### - only anonymous users, using the '$anonymous' token,
### - anyone, using the '*' wildcard.
###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
[groups]
prj = user, testname
[mt7620n:/]
@prj = rw
#cat passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.
[users]
# harry = harryssecret
# sally = sallyssecret
user= user
testname= testname
#cat svnserve.conf
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit http://subversion.tigris.org/ for more information.
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = read
auth-access = write
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control. Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file. If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa. The default realm
### is repository's uuid.
# realm = My First Repository
[sasl]
### This option specifies whether you want to use the Cyrus SASL
### library for authentication. Default is false.
### This section will be ignored if svnserve is not built with Cyrus
### SASL support; to check, run 'svnserve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# use-sasl = true
### These options specify the desired strength of the security layer
### that you want SASL to provide. 0 means no encryption, 1 means
### integrity-checking only, values larger than 1 are correlated
### to the effective key length for encryption (e.g. 128 means 128-bit
### encryption). The values below are the defaults.
# min-encryption = 0
# max-encryption = 256
#svnserve -d -r /home/lsir/
#pwd
/home/lsir
#ls
mt7620n
注意项目目录与svnserve -d -r /home/lsir 的关系,项目目录在其下。
安装websvn,网上的介绍一大堆,但是在我这里都不管用,废话不多说,直接搞一个server里面有apache2+php+mysql,可以正常上网的server.
#sudo apt-get install websvn
由于通过ssh登陆安装,里面的配置选项没得看,只能默认安装了。
#cp -rf /usr/share/websvn /var/www
修改apache配置文件: /etc/apache2/sites-avaliable/default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory /var/www/websvn>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
最好配置下/var/www/websvn/include/config.php
$config->addRepository('MT7620N', 'file:///home/lsir/mt7620n');
至此,配置完成。
#sudo apt-get install subversion
#svnadmin create <projectname>
#cd <projectname>
#ls
conf db format hooks locks README.txt
#cd conf
#ls
authz passwd svnserve.conf
#cat authz
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to:
### - a single user,
### - a group of users defined in a special [groups] section,
### - an alias defined in a special [aliases] section,
### - all authenticated users, using the '$authenticated' token,
### - only anonymous users, using the '$anonymous' token,
### - anyone, using the '*' wildcard.
###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
[groups]
prj = user, testname
[mt7620n:/]
@prj = rw
#cat passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.
[users]
# harry = harryssecret
# sally = sallyssecret
user= user
testname= testname
#cat svnserve.conf
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit http://subversion.tigris.org/ for more information.
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = read
auth-access = write
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control. Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file. If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa. The default realm
### is repository's uuid.
# realm = My First Repository
[sasl]
### This option specifies whether you want to use the Cyrus SASL
### library for authentication. Default is false.
### This section will be ignored if svnserve is not built with Cyrus
### SASL support; to check, run 'svnserve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# use-sasl = true
### These options specify the desired strength of the security layer
### that you want SASL to provide. 0 means no encryption, 1 means
### integrity-checking only, values larger than 1 are correlated
### to the effective key length for encryption (e.g. 128 means 128-bit
### encryption). The values below are the defaults.
# min-encryption = 0
# max-encryption = 256
#svnserve -d -r /home/lsir/
#pwd
/home/lsir
#ls
mt7620n
注意项目目录与svnserve -d -r /home/lsir 的关系,项目目录在其下。
安装websvn,网上的介绍一大堆,但是在我这里都不管用,废话不多说,直接搞一个server里面有apache2+php+mysql,可以正常上网的server.
#sudo apt-get install websvn
由于通过ssh登陆安装,里面的配置选项没得看,只能默认安装了。
#cp -rf /usr/share/websvn /var/www
修改apache配置文件: /etc/apache2/sites-avaliable/default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory /var/www/websvn>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
最好配置下/var/www/websvn/include/config.php
$config->addRepository('MT7620N', 'file:///home/lsir/mt7620n');
至此,配置完成。
相关文章推荐
- VMware+Ubuntu14.04.5+Trac-1.2+svn 搭建轻量级软件项目缺陷管理工具
- 搭建本地SVN版本管理工具
- Ubuntu下svn 版本管理客户端工具及常用方法
- 搭建本地SVN版本管理工具
- ubuntu 搭建本地 subversion 版本库管理工具
- 项目管理实践之版本控制工具SVN在Windows平台下的平台搭建
- 项目管理实践之版本控制工具SVN在Windows平台下的平台搭建
- 轻松搭建svn版本管理工具+svnmanager管理客户端
- 版本管理工具介绍——SVN篇(一)
- 版本管理工具(SVN)
- 1版本管理工具svn
- SVN版本管理工具使用手册
- eclipse默认支持的版本管理工具是cvs,那么作为流行的svn怎么办了,当然作为开源的系统,自然就会有对应的组建了,那就是subeclipse 作为 系统 当然 自然 对应 就是 组建 怎么办 版本 支持 | 中国网管联盟
- Ubuntu 12.04.4 LTS 多版本库svn独立服务器搭建
- iOS版本管理工具SVN
- Java开发环境搭建(进阶配置四 ——版本控制工具之SVN)
- 版本管理工具SVN学习(一):简单的SVN命令,兼对比Git
- 使用微软TFS代码管理工具和在金山快盘上搭建SVN的使用方法
- SVN 版本管理工具笔记