【已解决】ubuntu出现Can‘t find MMDB, start download错误

#clash 在linux系统中配置时发生错误

根据clash官网的“linux使用教程”进行到第3步启动clash

./clash -d

报以下错误

INFO[0000] Can't find MMDB, start download
FATA[0000] Initial configuration directory error: can't initial MMDB: can't download MMDB: Get "https://cdn.jsdelivr.net/gh/Dreamacro/maxmind-geoip@release/Country.mmdb": proxyconnect tcp: dial tcp 127.0.0.1:7890: connect: connection refused 

 原因:端口占用导致clash无法识别的问题

#解决办法

查看端口是否占用

export | grep -i proxy
declare -x http_proxy="http://127.0.0.1:7890"
declare -x https_proxy="http://127.0.0.1:7890"

 运行完上述指令不返回任何信息,接下来

取消端口占用

unset http_proxy https_proxy 
export | grep -i proxy

完成上述操作,按照官网指令重新下载config.yaml,发现可以下载 config.yaml

 wget -O config.yaml "xxxxxxx为clash提供的网址" 

结果:

正在保存至: “config.yaml”

config.yaml         100%[===================>] 172.22K  1021KB/s    用时 0.2s  

2023-07-14 16:05 已保存 “config.yaml” [176349/176349])

继续按clash网站教程即可

之后每次使用一下代码启用clash

./clash -f config.yaml

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
乘风的头像乘风管理团队
上一篇 2023年12月7日
下一篇 2023年12月7日

相关推荐