In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the squid command in Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Linux commonly used commands squid commands high-performance Web client proxy cache server suite "squid" server daemon.
Syntax squid [- dhsvzCDFNRVYX] [- f config-file] [- [au] port] [- k signal]
Parameter-a port; defines the transmission port of SQUID. By default, 3128 level; writes the debugging results to the stderr-f file; custom squid.conf file path-h; list how to use SQUID-k reconfigure | rotate | shutdown | kill | debug | check | parse-s; allows the running status of SQUID to be counted in SYS LOG-u port Define DNS port number defaults to 3130murv: display version-z: set up buffer directory-C: do not capture failure messages-D: close / start DNS test-F: do not provide service until re-establishment of STORE-N: do not use DEAMON-R: do not set REUSERADD ON PORT-V: set VIRTUAL HOST HTTPD-ACCELERATOR-X: force full debugging-Y: return only UDP_HIT or UDP_MISS_NOFETCH instance 1 when fast ICP
1. Initialize the cache directory you configured in squid.conf # / usr/sbin/squid-z # you must enter this command when starting the squid service for the first time. If there is an error, please check the permissions of your cache directory. 2. Troubleshoot your squid.conf, that is, verify the syntax and configuration of squid.conf. # / usr/sbin/squid-k parse if there is a syntax or configuration error in squid.conf, you will be prompted here. If not, congratulations, you can try to start squid. 3. Start squid in the foreground and output the startup process. # / usr/sbin/squid-N-D1 if there is a ready to server reques, congratulations, start successfully. Then ctrl + c, stop squid and start it in the background. 4. Start squid to run in the background. # / usr/sbin/squid-s at this time, you can ps-A to view the system process, you can see two squid processes. 5, stop squid# / usr/sbin/squid-k shutdown6, reboot the modified squid.conf# / usr/sbin/squid-k reconfigure this estimated time is more, when you find that your configuration is not what you want, you can modify squid.conf at any time, and then do not forget to debug your squid.conf, and then execute this instruction, you can let the running squid run according to your squid.conf again. Example 2
[root@localhost tank] # squidclient-p 80 mgr:info # squid Operation Statistics [root@localhost tank] # squidclient-p 80 mgr:mem # memory usage [root@localhost tank] # squidclient-p 80 mgr:diskd # hard disk cache usage [root@localhost tank] # squidclient-p 80 mgr:objects # cached list [root@localhost tank] # squidclient-p 80 mgr:io # IO thank you for reading this article carefully I hope the article "how to use squid commands in Linux" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.