Ubuntu12.04 create an origin server

Source: Internet
Author: User
The name of the source server may not be accurate, which means creating your own private server on the Intranet. As long as Ubuntu downloads and installs software from the private server, the private server will cache the server, the next Ubuntu request is directly obtained from the cache. Recently, the Ubuntu source server is too slow, and the network in Beijing is also bad. Forced! Select the Daemon method when installing the apt-cacherapt-getinstallapt-cacherapache2 first. After installation,/etc/defaul

The name of the source server may not be accurate, which means creating your own private server on the Intranet. As long as Ubuntu downloads and installs software from the private server, the private server will cache the server, the next Ubuntu request is directly obtained from the cache.

Recently, the Ubuntu source server is too slow, and the network in Beijing is also bad. Forced!

First install apt-cacher

Apt-get install apt-cacher apache2

Select the Daemon method during installation.

After installation, the content of the/etc/default/apt-cacher file should be as follows:

AUTOSTART = 1

Therefore, the service should have been started.

Modify a line of configuration in the/etc/apt-cacher/apt-cacher.conf file to allow access from any client:

Allowed_hosts = *

Restart service

Service apt-cacher restart

Then open the webpage: http: // your_ip: 3142/apt-cacher

When the page is displayed, the server is started normally.

Create the/etc/apt. conf file or the/etc/apt. conf. d/01proxy file on the ubuntu server of the client.

The content is as follows:

Acquire: http: Proxy "http: /your_server: 3142 ";

Run apt-get update.

Related Article

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.