CentOS:
http://wiki.centos.org/HowTos/Subversion
1, yum install mod_dav_svn subversion
如果没有安装apache,yum install mod_dav_svn subversion httpd
2.
vi /etc/httpd/conf.d/subversion.conf
DAV svn
SVNParentPath /var/www/svn
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /var/www/svn/passwd
AuthzSVNAccessFile /var/www/svn/authz
Require valid-user
# </LimitExcept>
</Location>
3.
[root@lucifer ~] htpasswd -cm /etc/svn-auth-conf yourusername New password: Re-type new password: Adding password for user yourusername [root@lucifer ~] htpasswd -m /etc/svn-auth-conf anotherusername New password: Re-type new password: Adding password for user anotherusername
/etc/svn-auth-conf 可改为 subversion.conf文件中AuthUserFile /var/www/svn/passwd文件名
4.
[root@lucifer ~] cd /var/www/ -- Or wherever you placed your path above [root@lucifer ~] mkdir svn [root@lucifer ~] cd svn [root@lucifer ~] svnadmin create repos [root@lucifer ~] chown -R apache.apache repos [root@lucifer ~] service httpd restart
#svn mkdir htttp://svnserver/repos/testdir -m "mkdir"
如果提示没有权限,#chown apache.apache repos
5./var/www/svn/authz
[user1:/]
user = rw
read = r
[user2:/]
chu = rw
以上是简单配置,具体可查看官方网站
eclipse 插件 subclipse安装