Saturday 28 August 2010

การติดตั้ง โปรแกรม Squid (Proxy Server

การติดตั้ง โปรแกรม Squid (Proxy Server)

  1. ดาวโหลด โปรมแกรม Squid version 3 stable
  2. # cd /root
    # wget http://syslogserver.googlecode.com/files/squid-3.0.STABLE20-1.el5.i386.rpm
  3. ลบโปรแกรม squid เวอร์ชั่นเก่า 2.6 ออกก่อนด้วยคำสั่ง
  4. # rpm -qa | grep squid
    # yum remove squid -y
  5. ติดตั้งโปรแกรม squid เวอร์ชั่นใหม่ด้วยคำสั่ง
  6. # rpm -ivh squid-3.0.STABLE20-1.el5.i386.rpm
  7. แก้ไขให้ทำงานทุกครั้งที่บูทเครื่อง
  8. # chkconfig squid on
  9. สำรอง config file ของ Squid
  10. # mv /etc/squid/squid.conf /etc/squid/squid.conf.ori
  11. ดาวโหลด config file ของ Squid
  12. # wget -O /etc/squid/squid.conf  http://syslogserver.googlecode.com/files/squid.conf
  13. สั่งให้ squid เริ่มทำงานด้วยคำสั่ง
  14. # service squid start
  15. สั่ง restrart syslog-ng เพื่อรับค่าการส่ง log จาก squid ด้วยคำสั่ง
  16. # service syslog-ng restart

No comments:

Post a Comment