Build your own CVSup Server

Source: Internet
Author: User
Tags syslog

[Switch] Build your own CVSup Server

From: http://www.bsdlover.cn/html/93/n-93.html if you only have 1, 2 machines using FreeBSD, you can use domestic freebsdchina.org CVSup mirror server, relatively stable, the speed is good; however, if you have more than a dozen machines or even hundreds of machines running FreeBSD, each machine is remotely crawled, which not only consumes a lot of bandwidth, but also consumes a considerable amount of time; for the "lazy", it is really intolerable. Then, we will try to build our own CVSup image server to save external traffic, so that our image server can wait alone and work hard. Step 1: Install the CVSup mirror server software: [root @ CVSup ~] # Cd/usr/ports/NET/CVSup-mirror/[root @ CVSup/usr/ports/NET/CVSup-mirror] # Make will ask you many questions when executing make., let's answer it one by one: Master site for your updates [cvsup-master.freebsd.org]? Enter the source of your CVSup mirror, that is, the CVSup server of the external network. It is best to use the official site: cvsup.freebsd.org and cvsup2.freebsd.org. For details, see the FreeBSD CVSup document. Because it is a transfer station, it is not very important to speed up. How many hours between updates of your files [1]? How long is the external CVSup Server Updated. The default one hour is enough. Do you wish to mirror the main source repository [y]? Image or not Source code . SRC is the most part of this image. Of course, Y is required. Where wocould you like to put it [/home/NCVS]? SourceCode Where to save. I am positioning it in/export/cvsupmirror/NCVS. I must find a large idle partition, because it takes a lot of space to complete synchronization. Do you wish to mirror the installed World Wide Web data [y]? Whether to mirror the FreeBSD web site. Because I only want to synchronize ports and SRC, I chose not to use an image. If your resources are sufficient, you can run an image site www.freebsd.org after mirroring. Do you wish to mirror the gnats bug tracking database [y]? Whether to mirror the gnats bug tracking database. It is not important for updates. N is recommended because it is not commonly used. Do you wish to mirror the mailing list archive [y]? Whether to mirror the mail list Article . N is recommended. Unique unprivileged user ID for running the client [cvsupin]? Unique unprivileged group ID for running the client [cvsupin]? Unique unprivileged user ID for running the server [CVSup]? Unique unprivileged group ID for running the server [CVSup]? The user ID and group ID used by the client and server. Use the default one. Syslog facility for the server log [daemon]? The syslog facility that records server logs. By default. Maximum simultaneous client connections [8]? The maximum number of customer connections. It depends on your memory, CPU, and hard disk. I usually set it to 20, which is the maximum possible concurrency for my local update machine. After answering all the questions, enter [root @ CVSup/usr/ports/NET/CVSup-mirror] # make install clean. Now we have loaded CVSup mirror into the system, it also adds new user accounts and user groups, and adds new hourly synchronization settings to the crontab. We can start or stop the CVSup server through cvsupd. Sh in/usr/local/etc/rc. d. You can change the update frequency by setting the execution time of the/usr/local/etc/CVSup/update. Sh command in/etc/crontab. Finally, it is also the most important. You can execute/usr/local/etc/CVSup/update. Sh to update the contents of all CVSup servers in real time. The latest log is recorded in/var/log/CVSup. log during the update. If your system does not automatically create this file, you can create an empty file: [root @ CVSup ~] # Touch/var/log/CVSup. log Note: 1. It takes a long time for the first update to update many things from the server and be prepared. 2. If an error is reported when your CVSup client is connected, check whether the update is complete. The solution is simple. Then update until all updates are complete;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.