I recently wanted to develop some of my own open source projects and components. Although you can submit it directly to Github. However, sometimes you just want to do the front and back end yourself, implement the whole process, and solve performance bottlenecks in various places on the front and back end. Therefore, want to put the project directly into their own server, directly submitted, background PM2 directly hot load files can quickly see the effect, this is my expectation. Of course, you can also use Git, this will be considered later.

———– In Centos 7.2 ————

1. Download the SVN

yum install subversion -y

2. Create a warehouse location

Find the folder where you want to build the repository set (I put it in /usr/project) mkdir /usr/project

Warehouse initialization

Creates a repository in the directory of the specified repository set

svnadmin create /usr/project/store1

The directories of store1 are as follows

4. Configure users

When using SVN, you can't give everyone access to your repository, so you need to configure the files.Copy the code

There are three files in /usr/project/store1/conf

Authz: manages the permissions of each user, including but not limited to, which user can only modify which project, or can only view or modify the project, etc. Passwd: indicates the configuration of user accounts and passwords. Svnserve. conf: indicates the configuration of SVN services

Because it’s its own server, it doesn’t require that much. Anthz doesn’t care.

Passwd as follows. Username = password Save the configuration.

Svnserve. Config as below.

I’ve only done three configurations here. Anon-access specifies whether anonymous access is allowed. In this case, none is allowed. Auth-access is used to configure whether SVN content can be read and written. Read is used to read SVN content. Write is used to write SVN content, but write contains read password-db, which is used to configure available users

5. Start the SVN service

Svnserve -d -r /usr/project/store1 In fact, -d => daemon starts the daemon thread. If the daemon fails to start, it automatically starts. -r => root Specifies the root directory

Install TortoiseSVN as TortoiseSVN

[Official download address](https://tortoisesvn.net/)Copy the code

Seven, checked out

After the installation, the local mouse right click will be checked out, and then the next box will pop upCopy the code

This is your server address. Put it in the folder specified below. Click OK.Copy the code

Eight, firewall open

Someone might get stuck here and wait a long time for Error. It's because the server didn't open the port. All we need to do is open the port. SVN default port 3690 Development port: 'firewall-cmd --permanent --add-port=3690/ TCP' Restart the firewall: 'firewall-cmd --reload'Copy the code

9. Disable the SVN service

I just kill... orz `kill -9 svn`Copy the code

conclusion

Migration to their own server or very convenient, upload can immediately see the effect ~ interested can try ~~~Copy the code