[질문]squid 설정 후 ...

ju1lov2의 이미지

[root@Ad-hoc squid]# /etc/rc.d/init.d/squid start
init_cache_dir /usr/local/squid/var/cache... /etc/rc.d/init.d/squid: line 162: 23549 Aborted $SQUID -z -F -D 2>/dev/null
Starting squid: ....................[FAILED]

무슨 문제 일까요 조언 좀 부탁 드립니다. 제발

고수님들 제발

monpetit의 이미지

일단 162번 줄에서 멈추었으니 해당 스크립트를 열어서 그 줄이 도대체 뭐하는 내용인지, 아래위로 적당히 잘라서 올려 주시는 게 좋겠네요.

ju1lov2의 이미지

답글을 달아 주셨네요 진짜 ㅜㅜ눈물나게 고맙습니다.

이러쿵 저렁쿵 해서 지금은 상황이 이렇게 되었답니다.

[root@Ad-hoc init.d]# ./squid start
init_cache_dir /usr/local/squid/var/cache... ./squid: line 162: 24222 Aborted $SQUID -z -F -D 2>/dev/null
Starting squid: ....................[FAILED]

squid.conf파일에서 162번째 줄은 아래와 같습니다.

주석문으로 되어있어서 상관은 없을거 같은데요...

squid파일자체에서 실행되면서 발생하는 162번 번호인지

conf파일에서 발생하는 번호인지 잘 모르겠구요 여기 올린건

squid.conf파일 내용입니다.

153 # TAG: udp_incoming_address
154 # TAG: udp_outgoing_address
155 # udp_incoming_address is used for the ICP socket receiving packets
156 # from other caches.
157 # udp_outgoing_address is used for ICP packets sent out to other
158 # caches.
159 #
160 # The default behavior is to not bind to any specific address.
161 #
162 # A udp_incoming_address value of 0.0.0.0 indicates that Squid should
163 # listen for UDP messages on all available interfaces.
164 #
165 # If udp_outgoing_address is set to 255.255.255.255 (the default)
166 # then it will use the same socket as udp_incoming_address. Only
167 # change this if you want to have ICP queries sent using another
168 # address than where this Squid listens for ICP queries from other
169 # caches.
170 #
171 # NOTE, udp_incoming_address and udp_outgoing_address can not
172 # have the same value since they both use port 3130.
173 #
174 #Default:
175 # udp_incoming_address 0.0.0.0
176 # udp_outgoing_address 255.255.255.255
177
178
179 # OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
180 # -----------------------------------------------------------------------------

monpetit의 이미지

최소한 squid.conf 파일의 줄번호는 아닌 것 같습니다.
일단 squid 스크립트 파일과 /var/log 디렉토리 밑에 생성되는 오류 로그를 분석해 보셔야 할 것 같네요.
Debian의 경우 /var/log/user.log 파일에 squid의 오류 내용이 쌓입니다. 다른 경우엔 잘 모르겠습니다만 어떤 식으로든 log 파일이 남아있을 겁니다.

ju1lov2의 이미지

다른 곳은 답변이 없었는데 monpetit님만은 답변을 해주는 군요

복받으실 겁니다. ^^ 노력해 볼께요...

jforce의 이미지

혹시 해서 써봅니다.

squid -z

해주셨나요?

codebank의 이미지

에러내용에 나오는 줄번호는 conf의 줄번호가 아니라 /etc/rc.d/init.d/squid의
줄번호 입니다.
$SQUID가 정의가 되어있질 않아서 생기는 오류가 아닐까 생각되는데요...

------------------------------
좋은 하루 되세요.

ju1lov2의 이미지

squid -z 옵션도 주어봤습니다.

그리고 squid 정의는 어떻게 합니까?

전에 에러가 계속나서 한번 밀고 다시 설치했더니 rpm으로 실행되었습니다

그래서 이번에 Ad_hoc(저의 동아리 컴퓨터에)에 깔아볼려고 하는데

이렇게 계속 에러가 납니다.

차후 계획은 다시 포멧해보고 squid먼저 깔고 나중에 다른것들 설정할려고 하고

있습니다.

jforce의 이미지

conf속에 보면 visible_hostname항목이 있는데

값이 어떻게 되어 있나요?

abc.xxx.ac.kr

처럼 구체적으로 쓰여 있는지 확인해보세요.(원래는 저게 잘못되면 에러메시지에 visible_hostname라는 내용이 뜹니다만..)

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.