论坛风格切换切换到宽版
  • 1734阅读
  • 8回复

[问题求助]squid Aborted错误 [复制链接]

上一主题 下一主题
 
发帖
2110
C币
-235576
威望
380
贡献值
1
银元
-4
铜钱
4875
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
这是小弟的配置文件
http_port 192...168.1.113:8080<性病>
cache._mem 32 MB健康
cache_.swap_low 90域名
cache._swap_high 95[成人用品]
maximum_object_size. 1024 K.B健康
cache_dir ufs /usr/local/squid/c.ach.e 1200 16 256           鲜花
c.ache_access_log /usr./local/squid/logs/access.log.
cache_log /usr/local/squ.id/logs/cache.l.og             汽车
dns_na.meserver.s 192.168.1.1    外汇
unlinkd_program /usr/l.ocal/squid/bi.n/unlinkd学习
acl all src 0.0..0..0/0.0.0.0            杀毒
http_acces.s allow all--- 印刷
cache_effect.ive_user no.body.
cache_effective_gro.up .nobody           建材
visible_host.name ting域名
#httpd_a.ccel_host ting(广告)
#httpd_.accel_port 80学习
#htt.pd_accel_with_pro.xy on           建材
#httpd_a.ccel_uses_host_he.ader on服务器

[root@bogon. etc]# /u.sr/local/squid/sbin/squid -N d1 restart              乙肝
Aborted
[root@bogon et.c]# 电影
如果.不加 -N d1启动的话什么都不显示             汽车
[root.@bogon e.tc]# /usr/local/squid/sbin/squid restart           女人
[root@bogon etc]# .学习
如果把上面那3行注释去掉的话
[roo.t@bogon etc]# /usr/local/squid/sbin/squid r.estart[成人用品]
2007/12/12 15:36:22| parseConfigFile: l.ine 16 unrecognized: '.httpd_a.ccel_host ting'.
2007/12/12 15:36:22| .parseConf.igFile: line 17 unreco.gnized: 'httpd_accel_port 80'(        游戏          )
2007/12/12 15.:36:22| parseConfigFile: line 18 unrecognized: 'httpd_accel_w.ith_prox.y on'电影
2007/12/12 15:36:22| parseConfigFile: line 19. unrecognized: 'httpd_accel_uses_.host_head.er on'.
[roo.t@bogon etc]# 外贸
请问有那位大虾知道怎么做么?
我只是想做过透明代理~

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线62712345.
发帖
2088
C币
-306683
威望
380
贡献值
1
银元
-3
铜钱
4663
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:squid
这是日志信息
[root@bogon etc]# tail -n 50 /var/log/messages
Aug 28 11:32:44 bogon runuser: declare -x PWD="/usr/lib/im"
Aug 28 11:32:44 bogon runuser: declare -x SHELL="/bin/bash"
Aug 28 11:32:44 bogon runuser: declare -x SHLVL="1"
Aug 28 11:32:45 bogon runuser: declare -x TERM="linux"
Aug 28 11:32:45 bogon runuser: declare -x USER="htt"
Aug 28 11:32:45 bogon iiim: htt startup succeeded
Aug 28 11:32:45 bogon crond: crond startup succeeded
Aug 28 11:32:45 bogon htt_server[2048]: started.
Aug 28 11:32:47 bogon xfs: xfs startup succeeded
Aug 28 11:32:47 bogon xfs[2079]: ignoring font path element /usr/X11R6/lib/X11/fonts/misc:unscaled (unreadable)
Aug 28 11:32:47 bogon anacron: anacron startup succeeded
Aug 28 11:32:47 bogon atd: atd startup succeeded
Aug 28 11:32:47 bogon xfs[2079]: ignoring font path element /usr/X11R6/lib/X11/fonts/100dpi:unscaled (unreadable)
Aug 28 11:32:47 bogon xfs[2079]: ignoring font path element /usr/X11R6/lib/X11/fonts/Type1 (unreadable)
Aug 28 11:32:47 bogon xfs[2079]: ignoring font path element /usr/share/fonts/default/Type1 (unreadable)
Aug 28 11:32:47 bogon messagebus: messagebus startup succeeded
Aug 28 11:32:47 bogon haldaemon: haldaemon startup succeeded
Aug 28 11:32:49 bogon fstab-sync[2458]: removed all generated mount points
Aug 28 11:32:49 bogon fstab-sync[2469]: added mount point /media/cdrom for /dev/hdc
Aug 28 11:32:56 bogon login(pam_unix)[2124]: session opened for user root by LOGIN(uid=0)
Aug 28 11:32:56 bogon  -- root[2124]: ROOT LOGIN ON tty1
Aug 28 11:33:22 bogon shutdown: shutting down for system reboot
Aug 28 11:33:22 bogon init: Switching to runlevel: 6
Aug 28 11:33:22 bogon login(pam_unix)[2124]: session closed for user root
Aug 28 11:33:24 bogon haldaemon: haldaemon -TERM succeeded
Aug 28 11:33:24 bogon dbus: Can't send to audit system: USER_AVC pid=2105 uid=81 loginuid=-1 message=avc:  1 AV entries and 1/512 buckets used, longest chain length 1
Aug 28 11:33:24 bogon messagebus: messagebus -TERM succeeded
Aug 28 11:33:24 bogon atd: atd shutdown succeeded
Aug 28 11:33:24 bogon cups: cupsd shutdown succeeded
Aug 28 11:33:24 bogon xfs[2079]: terminating
Aug 28 11:33:24 bogon xfs: xfs shutdown succeeded
Aug 28 11:33:25 bogon gpm: gpm shutdown succeeded
Aug 28 11:33:25 bogon sshd: sshd -TERM succeeded
Aug 28 11:33:25 bogon sendmail: sendmail shutdown succeeded
Aug 28 11:33:25 bogon sendmail: sm-client shutdown succeeded
Aug 28 11:33:25 bogon smartd[1887]: smartd received signal 15: Terminated
Aug 28 11:33:25 bogon smartd[1887]: smartd is exiting (exit status 0)
Aug 28 11:33:25 bogon smartd: smartd shutdown succeeded
Aug 28 11:33:25 bogon xinetd[1980]: Exiting...
Aug 28 11:33:25 bogon xinetd: xinetd shutdown succeeded
Aug 28 11:33:25 bogon acpid: acpid shutdown succeeded
Aug 28 11:33:25 bogon crond: crond shutdown succeeded
Aug 28 11:33:26 bogon rpc.statd[1796]: Caught signal 15, un-registering and exiting.
Aug 28 11:33:26 bogon nfslock: rpc.statd shutdown succeeded
Aug 28 11:33:26 bogon irqbalance: irqbalance shutdown failed
Aug 28 11:33:26 bogon portmap: portmap shutdown succeeded
Aug 28 11:33:26 bogon kernel: Kernel logging (proc) stopped.
Aug 28 11:33:26 bogon kernel: Kernel log daemon terminating.
Aug 28 11:33:27 bogon hald[2117]: Timed out waiting for hotplug event 271. Rebasing to 271
Aug 28 11:33:27 bogon exiting on signal 15
[root@bogon etc]#
期待高手

