I read a lot of tutorials on the Internet, all of which were copied. I checked the documents and shared them. 1. check whether the CVS server has been installed. input: rpm & ndash; qcvs (no painting, input yuminstallcvs for installation) Note: RPM is the abbreviation of RedHatPackageManager (RedHat package management tool)
I read a lot of tutorials on the Internet, all of which were copied. I checked the documents and shared them.
1. install the CVS server
Determine whether the installation is successful
Input: rpm-q cvs (no painting, input yum install cvs for installation)
Note: RPM is the abbreviation of RedHat Package Manager (RedHat Package management tool ).
2. configure etc/services
Input: vi etc/services
Add
Cvspserver 2401/tcp # cvs client/server operations
Cvspserver 2401/udp # cvs client/server operations
3. configure xinetd and use xinetd to start the CVS verification server:
Go to the/etc/xinetd. d/directory.
Input: cd/etc/xinetd. d
Input: vi cvspserver
Enter the following content and save it.
Service cvspserver
{
Disable = no
Flags = REUSE
Socket_type = stream
Wait = no
User = root
Server =/usr/bin/cvs
Server_args =-f -- allow-root =/usr/cvsroot pserver
Log_on_failure + = USERID
}
Run:/etc/init. d/xinetd restart.
Verification: telnet localhost 2401
If the configuration is confirmed, the following words will appear:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Input hi and the following words will be output.
Cvs [pserver aborted]: bad auth protocol start: hi
Connection closed by foreign host.
4. configure a CVS user
Groupadd cvs
Useradd cvsuser-g cvs
Passwd cvsuser
Create the cvsroot directory under the/usr Directory (you can also create the Directory in another directory, but it should be consistent with the option in the cvspserver file), and then modify the owner and attributes of/usr/cvsroot:
Cd/usr
Mkdir cvsroot
Chown-R cvsuser: cvs cvsroot
Chmod-r 771 cvsroot
5. initialize the CVS server
Cvs-d/usr/cvsroot init
If no prompt is displayed, the initialization is successful.
6. log on to the cvs server
Cvs-d: pserver: cvsuser @ localhost:/usr/cvsroot login
After writing.