{"id":105,"date":"2005-01-19T00:26:00","date_gmt":"2005-01-18T16:26:00","guid":{"rendered":"http:\/\/blog.zhouhonghe.com\/?p=105"},"modified":"2005-01-19T00:26:00","modified_gmt":"2005-01-18T16:26:00","slug":"%e5%ae%89%e8%a3%85%e8%ae%be%e7%bd%aecvs%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/blog.zhouhonghe.com\/?p=105","title":{"rendered":"\u5b89\u88c5\u8bbe\u7f6eCVS\u670d\u52a1\u5668"},"content":{"rendered":"<p>google\u4e86\u534a\u5929\uff0c\u7ec8\u4e8e\u51b3\u5b9a\u5728\u6d4b\u8bd5\u673aredhat 7.2\u4e0a\u88c5cvs\u4e86\u3002<\/p>\n<p>\u4e00\u822c\u7684\uff0c\u88c5\u5b8credhat\uff0ccvs\u5c31\u5df2\u7ecf\u88c5\u4e0a\u4e86\uff0c\u4e0d\u8fc7\u6211\u88c5\u8fd9\u53f0\u6d4b\u8bd5\u673a\u7684\u65f6\u5019\uff0c\u7531\u4e8e\u5149\u9a71\u662f\u574f\u7684\uff0c\u627e\u904d\u5168\u516c\u53f8\u7ec8\u4e8e\u641c\u51fa\u6765\u4e00\u5f20\u80fd\u7528\u7684\u8f6f\u76d8\uff0c\u5c31\u76f4\u63a5\u8dd1\u5230hk\u7684redhat ftp\u955c\u50cf\u4e0a\u7f51\u7edc\u88c5\u4e86\uff0c\u5c45\u7136\u8fdeftp\u3001telnet\u4e4b\u7c7b\u7684\u547d\u4ee4\u90fd\u6ca1\u88c5\u4e0a\u53bb\uff0c\u53ea\u597d\u624b\u5de5\u88c5\u4e86\u3002<\/p>\n<p>\u5230<a href=\"http:\/\/www.cvshome.org\/\">www.cvshome.org<\/a>\u4e0b\u8f7d\u4e86\u4efdtar.gz\u5305\uff0c\u4e00\u5982\u65e2\u5f80\u7684\uff0c\u89e3\u5305\uff0cconfigure\u3001make\u3001make install\uff0c\u5b8c\u88c5\u5b8c\u6bd5\u3002<\/p>\n<p>\u5148\u5efa\u4e86\u4e2acvs\u7684\u7ec4\uff0c\u7136\u540e\u518d\u521b\u5efa\u4e00\u4e2a\u7528\u6237useradd -g cvs -d \/cvs cvs\uff0c\u7136\u540esu cvs<\/p>\n<p><font color=#0000ff>$export CVSROOT=\/cvs\/test<br \/>$cvs init<br \/><\/font><br \/>\u7785\u4e86\u4e00\u4e0b\/etc\/services\uff0c\u5173\u4e8epserver\u7684\u914d\u7f6e\u662f\u6253\u5f00\u7684\uff0c\u7701\u5f97\u81ea\u5df1\u53bb\u5220#\u4e86<br \/><font color=#0000ff>cvspserver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2401\/tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # CVS client\/server operations<br \/>cvspserver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2401\/udp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # CVS client\/server operations<br \/><\/font><br \/>\u5728\/etc\/xinetd.d\/\u4e0b\u9762\u5efa\u4e86\u4e00\u4e2acvspserver\u6587\u4ef6<br \/><font color=#0000ff>service cvspserver<br \/>&nbsp; {<br \/>&nbsp;&nbsp;&nbsp;&nbsp; disable = no<br \/>&nbsp;&nbsp;&nbsp;&nbsp; flags = REUSE<br \/>&nbsp;&nbsp;&nbsp;&nbsp; socket_type = stream<br \/>&nbsp;&nbsp;&nbsp;&nbsp; wait = no<br \/>&nbsp;&nbsp;&nbsp;&nbsp; user = cvs<br \/>&nbsp;&nbsp;&nbsp;&nbsp; protocol&nbsp;&nbsp; = tcp<br \/>&nbsp;&nbsp;&nbsp;&nbsp; server = \/usr\/bin\/cvs<br \/>&nbsp;&nbsp;&nbsp;&nbsp; server_args = -f --allow-root=\/cvs\/test&nbsp; pserver<br \/>&nbsp;&nbsp;&nbsp;&nbsp; log_on_failure += USERID<br \/>&nbsp; }<\/font><\/p>\n<p>\u6267\u884cservice xinetd restart \u547d\u4ee4\uff0c\u7528netstat -an\u7785\u4e86\u7785\uff0cpserver\u76842401\u7aef\u53e3\u8d77\u6765\u4e86\u3002\u5c31\u8fd9\u4e48\u7b80\u5355\uff01<\/p>\n<p>\u5728cvshome.org\u4e0a\u4e0b\u4e86\u4e2aw2k\u4e0a\u7528\u7684cvs\u547d\u4ee4\u5de5\u5177\uff0c\u5728\u5de5\u4f5c\u673a\u4e0a\u8bd5\u4e86\u4e00\u4e0b\uff0c\u4e00\u5207\u6b63\u5e38<\/p>\n<p><font color=#0000ff>D:\\cvsnt-2.1.1-bin&gt;set CVSROOT=:pserver:cvs@61.166.153.14:\/cvs\/test<br \/>D:\\cvsnt-2.1.1-bin&gt;cvs login<br \/>Logging in to :pserver:cvs@61.166.153.14:2401:\/cvs\/test<br \/>CVS password: ********<br \/><\/font><br \/>\u6b63\u5e38\u662f\u6b63\u5e38\u4e86\uff0c\u4f46\u603b\u4e0d\u80fd\u8001\u7528linux\u7684\u7cfb\u7edf\u5e10\u53f7\u6765\u73a9\u5427\uff1f\u7ee7\u7eed\u3002\u3002<\/p>\n<p>\u673a\u5668\u4e0a\u521a\u597d\u88c5\u8fc7apache\uff0c\u5c31\u501f\u7528apache\u7684htpasswd\u4e86<\/p>\n<p><font color=#0000ff>#\/www\/apache_1.3.29\/bin\/htpasswd&nbsp; -bc \/cvs\/test\/CVSROOT\/passwd wuyu passwdtest<br \/>#vi \/cvs\/test\/CVSROOT\/passwd<br \/>anonymous::cvs<br \/>test:ETvlR5E7l1HY6:cvs<br \/>test2:ETvlR5E7l1HY6:cvs<br \/>test3:ETvlR5E7l1HY6:cvs<br \/>.......<br \/><font color=#000000>\u7136\u540e\u521b\u5efa\u4e86\u4e2awriter\u6587\u4ef6\uff0c\u628a\u6709\u5199\u6743\u9650\u7684\u7528\u6237\u52a0\u8fdb\u53bb<br \/><\/font>#vi \/cvs\/test\/CVSROOT\/writers<br \/>test<br \/>test2<br \/>test3<br \/><font color=#000000>\u518d\u5efa\u4e00\u4e2areaders\u6587\u4ef6\uff0c\u628a\u53ea\u5141\u8bb8\u8bfb\u7684\u7528\u6237\u52a0\u8fdb\u53bb<\/font><br \/>#&nbsp;vi readers <br \/>anonymous<\/font><\/p>\n<p>\u6536\u5de5\uff01<\/p>\n<p>\u6765\u6e90\uff1a<a href=\"http:\/\/wuyu.mblogger.cn\/posts\/307.aspx\">http:\/\/wuyu.mblogger.cn\/posts\/307.aspx<\/a><\/p>\n<p>\u8865\u5145\uff1a<br \/>\u7528Apache\u7684htpasswd\u5de5\u5177\u521b\u5efa\u4e86passwd\u6587\u4ef6\u540e\uff0c\u8fd9\u4e2a\u6587\u4ef6\u91cc\u53ea\u6709\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u5982&#8220;<font color=#0000ff>test:ETvlR5E7l1HY6<\/font>&#8221;\uff0c\u9700\u8981\u5728\u540e\u9762\u518d\u52a0\u4e0a&#8220;<font color=#0000ff>:<\/font><font color=#0000ff>cvs<\/font>&#8221;\uff0c\u6210\u4e3a&#8220;<font color=#0000ff>test:ETvlR5E7l1HY6:cvs<\/font>&#8221;\uff0c\u624d\u80fd\u5c06\u865a\u62df\u7528\u6237\u6620\u5c04\u4e3a\u771f\u5b9e\u7684cvs\u7528\u6237\uff0c\u8be5\u865a\u62df\u7528\u6237\u624d\u80fd\u767b\u5f55CVS\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>google\u4e86\u534a\u5929\uff0c\u7ec8\u4e8e\u51b3\u5b9a\u5728\u6d4b\u8bd5\u673aredhat 7.2\u4e0a\u88c5cvs\u4e86\u3002 \u4e00\u822c\u7684\uff0c\u88c5\u5b8credhat\uff0ccvs\u5c31\u5df2\u7ecf [&hellip;]<\/p>... ","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-others"],"_links":{"self":[{"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=105"}],"version-history":[{"count":0,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhouhonghe.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}