windows下執行squid -N報錯?
為什麼squid -N不行呢?幫助中明明有這個參數項呀
C:\squid\sbin>squid -NCd1
squid: unknown option -- N
Usage: squid [-hirvzCDFRYX] [-d level] [-s | -l facility] [-f config-file] [-u p
ort] [-k signal] [-n name] [-O command-line]
-d level Write debugging to stderr also.
-f file Use given config-file instead of
c:/squid/etc/squid.conf
-h Print help message.
-i Installs as a Windows Service (see -n option).
-k reconfigure|rotate|shutdown|interrupt|kill|debug|check|parse
Parse configuration file, then send signal to
running copy (except -k parse) and exit.
-n name Specify Windows Service name to use for service operations
default is: Squid.
-r Removes a Windows Service (see -n option).
-s | -l facility
Enable logging to syslog.
-u port Specify ICP port number (default: 3130), disable with 0.
-v Print version.
-z Create swap directories
-C Do not catch fatal signals.
-D Disable initial DNS tests.
-F Don't serve any requests until store is rebuilt.
-N No daemon mode.
-O options
Set Windows Service Command line options in Registry.
-R Do not set REUSEADDR on port.
-S Double-check swap during rebuild.
-X Force full debugging.
-Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.
《解決方案》
C:\squid\sbin>squid -N -d1
這樣試試
《解決方案》
回復 #2 西門飛 的帖子
試了 一樣 還是-N只能在unix環境下用呢?
《解決方案》
那不知道了
你裝個 linux 試試 :mrgreen: :mrgreen:
《解決方案》
squid -Cd2
《解決方案》
win32下面,後台運行,用:
squid -n squid -i
net start|stop squid
squid -n squid -r卸載服務
《解決方案》
原帖由 HonestQiao 於 2007-7-9 06:53 發表 http://bbs.chinaunix.net/images/common/back.gif
win32下面,後台運行,用:
squid -n squid -i
net start|stop squid
squid -n squid -r卸載服務
嗯 這樣可以 :lol: :lol: