成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Linux CVS確認系統中是否安裝xinetd

運維 系統運維
首先確定系統中沒有安裝Linux CVS,如果沒有則安裝:yum install Linux CVS 注:fedora中可以使用光盤安裝,個人認為容易點哦。在Fedora 6中這個沒有默認安裝。如果沒有安裝則安裝:yum install xinetd 注:這個我是用命令行在網上自動下載安裝的,中間還出現了個錯誤,忽略了

Linux CVS對于電腦使用的玩家的常用軟件,然后我就學習及深入的研究Linux CVS,在這里和大家一起探討Linux CVS的使用方法,希望對大家有用。重裝了一次系統,重裝了N次的Linux CVS,終于讓linux下的Linux CVS理論上可以進行開發。還要感謝超少在忙VB時熱心的做測試……雖然現在是凌晨3點整,還是得總結一下:

1、咱先把Linux CVS裝上吧

首先確定系統中沒有安裝Linux CVS,如果沒有則安裝:yum install Linux CVS   注:fedora中可以使用光盤安裝,個人認為容易點哦

2、確認系統中是否安裝xinetd,

在Fedora 6中這個沒有默認安裝。如果沒有安裝則安裝:yum install xinetd    注:這個我是用命令行在網上自動下載安裝的,中間還出現了個錯誤,忽略了

