Linux CVS Server + jCVS-5.3.2 Client分散式開發(二) (轉)
Server:namespace prefix = o ns = "urn:schemas--com::office" />
端
首先新增cvs和使用者組,以使用者執行下面命令(如果是Free 請用pw 命令):
# groupadd cvs
# useradd –g cvs cvsroot
建立cvs的主目錄:
# mkdir /export #注:/export是你的cvsroot目錄。
修改/export目錄的屬組為cvsroot使用者和cvs組為770使同組成員可以讀寫該目錄:
# chown cvsroot /export
# chgrp cvs /export
# chmod 770 /export
初始化cvs服務的主目錄:
# cvs –d /export init
修改/etc/d.conf使cvs服務能夠響應客戶端的cvs請求,在/etc/inetd.conf檔案裡面加入一行:
cvspserver stream tcp nowait root /usr/bin/cvs cvs -b /usr/bin --allow-root /export pserver
修改/etc/services,如果該檔案裡沒有下面兩行請自己加上:
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
請注意這裡的伺服器名cvspserver是和/etc/inetd.conf檔案中一致的。
重新啟動inetd程式使改變生效:
# /etc/rc.d/init.d/inetd restart或執行
# killall –HUPd
也可以達到同樣的目的。但在這裡我建議你reboot
這時在cvs伺服器上執行
$ netstat –na|grep 2401
就應該可以看到cvs服務偵聽在2401埠
tcp 0 0 0.0.0.0:2401 0.0.0.0:* LISTEN
這時cvs的伺服器環境就基本搭建好了。
Linux pserver 啟動:
如果是Redhat Linux 在xinetd.d中加一個檔案。啟動pserver
1.修改/etc/services,如果該檔案裡沒有下面兩行請自己加上:
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
2. 在/etc/xinetd.d/下建立cvspserver 檔案。
service cvspserver{
disable=no
socket_type=stream
wait =no
user =cvsroot
server = /usr/bin/cvs
server_args = --allow-root=/cvsroot
log_on_suceess +=USERID
log_on_failure +=USERID
}
如果有多個庫,如下:
server_args = --allow-root=/cvsroot --allow-root=/product
3. 重啟xinet.d
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752043/viewspace-992135/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Connect SQL Server from Linux Client using Windows Authentication and troubleshoot stepsSQLServerLinuxclientWindows
- 搭建分散式事務元件 seata 的Server 端和Client 端詳解(小白都能看懂)分散式元件Serverclient
- Longhorn 雲原生容器分散式儲存 - Python Client分散式Pythonclient
- MySQL client server 協議MySqlclientServer協議
- select監聽多個client -- linux函式clientLinux函式
- 分散式配置中心spingcloud-config-server分散式GCCloudServer
- Client does not support authentication protocol requested by server; consider upgrading MySQL clientclientProtocolServerIDEMySql
- 從零開始的高併發(二)--- Zookeeper實現分散式鎖分散式
- Linux嵌入式系統開發,嵌入式Linux開發教程Linux
- MSSQL server分散式事務解決方案SQLServer分散式
- 解碼 | 25 分鐘開發分散式架構的轉賬小程式分散式架構
- 使用威聯通做UPS server(NUT) 配置 linux和windows的 UPS clientServerLinuxWindowsclient
- python 將 CVS檔案轉為HTML檔案PythonHTML
- 分散式系統(二)——GFS分散式
- JEESZ分散式框架開發環境部署分散式框架開發環境
- 分散式服務框架開發筆記分散式框架筆記
- client: c#+protobuf, server: golang+protobufclientC#ServerGolang
- linux 環境下嵌入式開發vim 工具編輯跳轉Linux
- 分散式發電分散式
- 分散式儲存轉崗記分散式
- 分散式鎖實現(二):Zookeeper分散式
- Hadoop環境搭建(二)分散式Hadoop分散式
- jmeter分散式壓測(Linux版本)JMeter分散式Linux
- DAPP——分散式應用系統開發分析APP分散式
- Laravel + connmix 開發分散式 WebSocket 聊天室Laravel分散式Web
- (二) MdbCluster分散式記憶體資料庫——分散式架構1分散式記憶體資料庫架構
- Server2016 ADFS4.0 The same client browser session has made '6' requests in the last '13'seconds(二)ServerclientSessionAST
- 跟我學 “Linux” 小程式 Web 版開發(二):UI 開發LinuxWebUI
- 深度剖析一站式分散式事務方案Seata(Fescar)-Server分散式Server
- 深度剖析一站式分散式事務方案 Seata(Fescar)-Server分散式Server
- 分散式儲存glusterfs詳解【轉】分散式
- GlusterFS企業分散式儲存【轉】分散式
- 分散式理論(二) - BASE理論分散式
- SpringBoot開發案例之整合Dubbo分散式服務Spring Boot分散式
- 阿里巴巴開源分散式事務解決方案 FESCAR【轉】阿里分散式
- socket.io client + socketio-netty server簡析clientNettyServer
- Client Side Cache 和 Server Side Cache 的區別clientIDEServer
- sql server 資料型別轉換函式SQLServer資料型別函式
- Linux NAT轉發Linux