Squid startup parameter 1. Add-z to the first startup to create the squid cache HASH directory and initialize it. The squid command line option-a port specifies the new http_port value. This option overwrites the value from squid. conf. However, note that you can specify multiple values in squid. conf. -Option a only overwrites the first value in the configuration file. (This option uses the letter a because the HTTP port is called the ASCII port in the Harvest cache.)-d level enables squid to write its debugging information to a standard error (IF configured, It is the cache. log and syslog ). The level parameter specifies the maximum level of messages displayed in standard errors. In most cases, d1 works well. See Section 16.2 about the debugging level. -F file specifies another configuration file. -H: Display usage. -K function indicates that squid performs different management functions. Function parameters are one of the following: reconfigure, rotate, shutdown, interrupt, kill, debug, check, or parse. reconfigure causes the running squid to re-read the configuration file. Rotate causes squid to scroll its logs, including disabling logs, renaming, and opening them again. Shutdown sends a signal to shut down the squid process. Interrupt immediately closes the squid and does not have to wait for the Active session to complete. Kill sends a KILL signal to squid, which is the final guarantee for disabling squid. Debug sets squid to the full debugging mode. If your cache is busy, it can quickly use up your disk space. Check the running squid process. The returned value shows whether the squid is running. Finally, parse parses the squid. conf file. If the configuration file contains errors, the process returns a non-zero value. -S activation records logs to the syslog process. Squid uses the LOCAL4 syslog device. Level 0 debugging information is recorded with priority LOG_WARNING, and level 1 message is recorded with LOG_NOTICE. More advanced debugging information will not be sent to syslogd. you can go to/etc/syslogd. use the following interface in the conf file: local4.warning/var/log/squid. log-u port specifies another ICP port to overwrite squid. the icp_port In the conf file. -V: print the version information. -Z initializes the cache, or exchanges and directories. This option is required when you first run squid or add a new cache directory. -C blocks the installation of certain signal handles that capture specific fatal signals such as SIGBUS and SIGSEGV. Normally, these signals are captured by squid so that it can be closed cleanly. However, capturing these signals may make debugging difficult in the future. With this option, fatal signals lead to their default actions, usually coredump. -D disable DNS test initialization. Normally, squid cannot be started until its DNS is verified to be available. This option prevents such detection. You can also change or delete the dns_testnames option in the squid. conf file. -F asks squid to reject all requests until it re-establishes the storage metadata. If your system is busy, this option can reduce the time required to recreate and store metadata. However, if your cache is large, the reconstruction process may take a long time. -N prevents squid from becoming a backend service process. -R blocks squid from using the SO_REUSEADDR option before binding the HTTP port. -V activates the VM acceleration mode. Similar to the httpd_accel_host virtual command in the squid. conf file. -X forces the complete debugging mode, as if you specify debug_options ALL, 9 in the squid. conf file. -When re-storing metadata, Y returns ICP_MISS_NOFETCH instead of ICP_MISS. This option can cause minimal load during re-creation of the busy parent cache. 2. debug tool squidclient/usr/local/squid/bin/squidclient-h squid listening address-p squid listening port mgr: info (View cache hit rate and other information) mgr: objects (view files cached by the disk) PURGE http: // xxxxxxxxxxxx refresh the cache of an address or file manually.