自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Linux CVS確認(rèn)系統(tǒng)中是否安裝xinetd

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

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

1、咱先把Linux CVS裝上吧

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

2、確認(rèn)系統(tǒng)中是否安裝xinetd,

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

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服務(wù)
 Linux CVS -d /zyf/Linux CVS init注:這個路徑要和/etc/xinetd.d/Linux CVS中的一致,并且可以隨便根據(jù)自己的需要定制.

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

6、設(shè)置目錄權(quán)限

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  注:這里默認(rèn)是注釋掉的。  
  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 

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

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文件

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

11、關(guān)閉SELinux

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

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

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

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

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

文件內(nèi)容:

  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服務(wù)是否已經(jīng)啟動

netstat -l |grep Linux CVSpserver

結(jié)果如下:tcp 0 0 *:Linux CVSpserver *:* LISTEN以上結(jié)果全部通過,但是在客戶機上執(zhí)行Linux CVS -d :pserver:steven@192.168.211.72:/home/Linux CVSroot login 輸入密碼后,沒有收到任何消息,即表示成功^_^ no news is a good news!!在客戶端,設(shè)置環(huán)境變量如下: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、啟動服務(wù)

service xinetd start

13、防火墻開2401端口 

 注:我是把防火墻關(guān)了。還要注意:writers一定要設(shè)置好權(quán)限,為了這個頗費了一陣子勁兒。

【編輯推薦】

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

2010-04-06 15:53:48

CentOS系統(tǒng)

2019-06-10 15:50:54

LinuxNTP命令

2009-08-10 09:49:35

2009-06-23 08:49:39

LinuxCVSCVSTRAC

2009-12-18 09:48:26

Linux中應(yīng)用

2009-06-24 10:42:18

Linux

2009-12-03 13:56:05

Suse Linux開xinetd

2010-03-05 14:20:49

Ubuntu硬盤安裝

2011-08-23 17:46:20

xinetd中文man

2009-12-16 16:54:56

Linux操作系統(tǒng)

2010-05-14 16:57:31

MySQL 安裝備份

2011-03-02 17:56:13

Xinetd啟動Proftpd

2011-02-25 09:32:01

2017-01-05 14:42:49

LinuxUnix服務(wù)器

2010-01-11 10:15:47

wine安裝

2009-12-16 10:43:52

安裝db2

2010-11-09 13:53:33

2010-01-13 14:18:36

CentOS Open

2017-03-15 18:00:49

2014-08-08 09:56:28

LinuxSwap分區(qū)
點贊
收藏

51CTO技術(shù)棧公眾號