강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

데몬 스크립트 파일 : /etc/rc.d/init.d/squid

작성자 정보

  • 구돌 작성
  • 작성일

컨텐츠 정보

본문

데몬 스크립트 파일 : /etc/rc.d/init.d/squid

 

 캐싱서버인 squid데몬을 실행(중지)하는 스크립트입니다. 

 

 

 Squid의 정식이름은 “Internet Object Cache”로서 HTTP FTP, 고퍼(Gopher)등과 같은 인터넷 프로토콜등에 의해 요청된 인터넷 객체(Objects)들을 보관해두었다가 웹브라우즈등과 같은 어플리케이션등에서 로컬 Squid캐쉬데이터를 HTTP 프락시 서버로서 사용할 수 있도록 합니다. 

 

 

  따라서 사용할 수 있는 대역폭에 비해 접근속도를 높여주며 액세스타임(access time)을 낮출 수 있는 솔루션입니다. 

 

 

 참고로 squidTCP포트 3128, UDP포트 3130번을 사용합니다. 

 

 

 

 

사용옵션 : start|stop|status|reload|restart|condrestart

 

데몬파일     : /usr/sbin/squid

PID파일      :  /var/run/squid.pid

관련디렉토리 : /etc/squid/

설정파일     : /etc/squid/squid.conf

로그파일     : /var/log/squid/

 

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/squid start

init_cache_dir /var/spool/squid... Starting squid: .[  OK  ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/squid stop

Stopping squid: [  OK  ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/squid start

Starting squid: .[  OK  ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/squid restart

Stopping squid: [  OK  ]

Starting squid: .[  OK  ]

[root@command init.d]#

[root@command init.d]# ps -ef | grep squid

root      6042     1  0 20:53 ?        00:00:00 squid -D

squid     6044  6042  2 20:53 ?        00:00:00 [squid]

squid     6046  6044  0 20:53 ?        00:00:00 (unlinkd)

root      6049  5553  0 20:53 pts/1    00:00:00 grep squid

[root@command init.d]#

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,041 명
  • 현재 강좌수 :  35,855 개
  • 현재 접속자 :  119 명