3、修改/etc/xinetd.d/Linux CVS

  1. [root@fc6 Linux CVSROOT]# cat /etc/xinetd.d/Linux CVS   
  2. # default: off  
  3. # description: The Linux CVS service can record the history of your source \  
  4. #files. Linux CVS stores all the versions of a file in a single \  
  5. #file in a clever way that only stores the differences \  
  6. #between versions.  
  7. service Linux CVSpserver  
  8. {  
  9.  disable   = no 
  10.  port2401 
  11.  socket_typestream 
  12.  protocol  = tcp 
  13.  waitno 
  14.  userroot 
  15.  passenv   = PATH 
  16.  server    = /usr/bin/Linux CVS  
  17. #envHOME=/zyf/Linux CVS  
  18.  server_args= -f --allow-root=/zyf/Linux CVS pserver  
  19. #bind127.0.0.1  

4、初始化Linux CVS服務
 Linux CVS -d /zyf/Linux CVS init注:這個路徑要和/etc/xinetd.d/Linux CVS中的一致,并且可以隨便根據自己的需要定制.

5、增加用戶
 groupadd Linux CVS
 useradd Linux CVSroot -g Linux CVS

6、設置目錄權限

chmod 777 /zyf/Linux CVS

7、修改/zyf/Linux CVS/Linux CVSROOT/config文件

  1. [root@fc6 Linux CVSROOT]# cat config  
  2. # Set this to "no" if pserver shouldn't check system users/passwords  
  3. SystemAuth=no  注:這里默認是注釋掉的。  
  4. # Put Linux CVS lock files in this directory rather than directly in the repository.  
  5. #LockDir=/var/lock/Linux CVS  
  6.  
  7. # Set `TopLevelAdmin' to `yes' to create a Linux CVS directory at the top  
  8. # level of the new working directory when using the `Linux CVS checkout'  
  9. # command.  
  10. #TopLevelAdmin=no 
  11.  
  12. # Set `LogHistory' to `all' or `TOEFWUPCGMAR' to log all transactions to the  
  13. # history file, or a subset as needed (ie `TMAR' logs all write operations)  
  14. #LogHistory=TOEFWUPCGMAR 
  15.  
  16. # Set `RereadLogAfterVerify' to `always' (the default) to allow the verifymsg  
  17. # script to change the log message.  Set it to `stat' to force Linux CVS to verify  
  18. # that the file has changed before reading it (this can take up to an extra  
  19. # second per directory being committed, so it is not recommended for large  
  20. # repositories.  Set it to `never' (the previous Linux CVS behavior) to prevent  
  21. # verifymsg scripts from changing the log message.  
  22. #RereadLogAfterVerify=always 

注:這個更改是為了用戶驗證的時候忽略系統用戶,這樣可以避免建立很多的系統帳戶,而影響安全性。

8、增加/zyf/Linux CVS/Linux CVSROOT/passwd文件

[root@fc6 Linux CVSROOT]# cat passwd
zyf:woXRXXMqwnmWs:Linux CVSroot

注:這個密碼文件中第2段是md5的密碼。多個用戶為每行一個.  這個密碼真的不太好得到,每次都是建用戶。

9、增加/zyf/Linux CVS/Linux CVSROOT/readers文件

這個文件中存儲著所有只讀用戶的用戶名,一行一個.

10、增加/zyf/Linux CVS/Linux CVSROOT/writers文件

這個文件中存儲著所有可寫權限的用戶名,一行一個.注:同一個用戶不要在/zyf/Linux CVS/Linux CVSROOT/readers和/shanmin/Linux CVS/Linux CVSROOT/writers中都填寫,如果都填寫則以/zyf/Linux CVS/Linux CVSROOT/readers中的為準。

11、關閉SELinux

[root@~]#setenforce 0注:Linux CVS和SELinux有“沖突”,必須關閉,不然客戶端會提示沒有權限。修改/etd/services文件 ,加入以下內容:

  1. Linux CVSpserver    2401/tcp     # Linux CVS client/server operations  
  2. Linux CVSpserver    2401/udp     # Linux CVS client/server operations 

Linux CVS服務由inted來喚起,因此需要改動inetd提供的服務,我的redhat使用的是inetd 方式則在文件/etc/inetd.conf中加入如下的內容:Linux CVSpserver stream tcp nowait root /usr/bin/Linux CVS Linux CVS --allow-root=/home/Linux CVSroot pserver

FC6使用的是xinetd方式,所以在xinetd.d目錄下添加需要啟動的服務:

  1. cd /etc/xinetd.d  
  2. vi Linux CVSpserver 

文件內容:

  1. service Linux CVSpserver  
  2. {  
  3. disable = no 
  4. flags = REUSE 
  5. socket_type = stream 
  6. wait = no 
  7. user = root 
  8. server = /usr/bin/Linux CVS  
  9. server_args = -f --allow-root=/home/Linux CVSroot pserver  
  10. log_on_failure += USERID  

12.重新啟動inetd或者xinetd:

/etc/rc.d/init.d/xinetd restart

13.檢查Linux CVSpserver服務是否已經啟動

netstat -l |grep Linux CVSpserver

結果如下:tcp 0 0 *:Linux CVSpserver *:* LISTEN以上結果全部通過,但是在客戶機上執行Linux CVS -d :pserver:steven@192.168.211.72:/home/Linux CVSroot login 輸入密碼后,沒有收到任何消息,即表示成功^_^ no news is a good news!!在客戶端,設置環境變量如下:export Linux CVS_RSH=ssh export Linux CVSROOT=:pserver:username@ip:/home/Linux CVSroot

你可以

  1. echo $Linux CVS_RSH  
  2. ssh  
  3. echo $Linux CVSROOT  
  4. :pserver:username@ip:/home/Linux CVSroot 

這樣你在客戶端就可以直接輸入 Linux CVS login登陸了其它操作都可以直接Linux CVS command 了

12、啟動服務

service xinetd start

13、防火墻開2401端口 

 注:我是把防火墻關了。還要注意:writers一定要設置好權限,為了這個頗費了一陣子勁兒。

【編輯推薦】

  1. Linux配置文件與用戶管理相關系統文件
  2. Linux交換分區簡介與實驗場景及過程
  3. 學習Linux操作系統推薦首先從Fedora開始
  4. Linux hostname主機名配置文件與文件 /etc/hosts解說
  5. Linux文件重定向和文件過濾器
責任編輯:佚名 來源: CSDN
相關推薦

2010-04-06 15:53:48

CentOS系統

2019-06-10 15:50:54

LinuxNTP命令

2009-08-10 09:49:35

2009-06-23 08:49:39

LinuxCVSCVSTRAC

2009-06-24 10:42:18

Linux

2009-12-18 09:48:26

Linux中應用

2009-12-03 13:56:05

Suse Linux開xinetd

2010-03-05 14:20:49

Ubuntu硬盤安裝

2011-02-25 09:32:01

2011-03-02 17:56:13

Xinetd啟動Proftpd

2011-08-23 17:46:20

xinetd中文man

2009-12-16 16:54:56

Linux操作系統

2010-05-14 16:57:31

MySQL 安裝備份

2017-01-05 14:42:49

LinuxUnix服務器

2009-12-16 10:43:52

安裝db2

2010-01-11 10:15:47

wine安裝

2010-11-09 13:53:33

2010-01-13 14:18:36

CentOS Open

2011-03-08 11:21:55

proftpdxinetd

2017-03-15 18:00:49

點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 国产精品久久久久久婷婷天堂 | 91n成人 | 影视先锋av资源噜噜 | 91成人在线| 亚洲激情在线观看 | 国内精品在线视频 | 欧美电影免费网站 | 成人亚洲在线 | 成人免费网站 | 国产二区三区 | 国产视频中文字幕在线观看 | 国产成人精品a视频一区www | 欧美一区二区激情三区 | 日韩在线免费播放 | 国产精品地址 | 欧美午夜视频 | 久久成人精品视频 | 色视频网站 | 精品一区二区三区在线视频 | 高清av一区 | 国产精品一区二区在线观看 | 国产99久久久久 | 老司机67194精品线观看 | 一级做a爰片性色毛片 | 天天爽夜夜操 | 羞羞午夜 | 久久综合一区 | 国产精品色一区二区三区 | 插插宗合网 | 久99久视频| 国产精品久久 | 亚洲国产精品一区 | 一区亚洲 | 久久99精品久久 | 91社区视频 | 精品一区二区久久久久久久网站 | 国产精品久久久久久久久久久久 | 日韩激情免费 | 欧美午夜一区二区三区免费大片 | 国产精品久久久久久久免费观看 | 国产在线精品一区二区三区 |