版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/04/29/000494.html
-----> homepage http://www.acmeconsulting.it/pagine/opensource/squid/squidnt25.htm Squid 2.5 for Windows NT 4.0/2000/XP/2003Native port of Squid 2.5, with many NT service enhancement. Licensing Install: - If You are upgrading from SquidNT 2.3, please uninstall the old service and merge your old squid.conf in the new squid.conf configuration file. Don't forget to take a look about squid.conf changes on Squid 2.4 and Squid 2.5 pages
- Extract the binary archive in the desired directory (default c:\squid)
- Read the CompileOptions.txt file
- Copy squid.conf.default as squid.conf and mime.conf.default as mime.conf
- Edit the squid.conf and change if needed the c:/squid path (use path with '/' char, NOT '\')
- Manually create ALL the directories specified in squid.conf, except the contents of the cache directory
- Starting with PRE9 revision, squid.exe was moved from bin to sbin directory.
Please remove and reinstall SquidNT service to reflect the changes. - squid -i [-f configfile] [-n servicename] (installs the servicename Squid service using the configfile configuration file, default configfile is "c:/squid/etc/squid.conf", default servicename is "SquidNT")
- squid -z [-f configfile] (creates the cache directories)
- squid -O servicecommandline [-n servicename] (Set in Windows Registry the Squid servicename service command line)
Uninstall: - squid -r [-n servicename] (removes the servicename Squid service)
Usage: Compiling source code: - Microsoft build environment:
- Microsoft Visual C++ 6.0 Service Pack 5
- Microsoft latest Core SDK
- Native CVS, gawk, perl,sed and patch for NT
- MinGW environment:
- MSYS 1.0.9 or later
- MinGW 3.1.0 or later
- Windows API 2.4.0 or later
- MSYS Developer Tool Kit 1.0.1 or later
- Build environments configuration
- How obtain the sources:
- Build using Microsoft Visual Studio:
- Check ASCII format of all project files, must be DOS (CR+LF)
- Check paths on all project files
- Verify the Squid options defined in autoconf.h
- Check default parameters on squid_mswin.mak file
- Check settings on Install files project
- Build using MinGW:
Compatibility Notes: Known Limitations: - Squid features not operational:
DISKD: needs to be ported - Volunteers are welcome WCCP: cannot work because GRE support on Windows is missing - Volunteers are welcome Transparent Proxy: missing Windows non commercial interception driver - Some code sections can make blocking calls
- Some external helpers may not work
- File Descriptors number hard-limited to 2048
At this time Windows is a platform partially supported from Squid Community. For general Squid configuration ask always on squid-users mailing list.
No warranties of any kind. No time for support, sorry. Use at your own risk.
SquidNT BUG Reports
Original Port and some enhancements by Romeo Anghelache (see the ChangeLog)
-----> download http://www.acmeconsulting.it/pagine/opensource/download/squid.htm http://albaweb.albacom.net/acmeconsulting.it/download/squid-2.5.STABLE5-NT-CVS.zip http://albaweb.albacom.net/acmeconsulting.it/download/squid-2.5.STABLE5-NT-bin.zip http://albaweb.albacom.net/acmeconsulting.it/download/squid-2.5.STABLE5-NT-bin-DELAYP.zip -----> demo C:\squid\sbin>squid -v Squid Cache: Version 2.5.STABLE5-NT configure options: --enable-win32-service --enable-htcp --enable-icmp --disable- wccp --enable-underscores --enable-storeio='ufs awin32 null' --enable-removal-po licies='heap lru' --enable-snmp --enable-win32-service --enable-useragent-log -- enable-referer-log --enable-auth='basic ntlm digest' --enable-basic-auth-helpers =win32_locallogon --enable-ntlm-auth-helpers=NTLMSSP-WIN32 --enable-external-acl -helpers=win32_group --prefix=c:/squid Compiled as Windows System Service. C:\squid\sbin>squid -h Usage: squid [-dhirsvzCDFRVYX] [-f config-file] [-[au] port] [-k signal] [-n nam e] [-O CommandLine] -a port Specify HTTP port number (default: 3128). -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: SquidNT. -r Removes a Windows Service (see -n option). -s 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. -O options Set Windows Service Command line options in Registry. -R Do not set REUSEADDR on port. -S Double-check swap during rebuild. -V Virtual host httpd-accelerator. -X Force full debugging. -Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload. C:\squid\sbin>squid -z FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname' Squid Cache (Version 2.5.STABLE5-NT): Terminated abnormally. CPU Usage: 0.063 seconds = 0.031 user + 0.031 sys Maximum Resident Size: 3140 KB Page faults with physical i/o: 876 abnormal program termination C:\squid\sbin>squid -z 2004/04/28 16:02:07| Creating Swap Directories C:\squid\sbin> --- squid.conf.default Sat Feb 28 17:18:40 2004 +++ squid.conf Wed Apr 28 16:02:06 2004 @@ -700,6 +700,7 @@ # #Default: # cache_dir ufs c:/squid/var/cache 100 16 256 +cache_dir ufs E:/temp/cache 100 16 256 # TAG: cache_access_log # Logs the client request activity. Contains an entry for @@ -725,6 +726,7 @@ # #Default: # cache_store_log c:/squid/var/logs/store.log +cache_store_log none # TAG: cache_swap_log # Location for the cache "swap.log." This log file holds the @@ -2049,6 +2051,7 @@ # #Default: # none +visible_hostname test.nt.proxy.ipcn.org # TAG: unique_hostname # If you want to have multiple machines with the same
|
|