apt update
apt upgrade
apt-get install build-essential
apt-get install autoconf
wget https://github.com/tinyproxy/tinyproxy/releases/download/1.11.0/tinyproxy-1.11.0.tar.bz2
tar -jxvf tinyproxy-1.11.0.tar.bz2
cd tinyproxy-1.11.0/
./configure
make&&make install
ln -s /usr/local/etc/tinyproxy /etc/
ls -la /etc/ | grep tinyproxy
cat /etc/tinyproxy/tinyproxy.conf | grep -v “^#\|^$”
tinyproxy -d -c /etc/tinyproxy/tinyproxy.conf
nano /lib/systemd/system/tinyproxy.service
(保存ctrl+O;推出ctrl+X)
systemctl enable tinyproxy.service
systemctl start tinyproxy.service
systemctl status tinyproxy.service
netstat -napt | grep LISTEN | grep tinyproxy
准备pid和日志目录
mkdir /var/run/tinyproxy/
mkdir /var/log/tinyproxy/
chown -R nobody:nogroup /var/run/tinyproxy/
chown -R nobody:nogroup /var/log/tinyproxy/
将pid和日志参数添加到tinyproxy配置中
vi /etc/tinyproxy/tinyproxy.conf
添加:
LogFile "/var/log/tinyproxy/tinyproxy.log"
PidFile "/var/run/tinyproxy/tinyproxy.pid"
设置授权:
问题:
修改etc目录下的Tinyproxy配置文件,找到Allow 127.0.0.1,在之后添加允许的IP即可。