Linux服务器安装tor

2021-03-05  本文已影响0人  SuperGino

Ubuntu系统

sudo apt update
sudo apt install tor

Centos系统

yum install tor

如果没有源,添加阿里云的yum源再尝试上面安装命令

cd /etc/yum/repos.d
sudo wget http://mirrors.aliyun.com/repo/epel-7.repo
sudo wget http://mirrors.163.com/.help/CentOS7-Base-163.repo // 网易
sudo wget http://mirrors.aliyun.com/repo/Centos-7.repo // 阿里云
yum clean all
yum makecache

如果提示HTTP请求失败404,打开 CentOS-Base.repo 发现其中的:
http://mirrors.aliyun.com/centos/releasever/os/basearch/
等URL通过http的形式根本无法访问,此时将变量releasever改为7(我的系统是centos 7),发现可以访问了,顺便将所有的变量releasever都改为7。

上一篇 下一篇

猜你喜欢

热点阅读