CentOS 8 dnf proxy settings

編輯 /etc/dnf/dnf.conf 檔案

# vi /etc/dnf/dnf.conf
proxy=http://192.168.xx.xx:3128

CentOS 7 yum proxy settings :

編輯 /etc/yum.conf 檔案

# vi /etc/yum.conf
proxy=http://192.168.xx.xx:3128

在更新前先測試一下 proxy 是不是能正常運作

# curl https://ip.me -x http://192.168.xx.xx:3128
202.95.x.x

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.