1. create a cvs group, user CODE: groupaddcvsuseraddcvsroot-gcvspasswdcvsroot2. check whether cvs port CODE is used in the service: more/etc/services | grepcvspserver result CODE: cvspserver2401/tcp # CVSclient/serveroperationscvspserver24 1. create a cvs group, user
CODE:
Groupadd cvs
Useradd cvsroot-g cvs
Passwd cvsroot
2. Check whether the cvs port is used in the service.
CODE:
More/etc/services | grep cvspserver
Result
CODE:
Cvspserver 2401/tcp # CVS client/server operations
Cvspserver 2401/udp # CVS client/server operations
3. Compile the cvs badge
CODE:
Service cvspserver
{
Disable = no
Socket_type = stream
Wait = no
User = root
Env = HOME =
Server =/usr/bin/cvs
Server_args =-f -- allow-root =/home/cvsroot/document pserver
}
Note: The names of a and service must be the same as those of the cvs service in the/etc/service file;
Note: Each line has a space around the equal sign. Otherwise, the service cannot be started.
There is also a space between-f and -- allow-root, and there cannot be a space between -- allow-root =/home/dsscvs/cvsroot.
4. Create a cvs Database
CODE:
Mkdir-d/cvsroot/document
Chown-R cvsroot. cvs/cvsroot
Chmod 771/cvsroot/document
5. initialize cvs
CODE:
Cvs-d/cvsroot/document init
6. Test the connection
CODE:
Cvs-d: pserver: cvsroot @ localhosthost:/home/cvsroot/document login
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