首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > VSTS >

window xp 上安装配置CVS过程

2012-07-01 
window xp 下安装配置CVS过程配置如下: 操作系统:window xp 版本:cvsnt-2.5.03.2382.msi?? 安装目录:E:\CV

window xp 下安装配置CVS过程

配置如下:

操作系统:window xp
版本:cvsnt-2.5.03.2382.msi??

安装目录:E:\CVSNT???

window xp 系统的登陆账号:test

密码:******

一、先安装cvsnt-2.5.03.2382.msi?

二、安装完后打开:开始--》程序--》CVSNt --》cvsnt control pannal

三、cvsnt control pannal 配置如下图所示:

三、cvsnt control pannal 配置如下图所示:

???

??????????? 图一

?

图二

?

图三

?

图四

?


图五

?

图六

?


图七


四、通过看以上配置图,相信以明白了cvsnt control pannal 的配置,安装完之后,用户要进行设置的比较重要的图是图二,三,四,七,这几个图一定要看清楚,要不然会出现不可预知的错误,我刚开始时提到的错误:【添加用户时出现错误:cvs [server aborted]:"passwd" requires write access to the repository.】这个错误是由于图七的配置不当造成的。多选了选项:【all user are read】 的复选框。顺便说明一下:从图二的选项卡中,选择【add】按扭就可以进入图三。

五、cvsnt 安装完成和cvsnt control pannal 配置完成后,我们来添加用户,步骤如下 :

???? 1、打开命令提示符窗口:开始--》运行---》输入cmd 后回车。

???? 2、输入命令:set cvsroot = :pserver:test@localhost:2401/cvsroot

??????????? 注:红色的test 为window xp 的系统登陆账号,红色的cvsroot 为数据苍库的名称,也就是我们图三中的Name 里的值,蓝色的2401为端口号,这是默认的端口号,可以省略不写,但是良好的习惯写上吧。

??? 3、.输入命令:cvs login

?????? 出现提示:Logging in to :pserver:test@localhost:2401:/cvsroot。
??? 4、输入密码:****** ,此时已经登陆到cvs 上去了。

?? 5、下面开始用系统用户添加别的授权用户:

????????? 输入命令:cvs passwd -r test -a zdm?

???????? 出现提示:

??????? Adding user zdm@localhost

??????? New Password:
??????? 输入密码:123456
??????? 出现提示:Verify Password:
??????? 输入确认密码:123456

此时添加用户成功。

?6、尝试用刚添加的用户登陆:

??? 首先先退出系统用户:输入命令:cvs logout

?? 然后,尝用zdm登陆:

? 输入命令:set cvsroot=:pserver:zdm@localhost:2401/cvsroot

?? 输入命令:cvs login

?? 出现提示:Logging in to :pserver:zdm@localhost:2401:/cvsroot。
?? 输入密码:123456 ,此时已经登陆到cvs 上去了。

?? 7、如果要添加多个用户,重复步骤5就可以了。

?? 8、当添加完成用户后,我们关闭window xp 系统用户,到数据苍库e:\cvsroot\cvsroot\目录下找到config文件,注意开头两行代码:

# Set this to 'no' if pserver shouldn't check system users/passwords
#SystemAuth=yes

把第二行#SystemAuth=yes 改成? SystemAuth=no ,然后保存就可以了。

?

?

---------------

CVS添加用户的过程
D:\cvs\CVSROOT>set cvsroot=:pserver:administrator@127.0.0.1:/cvs

D:\cvs\CVSROOT>cvs login
Logging in to :pserver:administrator@127.0.0.1:2401:/cvs
CVS Password:


D:\cvs\CVSROOT>cvs passwd -r administrator -a lrj
Adding user lrj@127.0.0.1
New Password:
Verify Password:

?


cvs可供使用的命令
CVS commands are:
??????? add????????? Add a new file/directory to the repository
??????? admin??????? Administration front end for rcs
??????? annotate???? Show last revision where each line was modified
??????? chacl??????? Change the Access Control List for a directory
??????? checkout???? Checkout sources for editing
??????? chown??????? Change the owner of a directory
??????? commit?????? Check files into the repository
??????? diff???????? Show differences between revisions
??????? edit???????? Get ready to edit a watched file
??????? editors????? See who is editing a watched file
??????? export?????? Export sources from CVS, similar to checkout
??????? history????? Show repository access history
??????? import?????? Import sources into CVS, using vendor branches
??????? init???????? Create a CVS repository if it doesn't exist
??????? info???????? Display information about supported protocols
??????? log????????? Print out history information for files
??????? login??????? Prompt for password for authenticating server
??????? logout?????? Removes entry in .cvspass for remote repository
??????? ls?????????? List files in the repository
??????? lsacl??????? List the directories Access Control List
??????? passwd?????? Set the user's password (Admin: Administer users)
??????? authserver?? Authentication server mode
??????? rannotate??? Show last revision where each line of module was modified
??????? rdiff??????? Create 'patch' format diffs between releases
??????? release????? Indicate that a Module is no longer in use
??????? remove?????? Remove an entry from the repository
??????? rename?????? Rename a file or directory
??????? rchacl?????? Change the Access Control List for a directory
??????? rchown?????? Change the owner of a directory
??????? rlsacl?????? List the directories Access Control List
??????? rlog???????? Print out history information for a module
??????? rtag???????? Add a symbolic tag to a module
??????? server?????? Server mode
??????? status?????? Display status information on checked out files
??????? tag????????? Add a symbolic tag to checked out version of files
??????? unedit?????? Undo an edit command
??????? update?????? Bring work tree in sync with repository
??????? version????? Show current CVS version(s)
??????? watch??????? Set watches
??????? watchers???? See who is watching a file
??????? xdiff??????? Show differences between revisions using an external diff p
rogram
(Specify the --help option for a list of other help options)

热点排行