Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ The SVN installation, configuration and start - up under Linux (CentOS 6.5)     - Linux kernel RCU (Read Copy Update) lock Brief (Linux)

- Teach you how to ensure password security under the Linux operating system (Linux)

- Analysis of native Java keywords (Programming)

- Linux file permissions bit forced bits and adventure Comments (Linux)

- Modern Objective-C syntax and new features (Programming)

- GNU Linux use diff to generate a patch with the patch (Linux)

- 20+ Best Practices article MySQL Performance Optimization (Database)

- MySQL full-index scan bug (Database)

- Windows7 system using Vagrant to build Linux virtualized development environment (Linux)

- Security enhancements in Ubuntu ssh service (Linux)

- Hazelcast integration with MongoDB (Database)

- Disk partition MBR (Linux)

- Syncthing: Private Security Synchronization tool to synchronize files between computers / folder (Linux)

- Deployment Kubernetes manage Docker example cluster on Ubuntu (Server)

- PLSQL Developer synchronization table tools (Database)

- Oracle table space is too large processing time (Database)

- How to add any of a Linux distribution beautiful fonts (Linux)

- Build the first ASP.NET 5 Web project in Mac OS X Yosemite 10.10.3 (Server)

- Java string intern constant pool resolution Introduction (Programming)

- Awk include binding capacity larger than the specified size of all files directory (Linux)

 
         
  The SVN installation, configuration and start - up under Linux (CentOS 6.5)
     
  Add Date : 2017-08-31      
         
       
         
  Linux (CentOS 6.5) under the SVN installation, configuration and start - up

Preparations: yum

1. Check that it is installed

Rpm -qa subversion
If you want to uninstall the old version:

Yum remove subversion

2. Install

Yum install subversion
PS: yum install httpd-devel subversion mod_dav_svn mod_auth_mysql (This is to install the module with Apache, I have not yet done, made up again, you can only install the subversion, more installed also does not matter)
3. Check whether the installation is successful

Svnserve --version
If successful, the version number is output

4. Create a warehouse directory
E.g:

Mkdir / home / svn / game

5. Create the project

Svnadmin create / home / svn / game

6. Check whether the creation was successful

Cd / home / svn / game
Ll
If successful, the game directory will be more than a few folders

7. into the conf directory will see the three configuration files, the resulting file has an English comment description
Example Requirements:

Planning Group: open planning, art reading and writing
Back-end group: open-end read and write, planning read-only
Front-end group: open front read and write, planning, art read-only
Art Group: open art reading and writing, planning read-only
Administrator Group: All read and write
Authz: user rights configuration
Example:

[Groups]
# Manage the group
Manager = boss
# Server group
Server = server1, server2
# Client user group
Client = client1, client2
Art Group
Art = art1, art2
Planning Group
Design = design1, design2
[Game: /]
Manager = rw
[Game: / server]
@ Server = rw
[Game: / client]
@ Client = rw
@ Design = r
@ Art = r
[Game: / art]
@ Design = rw
@ Art = rw
@ Client = r
[Game: / design]
@ Design = rw
@ Server = r
@ Client = r
@ Art = r
Passwd: User password

[Users]
Boss = 123456
Server1 = 123456
Server2 = 123456
Client1 = 123456
Client2 = 123456
Art1 = 123456
Art2 = 123456
Design1 = 123456
Design2 = 123456
Svnserve.conf:

# Anonymous access permissions
Anon-access = none
# Verify the user privilege
Auth-access = write
# Password file address
Password-db = / home / svn / game / passwd
# Permission file address
Authz-db = / home / svn / game / authz
# Project Name (UUID)
Realm = game


8. Open the svn port
The default is 3690 ports, you can also use other. Skipped This step is turned on

modify
Iptables -I INPUT -p tcp -dport 3690 -j ACCEPT
save
/etc/rc.d/init.d/iptables save
Reboot
Service iptables restart
View
/etc/init.d/iptables status

9. Start the SVN service

Svnserve -d -r / home / svn
The -d: daemon
-r: svn root directory
Assuming the server IP is 192.168.1.100, then set the following access to the directory on the game:

Svn: //192.168.1.100/game

10. Install the client TortoiseSVN


11. Create a subdirectory
In the client PC to find a directory, with the administrator account from svn: / / 192.168.1.100 / game out of the game directory, respectively, art, design, server, client 4 subdirectories, and then submitted.
At this time you can use other groups of accounts under test whether the normal use.

12. Installed svn server, the default is not boot since the start, each boot will start a lot of trouble, we can set it into a boot
First: Write a startup script svn_startup.sh, I put /root/svn_startup.sh
#! / Bin / bash
/ Usr / bin / svnserve -d -r / home / svn /
Here svnserve path insurance, it is best to write the absolute path, because the start time, the environment variable may not load.
Absolute path how to check?
Which svnserve
There may also be a problem, if you create and write in the windows of the footsteps, get linux, with vi or vim may not be able to modify the implementation, which is the file format

Vi svn_startup.sh

Enter: set ff Enter

If the display is not fileformat = unix

re-enter

Set ff = unix

On the OK
Then modify the script's execute permission

Chmod ug + x svn_startup.sh

Or omnipotent

Chmod 777 svn_startup.sh
Finally: join the automatic operation

Vi /etc/rc.d/rc.local
At the end of the script to add the path, such as:
/root/svn_startup.sh
Now, you can try to restart it. Do not know how to confirm success? Lost to you

Ps -ef | grep svnserve
A lot of work
     
         
       
         
  More:      
 
- JITwatch installation under Linux (Linux)
- Linux NFS service fixed ports and firewall configuration (Linux)
- AngularJS notes --- Data Binding (Programming)
- Configuration OpenOCD + FT2232 under Ubuntu (Linux)
- MySQL restart process can not be taken lightly (Database)
- A detailed introduction to the Hadoop ecosystem (Server)
- Java Database Programming JDBC configuration (Programming)
- Ordinary users how to use the firewall software (Linux)
- Embedded Linux to solve the problem in the time zone (Linux)
- Linux system security configuration Collection (Linux)
- Oracle database physical file backup / restore (Database)
- Commonly used Linux system camouflage method (Linux)
- HBase Application Development Review and Summary of Series (Database)
- Oracle to create an external table (Database)
- Ubuntu system grub repair method (Linux)
- Red Hat Enterprise Linux configuration VNC multi-user access methods (Linux)
- PHP with FastCGI and mod_php Comments (Server)
- Java annotations entry automatically generates SQL statements (Programming)
- HTML5 postMessage cross-domain data exchange (Programming)
- Use Visual Studio 2015 to develop Android program (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.