Talk about how to build an external network to access the SVN server

1. Build an SVN server

1. Required software

  TortoiseSVN, download address http://tortoisesvn.net/downloads.html

  TortoiseSVN Chinese language pack, download address http://sourceforge.jp/projects/sfnet_tortoisesvn/downloads/1.8.8/Language%20Packs/LanguagePack_1.8.8.25755-x64-zh_CN.msi/

  Subversion, download address http://www.sliksvn.com/en/download

2. Software installation

  There are no special requirements when installing, just follow the steps of general software installation.

3. SVN configuration

(1) Create a core repository (provided that you enter the bin directory of Subversion, the default is C:\ProgramFiles\SlikSvn\bin)

  a, svnadmin help View help
  b, svnadmin create library name (absolute path or relative path can be used)

(2) Set permissions

  a. Modify access via password

    Open the "library name (that is, the library name of the resume in step (1))/conf" folder, find svnserve.conf, and open it.

    Remove the # sign in front of #password-db = passwd

  b. Add or modify username and password

     Open the passwd file in the conf folder, and add the username and password in the form of username=password. As shown below

 (3) Start the server

   Command line to start, svnserve -d -r library name (absolute path, relative path can be)

 4. Local SVN server test

   a. Right-click in the blank space -> TortoiseSVN -> Import

  The following picture will appear, enter svn://localhost/, if it is successful, the SVN server has been built and can be accessed in the intranet. When accessing in the intranet, you only need to change the localhost to the IP of the svn server. That's it.

 

2. Make an external network mapping

The first step is to download the Peanut Shell 3.2 client and install it;

The second step, log in to the Peanut Shell 3.2 client, click the domain name list to enter the web management page;

Detailed explanation of how to set up a server in your own home to penetrate the peanut shell intranet

Detailed explanation of how to set up a server in your own home to penetrate the peanut shell intranet

The third step, click [Intranet Mapping] - [Add Mapping] to pop out the port mapping setting window;

Detailed explanation of how to set up a server in your own home to penetrate the peanut shell intranet

The fourth step, fill in the port mapping information . The domain name is the free domain name given when registering Peanut Shell, and other domain names can also be added. The application name is customized, the host is the IP address of the intranet host, select the port open to the outside world, and click OK to complete the information filling;

Detailed explanation of how to set up a server in your own home to penetrate the peanut shell intranet

The fifth step, after the port mapping is added, an address that can be accessed by the external network is generated, and the port mapping is completed;

Detailed explanation of how to set up a server in your own home to penetrate the peanut shell intranet

The sixth step is to test. Enter the address in the external network browser, you can access the service application built by the internal network host, and the NAT penetration is successful.

 

The access address of the intranet SVN client is: https://222.20.95.117:443/svn/SoftWare

Then the access address of the external network SVN client is: https://******.vcip.cc:33682/svn/SoftWare

 

New peanut shell dynamic domain name resolution: the solution to the failure of the LAN server

Peanut shell domain name diagnosis: Failed to resolve the LAN server. In fact, this prompt is to tell you that you have no shelf service. . . Or the service of this port is not set up.

 

Figure 2: I open the service, pay attention to setting the port of the internal network that I want to set, and the external network is generated by the peanut shell itself. 

Figure 3: After opening the corresponding port service, if the network speed is fast enough, everything is parsed normally!

Brief summary: There is a problem with your own basic theory: you can use the service first before you can use it. . . Generally, a service will be bound to a port.

 

 

 

 

 

 

 

 

 

refer to:

https://blog.csdn.net/tcjy1000/article/details/50411585

https://blog.csdn.net/fbb3682227/article/details/50074271

https://blog.csdn.net/lu930124/article/details/47129727

https://blog.csdn.net/hyioi/article/details/46963967

Guess you like

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