离线chkey.
发帖
2007
C币
-140550
威望
405
贡献值
1
银元
-1
铜钱
4645
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:squid
自己顶下。。高手快出来。。可以给分。。你要多少我给多少,只要我有

发帖
2121
C币
-139044
威望
401
贡献值
1
银元
-2
铜钱
4708
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
Re:squid
自己在顶。。来个高手吧 这服务我做了一天了

发帖
2168
C币
-60397
威望
407
贡献值
1
银元
-1
铜钱
4944
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
Re:squid


QUOTE:原帖由 ssffzz1 于 2007-12-12 16:59 发表
你的SQUID版本多少
你贴出SQUID的错误日志。

squid版本是2。6
错误信息
[root@bogon etc]# /usr/local/squid/sbin/squid -N d1
2007/12/12 17:04:10| parseConfigFile: line 15 unrecognized: 'httpd_hostname bogon'
2007/12/12 17:04:10| parseConfigFile: line 16 unrecognized: 'httpd_accel_host bogon'
2007/12/12 17:04:10| parseConfigFile: line 17 unrecognized: 'httpd_accel_port 80'
2007/12/12 17:04:10| parseConfigFile: line 18 unrecognized: 'httpd_accel_with_proxy on'
2007/12/12 17:04:10| parseConfigFile: line 19 unrecognized: 'httpd_accel_uses_host_header on'
FATAL: Could not determine fully qualified hostname.  Please set 'visible_hostname'

Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
CPU Usage: 0.003 seconds = 0.002 user + 0.001 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted
[root@bogon etc]#
谢谢BZ,好像还是设置主机名字的问题。

