Linux Debian

1. Linux Debian

rafael m m
srmm

(usa Debian)

Enviado em 02/07/2013 - 21:03h

Ola, gente tavo fazendo aqui um servidor squid ai dei o comando pra ver se vai funcionar olha o que aconteceu.

/etc/init.d/squid3 restart
Restarting Squid HTTP Proxy 3.x: squid3Creating Squid HTTP Proxy 3.x cache structure ... (warning).
2013/07/02 19:54:34| cache_cf.cc(363) parseOneConfigFile: squid.conf:2 unrecognized: 'visible_Neguinhocachorrinho'
FATAL: Bungled squid.conf line 10: cache_dir ufs /var/spool/squid3 2040-16-256
Squid Cache (Version 3.1.6): Terminated abnormally.
CPU Usage: 0.044 seconds = 0.000 user + 0.044 sys
Maximum Resident Size: 15952 KB
Page faults with physical i/o: 0
2013/07/02 19:54:34| cache_cf.cc(363) parseOneConfigFile: squid.conf:2 unrecognized: 'visible_Neguinhocachorrinho'
FATAL: Bungled squid.conf line 10: cache_dir ufs /var/spool/squid3 2040-16-256
Squid Cache (Version 3.1.6): Terminated abnormally.
CPU Usage: 0.052 seconds = 0.000 user + 0.052 sys
Maximum Resident Size: 15968 KB
Page faults with physical i/o: 0
failed!


Meu texto que eu fiz.

# vim squid.conf

http_port 3128
visible_Neguinhocachorrinho servidor
cache_mgr rafaelmoreira.ms@hotmail.com
error_directory /usr/share/squid3/errors/Portuguese

hierarchy_stoplist cgi-bin ?
cache_mem 33 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 100 MB
cache_dir ufs /var/spool/squid3 2040-16-256

refresh_pattern ^ftp: 360 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320

access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log

acl localhost src 127.0.0.1/32
acl localnet src 192.168.0.0/24

acl manager proto cache_object
http_access allow manager localhost
http_access deny manager

acl purge method PURGE
http_access allow purge localhost
http_access deny purge

acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 80 # http
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 # https
acl Safe_ports port 488 # gss-http
acl Safe_ports port 563 # nntps
acl Safe_ports port 591 # filemaker
acl Safe_ports port 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # unregistered ports
http_access deny !Safe_ports

acl connect method CONNECT
acl SSL_ports port 443 # https
acl SSL_ports port 563 # nntps
acl SSL_ports port 873 # rsync
http_access deny connect !SSL_ports

acl domains dstdomain "/etc/squid/domains"
http_access deny domains

acl words url_regex -i "/etc/squid/words"
http_access deny words

acl extensions urlpath_regex -i "/etc/squid/extensions"
http_access deny extensions

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny connect !SSL_ports
http_access deny domains
http_access deny words
http_access deny extensions
http_access allow localnet
http_access allow localhost
http_access deny all

O que sera em pessoal


  


2. Re: Linux Debian

Perfil removido
removido

(usa Nenhuma)

Enviado em 02/07/2013 - 21:30h

Sempre tente interpretar as mensagens de erro.

Errado
visible_Neguinhocachorrinho servidor 


Correto
visible_hostname servidor 


Errado
cache_dir ufs /var/spool/squid3 2040-16-256 


Correto
cache_dir ufs /var/spool/squid3 2040 16 256 



3. Re: Linux Debian

rafael m m
srmm

(usa Debian)

Enviado em 02/07/2013 - 22:53h

amarildosertorio escreveu:

Sempre tente interpretar as mensagens de erro.

Errado
visible_Neguinhocachorrinho servidor 


Correto
visible_hostname servidor 


Errado
cache_dir ufs /var/spool/squid3 2040-16-256 


Correto
cache_dir ufs /var/spool/squid3 2040 16 256 




Ola fiz certo mais, parece que deu bug não muda o nome quando dou restart botei tudo igual mais volta o resultado o que posso fazer agora.

/etc/init.d/squid3 restart
Restarting Squid HTTP Proxy 3.x: squid3Creating Squid HTTP Proxy 3.x cache structure ... (warning).
2013/07/02 22:48:34| cache_cf.cc(363) parseOneConfigFile: squid.conf:2 unrecognized: 'visible_Neguinhocachorrinho'
FATAL: Bungled squid.conf line 10: cache_dir ufs /var/spool/squid3 2040-16-256
Squid Cache (Version 3.1.6): Terminated abnormally.
CPU Usage: 0.044 seconds = 0.000 user + 0.044 sys
Maximum Resident Size: 15952 KB
Page faults with physical i/o: 0
2013/07/02 19:54:34| cache_cf.cc(363) parseOneConfigFile: squid.conf:2 unrecognized: 'visible_Neguinhocachorrinho'
FATAL: Bungled squid.conf line 10: cache_dir ufs /var/spool/squid3 2040-16-256
Squid Cache (Version 3.1.6): Terminated abnormally.
CPU Usage: 0.052 seconds = 0.000 user + 0.052 sys
Maximum Resident Size: 15968 KB
Page faults with physical i/o: 0
failed!



4. Re: Linux Debian

Perfil removido
removido

(usa Nenhuma)

Enviado em 02/07/2013 - 23:04h

Dá um stop e veja se o processo morreu.

# /etc/init.d/squid3 stop

# ps -ef | grep squid


5. Re: Linux Debian

rafael m m
srmm

(usa Debian)

Enviado em 02/07/2013 - 23:10h

amarildosertorio escreveu:

Dá um stop e veja se o processo morreu.

# /etc/init.d/squid3 stop

# ps -ef | grep squid




Fiz, mas não adiantou olha.

# /etc/init.d/squid3 stop
Stopping Squid HTTP Proxy 3.x: squid3.

root@debian:~# ps -ef | grep squid3
root 2478 1635 1 23:08 pts/0 00:00:00 grep squid3



6. Re: Linux Debian

Perfil removido
removido

(usa Nenhuma)

Enviado em 03/07/2013 - 07:32h

Revise o arquivo de configuração "/etc/squid/squid.conf" e suba o serviço novamente






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts