CentOS system builds Nginx+SVN
Because there is nothing to customize, svn is installed directly using the package management software that comes with the system, Taking the centos series as an example, the command is as follows: yum install subversion Then the installation of nginx: mkdir -p /opt/soft groupadd web useradd http -g web -s /sbin/nologin cd /opt/soft wget http://sourceforge.net/projects/pcre/files/pcre/8.12/pcre-8.12.tar.gz wget http://www.openssl.org/source/openssl-1.0.0d.tar.gz tar zxvf pcre-8.12.tar.gz tar zxvf openssl-1.0.0d.tar.gz tar zxvf nginx-0.8.54.tar.gz cd nginx-0.8.54 ./configure –prefix=/opt/nginx –user=http –group=web –with-http_stub_status_module –with-http_ssl_module –with-md5=/usr/lib/ –with-pcre=/opt/soft/pcre-8.12 –with-openssl=/opt/soft/openssl-1.0.0d make make install root assigned to /data/wwwroot vi /opt/nginx/conf/nginx.conf … Create svn warehouse: svnadmin create /data/svn Modify configuration file: vi /data/svn/conf/authz [groups] admin=test #A member of the admin group [/] test = rw #Member’s permission to /directory: r read, w write vi /data/svn/conf/passwd [users] test = 123456 #The password of user test vi /data/svn/conf/svnserve.conf anon-access = none auth-access = write password-db = passwd authz-db = authz realm = My First Repository start svnserv svnserve -d -r /data/svn You can also use the –listen-port parameter to specify the port to start multiple warehouses Import the project, if the project directory is svn://host/test ,Create a copy of the svn warehouse (nginx read directory) cd /data/wwwroot svn co svn://localhost/test –username test –password 123456 Automatically update nginx…