欢迎光临
我们一直在努力

centos7 安装polipo

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

赞(0) 打赏
未经允许不得转载:运维那些事 » centos7 安装polipo

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