Linux command
tinyproxy 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start tinyproxy
tinyproxy
Start with a custom configuration file
tinyproxy -c [path/to/tinyproxy.conf]
Run in foreground
tinyproxy -d
Run in foreground with custom config
tinyproxy -d -c [path/to/tinyproxy.conf]
Show version information
tinyproxy -v
Show help
tinyproxy -h
说明
Tinyproxy is a lightweight HTTP/HTTPS proxy daemon designed for minimal resource consumption. It listens on a configurable TCP port and handles HTTP proxy requests, making it ideal for embedded systems, containers, or environments where a full-featured proxy would be too resource-intensive. The daemon supports basic HTTP proxying, HTTPS via CONNECT method, upstream proxy configuration, access control lists, and URL-based filtering. It can also function as a reverse proxy, forwarding requests to backend servers. Configuration is done through a configuration file (typically /etc/tinyproxy/tinyproxy.conf) that specifies the listening port, allowed clients, log settings, and filtering rules. Tinyproxy provides a built-in statistics page accessible by requesting the stathost (default: tinyproxy.stats). Signals can control the running daemon: SIGHUP triggers garbage collection on connections, and standard signals handle graceful shutdown.
参数
- -c _config-file_
- Use an alternate configuration file instead of the default /etc/tinyproxy/tinyproxy.conf.
- -d
- Do not daemonize. Stay in the foreground, useful for debugging.
- -h
- Display a short help screen and exit.
- -l
- Display the licensing agreement and exit.
- -v
- Display version information and exit.
FAQ
What is the tinyproxy command used for?
Tinyproxy is a lightweight HTTP/HTTPS proxy daemon designed for minimal resource consumption. It listens on a configurable TCP port and handles HTTP proxy requests, making it ideal for embedded systems, containers, or environments where a full-featured proxy would be too resource-intensive. The daemon supports basic HTTP proxying, HTTPS via CONNECT method, upstream proxy configuration, access control lists, and URL-based filtering. It can also function as a reverse proxy, forwarding requests to backend servers. Configuration is done through a configuration file (typically /etc/tinyproxy/tinyproxy.conf) that specifies the listening port, allowed clients, log settings, and filtering rules. Tinyproxy provides a built-in statistics page accessible by requesting the stathost (default: tinyproxy.stats). Signals can control the running daemon: SIGHUP triggers garbage collection on connections, and standard signals handle graceful shutdown.
How do I run a basic tinyproxy example?
Run `tinyproxy` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _config-file_ do in tinyproxy?
Use an alternate configuration file instead of the default /etc/tinyproxy/tinyproxy.conf.