Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to configure CVS server under Linux system

Shulou Source: shulou.com Published: 2022-06-01 18:37:22 10月22日 Update

This article introduces the relevant knowledge of "how to configure the CVS server under the Linux system". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. Install the CVS server and configure rpm-ivh cvs-1.12.9.i386.rpm as follows

2. Start the CVS service. The CVS service on Linux can be started through inetd,xinetd, tcpwrapper, etc. Now start the CVS service using xinetd.

3, configuration / etc/services file

[root@fp71g /] # vi / etc/services

Add cvspserver to the services file to make it a service of Linux, that is, the entry of the CVS server routine, configured as follows:

Cvspserver 2401/tcp # CVS client/server operations

Cvspserver 2401/udp # CVS client/server operations

4, create a configuration file vi etc/xinetd.d/cvspserver for the CVS service under the / etc/xinetd.d directory

[root@fp71g /] # vi / etc/xinetd.d/cvspserver

The contents are as follows:

Service cvspserver {

Socket_type = stream

Wait = no

User = root

Env = HOME =

Server = / usr/bin/cvs

Server_args =-f-- allow-root=/home/cvsroot pserver

}

5. Configure CVS users and cvsroot groups

Establish CVS group

[root@fp71g /] # groupadd CVS

Establish users in the CVS group

[root@fp71g /] # useradd-g CVS user3

[root@fp71g /] # useradd-g CVS user2

Set user3 password

[root@fp71g /] # passwd user3

[root@fp71g /] # chown user3 / home/cvsaaa

[root@fp71g /] # chmod 771 / home/cvsaaa

6. Initialize the repository directory / home/cvsaaa on the server side

[root@fp71g /] # mkdir / home/cvsaaa

[root@fp71g /] # cvs-d / home/cvsaaa init

At this point, the CVSROOT directory appears under the / home/cvsaaa directory.

7, [root@fp71g /] # setup

Select cvspserver in system service

Restart xinetd

[root@fp71g /] # / etc/init.d/xinetd restart

Stop xinetd: [OK]

Start xinetd: [OK]

Use the netstat-l command to see if the working network port has the following information:

Tcp 0 0 *: mysql *: * LISTEN

Tcp 0 0 *: cvspserver *: * LISTEN

With regard to OK, there is no problem with CVS installation and startup.

8, log in to the CVS server (login under the Linux,unix system)

# cvs-d: pserver:cvsadmin@192.168.1.36:/home/cvsroot/ login

Enter password

If there are no other prompts, it means that the login is successful, otherwise you should modify it according to the prompts.

This is the end of the content of "how to configure the CVS server under the Linux system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Services configurations servers directories systems content files logins passwords more users knowledge processes tips practical successful successful learning and then that is the warehouse Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Tech Info Redmi Microsoft Linux