2011年7月29日 星期五

[cvs] how to use cvs at the internet



  1. First must update



    sudo apt-get update



  2. At the first install CVS server



    sudo apt-get install cvs



  3. After you install cvs, you should install xinetd to start/stop the cvs server.



    sudo apt-get install xinetd



  4. Configuration



    cvs -d /XXX/XXX/cvsroot init (XXX which directory)



    edit

    /etc/xinetd.d/cvspserver



    service 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
    }





  5. Once you have configured xinetd you can start the cvs server by running following command:

    sudo /etc/init.d/xinetd restart





  6. 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 意見:

張貼留言