Recently, as the project requires remote access to the svn server, but there is no fixed domain name or IP address, we plan to use a peanut shell to apply for a free domain name to build a server, and then deploy visualsvn on the server, you can access it on the Internet (if you have a fixed domain name and server, you don't have to worry about it ). The following describes the specific creation process;
1. Install visualsvnserver
Visualsvn server: http://www.visualsvn.com/server/
For detailed installation and configuration process of visualsvn server, see http://www.cnblogs.com/lyhabc/articles/2482052.html
(Check "use secureconnection" during installation)
2. Install peanut shells and apply for free Domain Names
Peanut shells: http://www.oray.com/peanuthull/download.php to download the dynamic domain name.
After installation, run the software and click "register passport". After registration, a free domain name is provided, and then you can log on to the peanut shell software.
3. Set vro
My dormitory is a TP-LINK router, so take him as an example, other routers are similar.
1) enable "static Address Allocation" under the DHCP server
Fix the computer to a static Intranet IP address. Note that it corresponds to the MAC address.
2) Open the "virtual server" under the forwarding rule
Because the default port for the secure connection (secure connection with the prefix of HTTPS) of visualsvnserver is 443, you need to enter port 443 and the fixed IP address in the virtual server. To create an HTTP server, map port 80.
3) Enable Dynamic DNS
Enter the username and password of the peanut shell software.
4) restart the vro after completing all the settings.
Iv. Set visualsvnserver
Open visualsvnserver:
Right-click "visualsvn server (local)" and select "properties" to switch to the "networking" tab:
Change "servername" and "server port" to the IP address and port set in the vro virtual server. Restart the visual SVN service.
Finally:
Find an Internet computer, enter: https://xxx.eicp.net: 443/SVN in the address bar of the browser, the red part is the free Domain Name provided by the peanut shell, if you can access, it indicates that the configuration is successful.
"Peanut shell" + "visualsvn" cleverly implement remote code version control