离线5136456.
发帖
2120
C币
-235562
威望
415
贡献值
1
银元
-1
铜钱
4813
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
Re:squid
[root@bogon etc]# tail -n 30 /usr/local/squid/logs/cache.log
        The parent directory must be writeable by the
        user 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
CPU Usage: 0.011 seconds = 0.004 user + 0.007 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
2007/12/12 16:56:47| Starting Squid Cache version 2.6.STABLE4 for i686-pc-linux-gnu...
2007/12/12 16:56:47| Process ID 15144
2007/12/12 16:56:47| With 1024 file descriptors available
2007/12/12 16:56:47| Using epoll for the IO loop
2007/12/12 16:56:47| Performing DNS Tests...
2007/12/12 16:56:47| Successful DNS name lookup tests...
2007/12/12 16:56:47| DNS Socket created at 0.0.0.0, port 32807, FD 5
2007/12/12 16:56:47| Adding nameserver 192.168.1.1 from squid.conf
2007/12/12 16:56:47| ipcCreate: /usr/local/squid/bin/unlinkd: (13) Permission denied
2007/12/12 16:56:47| Unlinkd pipe opened on FD 10
2007/12/12 16:56:47| Swap maxSize 1228800 KB, estimated 94523 objects
2007/12/12 16:56:47| Target number of buckets: 4726
2007/12/12 16:56:47| Using 8192 Store buckets
2007/12/12 16:56:47| Max Mem  size: 32768 KB
2007/12/12 16:56:47| Max Swap size: 1228800 KB
FATAL: Cannot open '/usr/local/squid/var/logs/store.log' for writing.
        The parent directory must be writeable by the
        user 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.008 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
[root@bogon etc]#

离线chkey.
发帖
2007
C币
-140550
威望
405
贡献值
1
银元
-1
铜钱
4645
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
Re:squid
透明代理相关的配置是针对2.5的。2.6的做透明代理不需要配置这些语句了。

http_port 192.168.1.113:8080  transparent

离线my9449.
发帖
2057
C币
-139381
威望
379
贡献值
1
银元
-2
铜钱
4539
人人网人气币
0
只看该作者 7楼 发表于: 2010-04-13
Re:squid
BZ的意思是配置文件这样改?
http_port 192.168.1.113:8080  transparent
cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 1024 KB
cache_dir ufs /usr/local/squid/cache 1200 16 256
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
dns_nameservers 192.168.1.1
unlinkd_program /usr/local/squid/bin/unlinkd
acl all src 0.0.0.0/0.0.0.0
http_access allow all
cache_effective_user nobody
cache_effective_group nobody
visible_hostname localhost
但是我启动squid以[root@bogon etc]# /usr/local/squid/sbin/squid -N d1
Aborted
后还是出现
虚心请教版主

离线kgod.
发帖
1981
C币
-60648
威望
357
贡献值
1
银元
-3
铜钱
4485
人人网人气币
0
只看该作者 8楼 发表于: 2010-04-13
Re:squid
visible_hostname localhost

这个应该不需要。

还是需要SQUID的出错信息,另外建议你用系统自带的脚本启动SQUID。RPM安装的话这些已经有了。
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个