First must update
sudo apt-get update
At the first install CVS server
sudo apt-get install cvs
After you install cvs, you should install xinetd to start/stop the cvs server.
sudo apt-get install xinetd
Configuration
cvs -d /XXX/XXX/cvsroot init (XXX which directory)
edit
service cvspserver
/etc/xinetd.d/cvspserver
{
port = 2401
socket_type = stream
protocol = tcp
user = root
wait = no
type = UNLISTED
server = /usr/bin/cvs
server_args = -f --allow-root=/XXX/XXX/cvsroot pserver
disable = no
}
Once you have configured xinetd you can start the cvs server by running following command:
sudo /etc/init.d/xinetd restart
confirm that the CVS server
method 1
nmap 127.0.0.1
PORT STATE SERVICE
631/tcp open ipp
2401/tcp open cvspserver
3306/tcp open mysql
method 2
sudo netstat -tap | grep cvs
tcp 0 0 *:cvspserver *:* LISTEN (You can see)
Reference :
0 意見:
張貼留言