Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to establish cvs server in CentOS system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

What is the method of establishing cvs server in CentOS system? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Cvs server is used to control the version. When working on a project, in order to facilitate the control of the version of the file, put the project file on the cvs server for version control.

Next, let's learn about it.

Operate with root in CentOS system:

1.CentOS system checks to see if cvs is installed

Rpm-qa | grep cvs

It is usually installed in / usr/bin/cvs. If it is not installed, you can download a * rpm installation.

2.CentOS system establishes cvs user groups to facilitate the management of cvs users

Groupadd cvs

The 3.CentOS system establishes the cvsroot users and directories of the cvs group

Useradd-g cvs-G cvs-d / home/cvsroot cvsroot

4.CentOS system adds passwords for cvsroot users

Passwd cvsroot

The 5.CentOS system changes the directory properties of / home/cvsroot

Chmod 775 / home/cvsroot

The 6.CentOS system initializes the cvs source code base with the cvsroot operation, which generates the directory / home/cvsroot/CVSROOT, under which are some initialization files.

Cvs-d / home/cvsroot init

7. Create a new cvspserver file in / etc/xinetd.d/ and fill in the following

Quote

Service cvspserver

{flags = REUSE

Socket_type = stream

Wait = no

User = root

Protocol= tcp

Server = / usr/bin/cvs

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

Disable = no}

8.CentOS system modification / etc/services join

Cvspserver 2401/tcp # pserver cvs service

The 9.CentOS system restarts xinetd:

/ etc/rc.d/init.d/xinetd restart

Or service xinetd restart.

The 10.CentOS system checks whether the cvspserver service has been started

Netstat-l | grep cvspserver

The results should be as follows:

Tcp 0 0 *: cvspserver *: * LISTEN

11.CentOS system adds cvs users. Run htpasswd-c passwd test under / home/cvsroot/CVSROOT

A new file called passwd will be created and prompted for a password, which will be encrypted into the passwd file after md5 encryption. In the future, new users do not need-c.

The 12.CentOS system corresponds cvs users to system users.

Vi passwd

Add: cvsroot on that line of each user

For example: test:xxxx:cvsroot

This is the answer to the question about how to establish the cvs server method in the CentOS system. I hope the above content can be of some help to everyone. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report