|
|
|
|
| 关于squid编译的问题?求助!!!!(linux as 3.0系统) |
 关于squid编译的问题?求助!!!!(linux as 3.0系统) - loveyang [ 2005-11-04 21:27 | 952 byte(s)]
 Re: 关于squid编译的问题?求助!!!!(linux as 3.0系统) - cbchen [ 2005-11-08 21:18 | 195 byte(s)]
 Re: 关于squid编译的问题?求助!!!!(linux as 3.0系统) - loveyang [ 2005-11-08 23:01 | 1,820 byte(s)]
 Re: 关于squid编译的问题?求助!!!!(linux as 3.0系统) - cbchen [ 2005-11-09 09:48 | 99 byte(s)]
 Re: 关于squid编译的问题?求助!!!!(linux as 3.0系统) - loveyang [ 2005-11-08 22:18 | 65 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
inux as 3.0系统:
tar xvfj squid-2.5.STABLE.tar.bz2
cd squid-2.5.STABLE2
编译:
./configure --prefix=/var/squid --sysconfdir=/etc/squid/ --enable-arp-acl --enable-linux-netfilter --enable-pthreads --enable-err-language="Simplify_Chinese" --enable-storeio=ufs,null --enable-default-err-language="Simplify_Chinese" --enable-auth="basic" --enable-baisc-auth-helpers="NCSA" --enable-underscore
最后执行
make
make install
执行完毕之后在 /var/squid找不到squid的启动文件,即类似于RPM包安装之后在/etc/init.d/squid的启动/停止....的文件
找变整个系统(在根目录下搜索find -type f -name squid)也找不到这个文件!
各位高手有碰到过这个问题吗?编译过许多次仍然是这个问题,小弟非常郁闷,求助大虾!!!!!!!
那位高手能给我一个详细的过程那是最好,或者指点一下哪里忘记做了....!
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
squid无需什么启动文件。在/var/squid/bin/下有个squidclient,用那个就可以启动。
或者你可以自己写一个启动教本即可
先squid -z -f config_file
然后squid -D -f config_file即可
|
|
|
----
欢迎使用icc3000认证计费系统
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
[root@sam bin]# ./squidclient
Usage: ./squidclient [-arsv] [-i IMS] [-h remote host] [-l local host] [-p port] [-m method] [-t count] [-I ping-interval] [-H 'strings'] [-T timeout] url
Options:
-P file PUT request.
-a Do NOT include Accept: header.
-r Force cache to reload URL.
-s Silent. Do not print data to stdout.
-v Verbose. Print outgoing message to stderr.
-i IMS If-Modified-Since time (in Epoch seconds).
-h host Retrieve URL from cache on hostname. Default is localhost.
-l host Specify a local IP address to bind to. Default is none.
-p port Port number of cache. Default is 3128.
-m method Request method, default is GET.
-t count Trace count cache-hops
-g count Ping mode, "count" iterations (0 to loop until interrupted).
-I interval Ping interval in seconds (default 1 second).
-H 'string' Extra headers to send. Use '
' for new lines.
-T timeout Timeout value (seconds) for read/write operations.
-u user Proxy authentication username
-w password Proxy authentication password
-U user WWW authentication username
-W password WWW authentication password
好象没有启动选项!
另:
先squid -z -f config_file
然后squid -D -f config_file即可
这两个命令在那个目录下执行?因为没有squid的执行文件,所以我不知在哪里执行,请告知!!
/var/squid/sbin/下有一个squid文件,squid: ELF 32-bit LSB executable,是用这个执行吗?
非常感谢
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
呵呵。说错了。应该是RunCache不是squidclient
squid就是/var/squid/sbin下的那个,直接运行即可
|
|
|
----
欢迎使用icc3000认证计费系统
|
|
[Original]
[Print]
[Top]
|
|
|