Centos6.5 install svn server

  • First check if svn is installed on the server
    # rpm -qa subversion
  • If it is not installed, execute this command
    # yum list subversion //View the svn package name
  • # yum install -y subversion.x86_64           //yum安装svn
  • Create svn data storage path
    # mkdir -p /svn/svnserver
  • Start the svn service
    # svnserve -d -r /svn/svnserver/
    # ps -ef |grep svn //View the svn startup process
  • Create a repository with a custom name
    # svnadmin create /svn/svnserver/52yungo //Create a repository named 52yungo
  • Modify the configuration file
    # vim /svn/svnserver/52yungo/conf/svnserve.conf
  • Create svn users and permissions. There are two files in the /svn/svnserver/52yungo/conf directory for configuring user account passwords and user permissions.
    passwd This file configures user account and password
    authz This file configures user permissions
    # vim /svn/svnserver/52yungo/conf/passwd

    # vim /svn/svnserver/52yungo/conf/authz
  • Finally, let's check the server's firewall and selinux status.
    # service iptables status //Check the firewall status
    # service iptables stop //Turn off the firewall
    # chkconfig iptables off //Turn off the firewall and start up
    # vim /etc/selinux/config //Configure selinux condition
  • In this way, the svn server is built. It can be accessed through svn://svn server ip/52yungo

 

Article source: http://www.linuxidc.com/Linux/2016-12/137864.htm

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326325670&siteId=291194637