Configure the CVS server on RedHatLinux9.0

Source: Internet
Author: User
1. Run the rpm-qcvs command to check whether the cvs server has been installed. If yes, skip this step. Otherwise, install the rpm installation package with vsftp on the RedHatLinux9Disk2 disc as follows, you can use this package for installation. # Mount/mnt/cdrom # cd/mnt/cdrom/RedHat/RPMS # rpm-ivhcvs-1.11.2-10.i386.rpm 2.

I. Installation

Run the rpm-q cvs command to check whether the cvs server has been installed. If yes, skip this step. Otherwise, install the cvs server as follows:

The RedHat Linux 9 Disk2 disc contains the vsftp rpm installation package. You can use this package to install it.

# Mount/mnt/cdrom

# Cd/mnt/cdrom/RedHat/RPMS

# Rpm-ivh cvs-1.11.2-10.i386.rpm

2. Create CVS users and user groups

# Groupadd cvs

# Useradd cvsroot-g cvs

# Passwd cvsroot

3. modify the configuration file

Run the # less/etc/services | grep cvspserver command to check whether the command is as follows:

Cvspserver 2401/tcp # CVS client/server operations

Cvspserver 2401/udp # CVS client/server operations

If not, add # vi/etc/services.

4. Create a STARTUP script

Create a file named cvspserver in the/etc/xinetd. d directory.

# Vi/etc/xinetd. d/cvspserver

The content is as follows:

Service cvspserver

{

Disable = no

Flags = REUSE

Socket_type = stream

Wait = no

User = root

Server =/usr/bin/cvs

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

Log_on_success + = USERID

Log_on_failure + = USERID

}

The server specifies the path to the CVS executable file. The default installation path is/usr/bin/cvs. Server_args specifies the source code library path and authentication method. In this example, the source code is stored in the main directory of cvsroot. You can also specify the path, but you must pay attention to permission settings. pserver is a password authentication method, this method is less secure, but easier to operate. Note that each line has a space around the equal sign, otherwise the service cannot be started.

V. initialize cvs

Switch to the cvsroot user and run the following command:

$ Cvs-d/home/cvsroot init

Note that the parameters following-d must be the same as the path specified by the server_args parameter in the/etc/xinetd. d/cvspserver file. After the initialization command is executed, a CVSROOT directory is created under this directory to store some management and control files of cvs.

6. Start the cvs Service

Switch to the root user and restart the xinetd service. The CVS server should be able to start.

# Service xinetd restart

Run the following command to check whether the cvs service has been started:

# Netstat-l | grep cvspserver

If the cvs service is not started, check the firewall settings and open ports 2401 and 2402 when the preceding operations are correct.

VII. Test the cvs Link

Run the following command to test whether the cvs connection is successful:

Cvs-d: pserver: cvsroot @ localhost:/home/cvsroot login

The system prompts you to enter the password. Enter the password and press Enter. If no error message is displayed, the cvs connection is successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.