Server side
1. Install apt-cacher mandatory package
$ apt-get install apt-cacher
2. Edit apt-cacher configuration
$ vi /etc/apt-cacher/apt-cacher.conf
#####
daemon_addr =
allowed_hosts =
#####
3. Restart apt-cacher service
$ /etc/init.d/apt-cacher restart
Client side
1. Create proxy files for connect to apt-cacher
$ vi /etc/apt/apt.conf.d/01proxy
#####
Acquire::http::Proxy "http://
#####
How it work?
1. On client side try to use command apt-get update
2. On APT cacher server check logs file at /var/log/apt-cacher/access.log
to see client connection
Reference :
http://www.debuntu.org/how-to-set-up-a-repository-cache-with-apt-cacher/
https://help.ubuntu.com/community/Apt-Cacher-Server
ไม่มีความคิดเห็น:
แสดงความคิดเห็น