Ubuntu安装SVN
安装SVN
安装命令
sudo apt-get install subversion
启动svn服务
安装完毕后,SVN的服务默认没有启动的。SVN服务绑定端口号是3690。可用相关Linux命令查看。
服务启动命令:
svnserve -d
****@ubuntu:~$ netstat -ntlp |grep 3690
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
****@ubuntu:~$ svnserve -d
****@ubuntu:~$ netstat -ntlp |grep 3690
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 4298/svnserve
SVN创建项目
svnadmin create goolge_v8(goolge_v8为项目名称,位置在当前登录用户的主目录下,如我使用**登录,则路径为/home/* * * */goolge_v8)
在goolge_v8文件夹中可以看到conf文件夹,可针对conf文件夹中的authz、passwd、svnserve.conf进行设置,svnserve.conf主要设置整体的安全策略,passwd则设置用户名和密码,authz则是设置具体的用户有什么权限。
****@ubuntu:~$ svnadmin create google_v8
****@ubuntu:~$ ls
code Documents examples.desktop Music Pictures Templates Videos
Desktop Downloads google_v8 peda Public tools
****@ubuntu:~$ cd google_v8/
****@ubuntu:~/google_v8$ ls
conf db format hooks locks README.txt
****@ubuntu:~/google_v8$ cd conf
****@ubuntu:~/google_v8/conf$ ls
authz hooks-env.tmpl passwd svnserve.conf