In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Yum install subversion
Rpm-ql subversion to view the installation location
/ usr/bin/svnversion-- version can check the version of svn, which means that svn is installed successfully
Create the svn version library directory mkdir-p / services/svnrepos
Creating a version library svnadmin create / services/svnrepos/wine will generate some files
Cd / services/svnrepos/wine
Enter the conf directory (the svn version library configuration file)
The authz file is a permission control file
Passwd is the account password file
Svnserve.conf SVN service profile
Set account password
Vi passwd
Add the user and password to the [users] block, in the format: account = password, such as admin=admin
Set permissions
Vi authz
Add the following code at the end:
[groups] Settings group
Admin = user1
[/] Root directory permission settings (that is, the folder "svnrepos")
Admin=rw user admin permissions are: read / write
Admin2=r user admin2 permissions are: readable
@ admin = rw sets group permissions
[svnrepos:/winne] set permissions for the "winne" folder in the root directory
Admin=rw user admin permissions are: read / write
Admin2=r user admin2 permissions are: readable
Modify the svnserve.conf file
Vim svnserve.conf
Open the following comments:
Anon-access = read # when anonymous user-readable client Checkout (extract), there will be a Not authorized to open root of edit operation "error. The parameter none is normal.
Auth-access = write # authorised user writable
Password-db = passwd # which file is used as the account file
Authz-db = authz # which file to use as the permissions file
Realm = / services/svnrepos # authentication space name, directory where the version library is located
Configure Firewall Port
Vi / etc/sysconfig/iptables
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3690-j ACCEPT
Start the svn version library
Svnserve-d-r / services/svnrepos/wine
View SVN processes
Ps-ef | grep svn | grep-v grep
Detect SVN port
Netstat-ln | grep 3690
Stop restarting SVN
Killall svnserve / / stop
Svnserve-d-r / services/svnrepos/wine / / start
If you already have svn running, you can run it on another port.
Svnserve-d-r / services/svnrepos/wine/-- listen-port 3391
test
The SVN service has been started, using the client to test the connection.
Client connection address: svn://192.168.31.115
Username / password: admin/admin
Test operations such as creating folders.
Import the file into the version library:
Terminal input: svn import [source path] [destination version library path]-m [log information]
The source path can be a relative path, and all files and folders under the source path will be imported recursively. The target version library path requires an absolute directory (as I did in my experiment anyway). For example, the directory of the version library is: home/user/svn/myproject/. It should be written like this: file:///home/user/svn/myproject/
For example, import the current directory into the version library myproject:svn import. File:///home/user/svn/myproject-m "Import File"
Export from the version library:
After import, the original file is not included in version management. If you want to get a version-controlled file, you need to export from the version library.
Terminal input: svn co [version Library path] [Export destination path]
For example, export the files in the myproject library to the current directory: svn co file:///home/user/svn/myproject.
Used by the web end of the public network
First install subversion, just like the second server side, there will be related commands.
In order to access the IP of the intranet, the external network needs to map and forward it on the router of the intranet and enter the router of the intranet. Generally speaking, it is 192.168.1.1. After logging in, open the forwarding rule-virtual server and add a new entry. My configuration is as follows:
If you need to use a domain name to access the svn of the private network, you need to set hosts on the client. If you do not need to use the public network IP directly, you do not need to set it. This public network IP is the IP used by the router of the private network to access the public network. You can search for IP in Baidu search.
Access by domain name:
1) add: public network IP svn.6688.cc to / etc/hosts
2) svn checkout http://svn.6688.cc:81/svn / xxx/xxx-the server-side directory is followed by a local directory, that is, the server-side data is exported to the local directory.
Access via IP:
Do not need to set hosts, directly svn checkout http:// the public network IP:81/svn / xxx/xxx
Http://blog.sina.com.cn/s/blog_4e0987310101ak1r.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un