Install and configure CVS in Linux-Linux Enterprise Application-Linux server application information. For more information, see. Download and install
First check whether the cvs RPM package is installed. If not, download it online, such as cvs-1.11.2-28.rpm. In Scientific Linux, you can use apt-get install cvs for installation. After installation, you can check the cvs location, such as/usr/bin/cvs. Then, check whether the cvs port 2401 is defined in the/etc/services file. Finally, check whether external access to the port is allowed in iptables.
Server Configuration
First, create the root directory of CVS, such as/data/cvsroot, and initialize it:
Cvs-d/data/cvsroot init
Create the cvspserver file under/etc/xinetd. d. The content is as follows:
Socket_type = stream
Protocol = tcp
Wait = no
User = root
Passenv = PATH
Server =/usr/bin/cvs
Server_args =-f -- allow-root =/data/cvsroot pserver
Disable = no
Note:/data/cvsroot permission. Then, restart xinetd:
/Etc/init. d/xinetd restart
Finally, initialize the/data/cvsroot directory.
Configure the client
It is difficult to use pserver-based Remote Authentication in cvs. You need to define the server and user group, user name, and password.
Common login formats are as follows:
Cvs-d: pserver: cvs_user_name @ cvsserver:/path/to/cvsroot login
However, this method is not safe, so it is generally used as an anonymous read-only CVS access method. In terms of security, it is better to pass the local account authentication and SSH transmission. You can set the content in the/etc/profile of the client:
All local users of all clients can map to corresponding accounts with the same name on the CVS server.
Import Project
Enter the project to be saved to CVS and run the following command:
Cvs import-m "Imported sources" yoyodyne/rdir yoyo start
If you do not use the '-m' flag to record a log, cvs starts an editor and prompts you to enter information. The 'yoyoyo' string is the seller tag, and 'start' is the release tag ). They do not have any special significance. They are only put here because of the need of cvs.
After the import is successful, you can use cvs checkout to check.
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.