I. Preface
I don’t need to say more about why I want to play HTTP proxy.
Second, build environment
* Linux Ubuntu
* tinyproxy
Three, installation method
$sudo apt-get install tinyproxy After installation, the tinyproxy service is automatically enabled with root privileges, and the default listening port is 8888
IV. Startup Help
$tinyproxy –help Usage: tinyproxy [options] Options are: -d Do -h FILE Use an alternate configuration file. -h Display this usage information. -l Display the license. -v Display version information.
V. Root User Startup Method< Br>
* Default startup $sudo service tinyproxy start * Restart $sudo service tinyproxy restart * Stop $sudo service tinyproxy stop
VI, DIY configuration
/etc/tinyproxy.conf
(can be found in the /etc/init.d/tinyproxy wrapper script)
* When starting with the root user, switch uid/gid to nobody/nogroup after initialization is complete. * Port default listening port is 8888 (this port does not need to be bound with root privileges) * Default is in Listen on the network card * Logfile (required) log file, default /usr/var/log/tinyproxy/tinyproxy.log, will warn when the LogFile file does not exist, will not run failure. * Pidfile (required) pid file, default /usr/var/run/tinyproxy/tinyproxy.pid, will fail if the PidFile file does not exist. * StartServers Initially started proxy server child process (default is 10) *** Allow Allows the use of tinyproxy for the IP address of the HTTP proxy. The default is 127.0.0.1. If you want to expose the tinyproxy proxy server, comment out the Allow line.
tinyproxy can be run with normal user rights, as long as the listening port is public. The specific Diy configuration method is as follows: — package executable program and default configuration file — 1. $which tinyproxy /usr/sbin/tinyproxy 2. $cp /usr/sbin/tinyproxy ~/bin 3. $cp /etc/tinyproxy .conf ~/etc — Modify the configuration — 1. Change the default 8888 of the port to the port you want (such as the 8990 TCP port on ljysrv) 2. Comment out the Allow 127.0.0.1 3. Change the Logfile to /Tmp/tinyproxy.log 4. Change PidFile to /tmp/tinyproxy.pid — Start — 1. $cd ~/bin 2. $./tinyproxy -c ~/etc/tinyproxy.conf — Close — 1 $killall tinyproxy
AWK Stands for ‘Aho, Weinberger, and Kernighan‘Awk is a scripting language which is use
2011 is the 20th anniversary of Linux and the 18th anniversary of the Debian release. Linux has expe
Preparation before erection: To set up a DNS server, you must install a software program that provi
A brief history of Linux operating system development
Linux query memory real utilization
Five Linux simple commands to help you solve performance problems
Set up a personal Bluetooth LAN under Linux
The difference between wire and reg in verilog HDL
A detailed description of the use of the strace command under Linux
Understand the four major IDS intrusion detection tools for Linux platform
Determine whether the server is shut down normally under Linux environment
Git Common Commands Quick Reference Table
Linux source command and its usage introduction
Using the flock command on Linux to control the asynchronous execution of programs
Microsoft adjusts the initial running experience update after Win10 installation
How does the Win7 system turn off the automatic save password function?
Smartly set up a firewall to deal with virus attacks
The Linux CPU number judgment command
How did the famine winter pass? Famine winter preparations for the Raiders
10 major optimizations after installing Windows 8 system
XP: Pull out the murderer who occupies the hard disk
Blocking Steam for Win10 Nothing to use Microsoft to bow down