Alex刺客

          Dancing fingers, damage world. -- 舞動手指,破壞世界.

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            57 隨筆 :: 0 文章 :: 76 評論 :: 0 Trackbacks
          <2010年8月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          常用鏈接

          留言簿(4)

          隨筆分類

          隨筆檔案

          文章分類

          相冊

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          1. 檢查 cvs 跟 xinetd 是否已經(jīng)安裝 (cvs 多數(shù)系統(tǒng)默認(rèn)已經(jīng)安裝)
          1?????$?rpm?-qa?|?grep?cvs
          2?????cvs-1.11.23-8.fc12.i686
          3?????$?rpm?-qa?|?grep?xinetd
          4?????xinetd-2.3.14-31.fc12.i686


          2.如果沒有安裝執(zhí)行以下命令
          1??????$?su
          2??????#?yum?install?cvs?xinetd

          ?? ?
          3.創(chuàng)建 cvs 組與 cvsroot 用戶
          1?????#?groupadd?cvs
          2?????#?useradd?-m?-g?cvs?-s?/sbin/nologin?cvsroot
          3?????#?passwd?cvsroot


          4.cvs用戶的目錄權(quán)限配置
          1?????#?cvs?-d?/home/cvsroot/?init
          2?????#?chown?-R?cvsroot.cvs?/home/cvsroot
          3?????#?chmod?-R?ug+rwx?/home/cvsroot
          4?????#?chmod?644?/home/cvsroot/CVSROOT/config

          ?? ?
          5.修改cvs文件
          1?????#?vim?/etc/xinetd.d/cvs
          2?????
          3?????修改cvs文件
          4?????disable?=?yes
          5?????server_args??=?-f?--allow-root=/home/cvsroot?pserver

          ?? ?
          ?1?service?cvspserver
          ?2?{
          ?3?????????disable?=?yes
          ?4?????????port????????????????????=?2401
          ?5?????????socket_type?????????????=?stream
          ?6?????????protocol????????????????=?tcp
          ?7?????????wait????????????????????=?no
          ?8?????????user????????????????????=?root
          ?9?????????passenv?????????????????=?PATH
          10?????????server??????????????????=?/usr/bin/cvs
          11?????????env?????????????????????=?HOME=/var/cvs
          12?????????server_args?????????????=?-f?--allow-root=/home/cvsroot?pserver
          13?#???????bind????????????????????=?127.0.0.1
          14?}


          6. 重啟xinetd服務(wù)
          1?#?/etc/rc.d/init.d/xinetd?restart

          ?? ?
          7.添加用戶
          ???
          1???? #?useradd?-g?cvs?-M?alexcvs
          2?????#?passwd?alexcvs
          3?????#?cp?/etc/shadow?/home/cvsroot/CVSROOT/passwd
          4?????#?chmod?0644?/home/cvsroot/CVSROOT/passwd?

          ?? ?修改passwd文件,將除alexcvs之外的所有行刪除,然后去掉每行第二個(gè)冒號以后的所有
          ??? 內(nèi)容,并添上字符串cvsroot, 改為如下格式:
          ??? alexcvs:ND5$J8N9BW5DKV.nPdxfdsh:cvsroot
          ???
          1?#?userdel?-f?alexcvs

          8.在.bash_profile 添加一行

          ?? ?export CVSROOT=:pserver:alexcvs@192.168.1.2:2401/home/cvsroot
          ?? ?
          9.用戶初始化
          ??? cvs login
          ??? 按提示輸入口令
          ? ?
          10.創(chuàng)建項(xiàng)目
          ??? #cvs import -m "this is a test project" test v1 start
          posted on 2010-08-23 04:53 Alex刺客 閱讀(304) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 灌南县| 北票市| 通道| 宁明县| 扎兰屯市| 精河县| 巨鹿县| 汾阳市| 云安县| 西林县| 南郑县| 襄垣县| 罗田县| 墨竹工卡县| 安平县| 乌兰察布市| 浪卡子县| 吐鲁番市| 开封县| 固始县| 巫溪县| 理塘县| 宁都县| 白山市| 湘西| 榆林市| 万宁市| 松溪县| 乌鲁木齐县| 那坡县| 陵川县| 榆林市| 铅山县| 中宁县| 连州市| 南澳县| 湾仔区| 英超| 广宗县| 望江县| 南召县|