最新消息:Laov博客专业为广大站长朋友提供网站源码

centos7 安装polipo

Linux LAOV 235浏览 0评论

安装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

转载请注明:LAOV博客 » centos7 安装polipo

发表我的评论
取消评论
表情