急问squid问题

由 小锁 在 01-02-2004 20:46 发表:

急问squid问题

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

init_cache_dir /var/spool/squid... /etc/rc.d/init.d/squid: line 162: 3154 已放弃 $SQUID -z -F -D 2>/dev/null

启动 squid:/etc/rc.d/init.d/squid: line 162: 3155 已放弃 $SQUID $SQUID_OPTS 2>/dev/null

[失败]

不知道怎么回事

我的是redhat9


我的blog:http://linuxer.512j.com/blog/blog.php

xlyrics-0.0.2发布:向各位讨教怎么实现背景透明?!

parker_nku


由 小锁 在 01-03-2004 00:02 发表:


搜了整个论坛

难道就没有人解决的了吗?


我的blog:http://linuxer.512j.com/blog/blog.php

xlyrics-0.0.2发布:向各位讨教怎么实现背景透明?!

parker_nku


由 nbxmedia 在 01-03-2004 00:44 发表:


启动前squid -z没有?


个人网站转向Smarty,一个人要做两份活,还要分开干,哎…………

Athlon1200/512M DDR333/10G HD/KM400/19寸彩显

http://nbx.3322.org


由 Snoopy 在 01-03-2004 09:04 发表:

回复: 急问squid问题

> quote: > > * * * > > 最初由 小锁 发表
>
> **[root@Center squid]# /etc/rc.d/init.d/squid start
>
> init_cache_dir /var/spool/squid... /etc/rc.d/init.d/squid: line 162: 3154 已放弃 $SQUID -z -F -D 2>/dev/null
>
> 启动 squid:/etc/rc.d/init.d/squid: line 162: 3155 已放弃 $SQUID $SQUID_OPTS 2>/dev/null
>
> [失败]
>
> 不知道怎么回事
>
> 我的是redhat9 ** > > * * *

根本就没配置好,,你是默认开的对不对??


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 Snoopy 在 01-03-2004 09:10 发表:


在squid.conf里将下面那些前面的#去掉,

http_port 3128

icp_port 3130

cache_mem 8 MB

cache_dir ufs /var/spool/squid 100 16 256

cache_access_log /var/log/squid/access.log

cache_log /var/log/squid/cache.log

cache_store_log /var/log/squid/store.log

http_access deny all 改成 http_access allow all

启动前先 squid -z,然后再启动

如果出现Squid - Fatal Error: Please set 'visible_hostname'.

的话,就修改squid.conf里的

visible_hostname snooopy

unique_hostname snooopy

将snooopy改成你的主机名

启动,就可以了,


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 小锁 在 01-03-2004 11:08 发表:


谢谢老兄搞定了

visible_hostname Center

unique_hostname Center

主要是上面这两行!

我不用squid -z 直接/etc/rc.d/init/squid start

就行了


我的blog:http://linuxer.512j.com/blog/blog.php

xlyrics-0.0.2发布:向各位讨教怎么实现背景透明?!

parker_nku


由 Snoopy 在 01-03-2004 16:30 发表:


要squid -z的,你看下文章就知道了


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 Snoopy 在 01-03-2004 16:30 发表:


.............


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 小锁 在 01-03-2004 21:07 发表:


不加那个也能启动

并且没有错误的说

我是redhat9雅

别人用我得代理也是一切正常的说

不过我加了认证之后

就是ncsa认证吧

死活报告密码错误怎么都代理不成功

郁闷中雅


我的blog:http://linuxer.512j.com/blog/blog.php

xlyrics-0.0.2发布:向各位讨教怎么实现背景透明?!

parker_nku


由 小锁 在 01-04-2004 22:19 发表:


呵呵

最后的认证也搞定了

原来哪个passwd文件的属性是

[root@Center squid]# ls -l passwd

-rw------- 1 root root 17 1月 4 22:16 passwd

[root@Center squid]# chmod a+r passwd

[root@Center squid]# ls -l passwd

-rw-r--r-- 1 root root 17 1月 4 22:16 passwd

更改后就一切ok了

呵呵

今天就是顺利呀

没有办法

高兴呀

明天考试希望也是如此这般


我的blog:http://linuxer.512j.com/blog/blog.php

xlyrics-0.0.2发布:向各位讨教怎么实现背景透明?!

parker_nku


由 Snoopy 在 01-05-2004 02:53 发表:


squid –z 命令开启缓存

具体你还是看看文章好,有用的,好象是当你缓存满了,它就不会删了继续好象,这个好象是先删了再增加????


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 小锁 在 01-05-2004 13:17 发表:


难道这里没有那个东西吗?

楼上的兄弟!

呵呵

#!/bin/bash

squid This shell script takes care of starting and stopping

Squid Internet Object Cache

chkconfig: - 90 25

description: Squid - Internet Object Cache. Internet object caching is \

a way to store requested Internet objects (i.e., data available \

via the HTTP, FTP, and gopher protocols) on a system closer to the \

requesting site than to the source. Web browsers can then use the \

local Squid cache as a proxy HTTP server, reducing access time as \

well as bandwidth consumption.

pidfile: /var/run/squid.pid

config: /etc/squid/squid.conf

PATH=/usr/bin:/sbin:/bin:/usr/sbin

export PATH

Source function library.

. /etc/rc.d/init.d/functions

Source networking configuration.

. /etc/sysconfig/network

Check that networking is up.

[ ${NETWORKING} = "no" ] && exit 0

check if the squid conf file is present

[ -f /etc/squid/squid.conf ] || exit 0

if [ -f /etc/sysconfig/squid ]; then

. /etc/sysconfig/squid

fi

don't raise an error if the config file is incomplete

set defaults instead:

SQUID_OPTS=${SQUID_OPTS:-"-D"}

SQUID_PIDFILE_TIMEOUT=${SQUID_PIDFILE_TIMEOUT:-20}

SQUID_SHUTDOWN_TIMEOUT=${SQUID_SHUTDOWN_TIMEOUT:-100}

determine the name of the squid binary

[ -f /usr/sbin/squid ] && SQUID=squid

[ -z "$SQUID" ] && exit 0

prog="$SQUID"

determine which one is the cache_swap directory

CACHE_SWAP=`sed -e 's/#.*//g' /etc/squid/squid.conf | \

grep cache_dir | awk '{ print $3 }'`

[ -z "$CACHE_SWAP" ] && CACHE_SWAP=/var/spool/squid

RETVAL=0

start() {

for adir in $CACHE_SWAP; do

if [ ! -d $adir/00 ]; then

echo -n "init_cache_dir $adir... "

$SQUID -z -F -D 2>/dev/null

fi

done

echo -n $"Starting $prog: "

$SQUID $SQUID_OPTS 2> /dev/null

RETVAL=$?

if [ $RETVAL -eq 0 ]; then

timeout=0;

while : ; do

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus