tinyproxy.conf
User tinyproxy
Group tinyproxy
Port 3067
Listen 0.0.0.0
Timeout 600
DefaultErrorFile "/usr/local/tinyproxy/share/tinyproxy/default.html"
StatFile "/usr/local/tinyproxy/share/tinyproxy/stats.html"
LogFile "/home/tinyproxy/tinyproxy.log"
LogLevel Info
PidFile "/home/tinyproxy/tinyproxy.pid"
MaxClients 100
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxRequestsPerChild 0
ViaProxyName "tinyproxy"
ConnectPort 443
tinyproxy.sh
yum -y install asciidoc
wget https://github.com/tinyproxy/tinyproxy/releases/download/1.8.4/tinyproxy-1.8.4.tar.gz -O tinyproxy-1.8.4.tar.gz
tar zvxf tinyproxy-1.8.4.tar.gz
cd tinyproxy-1.8.4
./autogen.sh
./configure --enable-transparent --prefix=/usr/local/tinyproxy --enable-debug
make
make install
cp -f tinyproxy.conf /usr/local/tinyproxy/etc/tinyproxy.conf
groupadd tinyproxy
useradd -g tinyproxy tinyproxy
/usr/local/tinyproxy/sbin/tinyproxy
执行:
chmod 777 tinyproxy.sh
./tinyproxy.sh