Redhat 下安装subversion

一 使用的软件
1 subversion的几个软件
   CollabNetSubversion-client-1.6.12-1.i386.rpm
   CollabNetSubversion-extras-1.6.12-1.i386.rpm
   CollabNetSubversion-server-1.6.12-1.i386.rpm
   RPM-GPG-KEY-csvn.asc ---分离的 OpenPGP 签名文件
2 window连接linux工具
   putty.exe
3 辅助工具(从windows下载1中软件并上传给linux)
   winscp
二 安装说明
1 sudo rpm --import /path/to/RPM-GPG-KEY-csvn.asc
2 打开终端,切换到 root 帐号,命令为 sudu sh (会提示输入密码)
3 rpm --import RPM-GPG-KEY-csvn.asc (好像要再前面加上path,有点记不清了)
4 rpm -ivh CollabNetSubversion-client-1.6.9-1.i386.rpm
5 rpm -ivh CollabNetSubversion-server-1.6.9-1.i386.rpm
6  rpm -ivh CollabNetSubversion-extras-1.6.9-1.i386.rpm
安装完毕,接着进行SVN的配置:
7 /opt/CollabNet_Subversion/bin 目录下执行命令: ./Configure-CollabNet-Subversion
8 以下是copy别人的
CollabNet Subversion Server is a free download of open-source Subversion,

  compiled and tested by CollabNet. For more information about CollabNet

  Subversion, visit the CollabNet community at http://open.collab.net./

  Would you like to configure the CollabNet Subversion Server now? [yes] (直接回车)

  Welcome to CollabNet Subversion Server setup.

  You will now be asked some questions to configure CollabNet Subversion.

  Defaults are given in square brackets. If a default is okay for you

  Just hit [Enter] to continue.

  This setup can configure either Apache or svnserve as Subversion

  server, for you. Would you like to configure Apache as your

  Subversion server now? [yes] (直接回车)

  Continuing with apache Subversion server configuration ...

  Specify the base directory for Subversion repositories: [/var/svn/repositories] /opt/SVNRepositories (这里我更改了SVN仓库存储路径,不使用默认的路径。)

  Non-existing base path, Let me create and continue [yes] (直接回车)

  Base path created.

  Would you like to create a new Subversion repository? [yes] (直接回车)

  What should be your new Subversion repository name? DEOM (这里建立一个名为 DEMO 的测试用库)

  New repository created.

  Would you like to initialize the repository with trunk/branches/tags folders? [no] (直接回车)

  Done.

  Would you like to create another Subversion repository? [yes] (直接回车)

  What should be your new Subversion repository name? svntest (这里再建立一个名为 svntest 的库)

  New repository created.

  Would you like to initialize the repository with trunk/branches/tags folders? [no](直接回车)(暂时不导入初始数据)

  Done.

  Would you like to create another Subversion repository? [yes] no (已经建立了2个测试用库,就不再建了。)

  Would you like to give the name and port that the server uses to identify itself? [yes]

  Registered DNS name or IP address: 192.168.168.159 (这里IP是指 apache 的服务“IP”配置。)

  Server port number: 18080 (apache的服务端口号)

  Allow anonymous read access? [no] (直接回车)

  0 users currently have access to this repository:

  Would you like to create a new Subversion account? [yes] (直接回车)

  Account username

  (To re-create or delete a Subversion account, enter an existing username): svnadmin (建立一个SVN帐号)

  Account password: (密码)

  Retype account password: (重复密码)

  Adding password for user svnadmin

  Account created

  Would you like to create another user account? [yes] no (暂时不需要再建另一用户了)

  Would you like to configure ViewVC? [yes] (是否启用VierVC,直接回车)

  Stopping CollabNet Subversion: httpd (no pid file) not running

  done

  Starting CollabNet Subversion: done

  (此时,SVN+Apache服务也顺利地配置完成了。最后的提示信息如下:)

  Congratulations! You have successfully configured the CollabNet

  Subversion server.

  You can access your repositories at the following URL:

  http://192.168.168.159:18080/svn/YOUR-REPOS-NAME

  http://192.168.168.159:18080/viewvc/YOUR-REPOS-NAME




猜你喜欢

转载自mingzhuer18.iteye.com/blog/793805