centos7 安装polipo

  • A+
所属分类:Linux

安装git :

yum install git

下载

git clone https://github.com/jech/polipo.git

cd polipo

(可选)使用发布的版本

git checkout polipo-1.1.1

安装:

make all

su -c 'make install'

若,make cc : 命令未找到:

make install gcc

make install gcc-c++

若,make : makeinfo : 命令未找到:

yum install texinfo

建立配置文件:

mkdir /opt/polipo nano /opt/polipo/config

添加如下内容:
touch /var/log/polipo.log

logSyslog = true
socksParentProxy = "localhost:1080"
socksProxyType = socks5
logFile = /var/log/polipo.log
logLevel = 4
proxyAddress = "0.0.0.0"
proxyPort = 8123
chunkHighMark = 50331648
objectHighMark = 16384

serverMaxSlots = 64
serverSlots = 16
serverSlots1 = 32
新建启动脚本
vim /usr/lib/systemd/system/polipo.service

Unit]
Description=polipo web proxy
After=network.target

[Service]
Type=simple
WorkingDirectory=/tmp
User=root
Group=root
ExecStart=/usr/soft/polipo/polipo -c /opt/polipo/config
Restart=always
SyslogIdentifier=Polipo

[Install]
WantedBy=multi-user.target

启动
systemctl start polipo.service

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: