Ubuntu搭建版本库svn与wensvn管理工具
来源:互联网 发布:xfplay 怎么没有mac版 编辑:程序博客网 时间:2024/06/05 02:23
下载必须的版本管理工具
#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');
至此,配置完成。
- Ubuntu搭建版本库svn与wensvn管理工具
- ubuntu 搭建本地 subversion 版本库管理工具
- 搭建本地SVN版本管理工具
- 搭建本地SVN版本管理工具
- 版本管理工具SVN
- 版本管理工具--SVN
- SVN版本管理工具使用说明
- SVN版本管理工具简介
- 1版本管理工具svn
- 2版本管理工具svn
- 3版本管理工具svn
- 4版本管理工具svn
- 5版本管理工具svn
- 版本管理工具SVN概述
- 版本管理工具之svn
- SVN版本管理工具
- 版本管理工具 - SVN
- SVN版本管理工具介绍
- 黑马程序员-传智播客资料中的面试题
- gcd算法整合(最大公约数)
- 浅谈外连接中的on条件字句
- 读老子,明智明理
- HTML4常用标签元素总结及简介
- Ubuntu搭建版本库svn与wensvn管理工具
- MongoDB2.6window系统下安装服务
- VC中坐标系的建立 逻辑坐标,物理坐标,设备坐标
- 斜率优化专题2——bzoj 1010 [HNOI2008]玩具装箱toy 题解
- dwr处理参数或返回值为pojo对象的JavaBean方法
- 小训练题解
- TCP Socket协议定义
- fscanf()函数详解
- HDU 1533 费用流