Linux CVS Server + JCVS-5.3.2 Client Distributed Development (2)

zhaozj2021-02-08  401

Linux CVS Server

Server-side configuration

First add CVS users and user groups, run the following command with root users (if freebsd please use the PW command):

# GroupAdd CVS

# ueradd -g cvs cvsroot

Create a home directory for CVS:

# MKDIR / EXPORT # Note: / Export is your cvsroot directory.

Modify the / export directory to cvsroot users and CVS group permissions 770 make the same group member to read and write this directory:

# chown cvsroot / export

# chgrp cvs / export

# chmod 770 / export

Main directory of initialization CVS service:

# cvs -d / export initin

Modify the /etc/inetd.conf file Enables the CVS service to join a line in the /etc/inetd.conf file in response to the client's CVS request:

CVSPSERVER STREAM TCP NOWAIT ROOT / USR / BIN / CVS CVS -B / USR / BIN - Allow-Root / Export PServer

Modify / etc / services, if there is no next two lines in the file, please add:

CVSPSERVER 2401 / TCP # cvs client / server Operations

CVSPServer 2401 / UDP # cvs client / server operations

Note that the server name CVSPServer here is consistent with the /etc/inetd.conf file.

Restart the inetd process makes the change take effect:

# /etc/rc.d/init.d/inetd Restart or run

# KILLALL-HUP inetd

It can also achieve the same purpose. But here I suggest you Reboot

At this time, run on the CVS server

$ Netstat -na | Grep 2401

You should be able to see the CVS service listening at 2401 port.

TCP 0 0 0.0.0.0:2401 0.0.0.0:0:8 Listen

At this time, the CVS server environment is basically set up.

Redhat Linux PServer started:

If it is redhat Linux plus a file in xinetd.d. Start PServer

1. Modify / etc / services, if there is no next two lines in the file, please add:

CVSPSERVER 2401 / TCP # cvs client / server Operations

CVSPServer 2401 / UDP # cvs client / server operations

2. Create a CVSPServer file under /etc/xinetd.d/.

Service CVSPSERVER {

Disable = no

Socket_type = stream

Wait = NO

User = cvsroot

Server = / usr / bin / cvs

Server_Args = --Allow-root = / cvsroot

LOG_ON_SUCEESS = UserID

LOG_ON_FAILURE = UserID

}

If there are multiple source code libraries, as follows:

Server_Args = --Allow-root = / cvsroot --Allow-root = / product3. Restart XINET.D

转载请注明原文地址:https://www.9cbs.com/read-664.html

New Post(0)