mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
38 lines
633 B
Plaintext
38 lines
633 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# squid
|
|
|
|
> Cache and forward HTTP requests through a proxy server.
|
|
> More information: <https://manned.org/squid>.
|
|
|
|
- Start Squid in the background:
|
|
|
|
`sudo squid`
|
|
|
|
- Start Squid in the foreground:
|
|
|
|
`sudo squid -N`
|
|
|
|
- Start Squid with a specific configuration file:
|
|
|
|
`sudo squid -f {{path/to/squid.conf}}`
|
|
|
|
- Test the configuration file for errors:
|
|
|
|
`sudo squid -k parse`
|
|
|
|
- Reload the configuration file:
|
|
|
|
`sudo squid -k reconfigure`
|
|
|
|
- Shut down Squid gracefully:
|
|
|
|
`sudo squid -k shutdown`
|
|
|
|
- Rotate the log files:
|
|
|
|
`sudo squid -k rotate`
|