美文网首页
Linux服务器安装tor

Linux服务器安装tor

作者: SuperGino | 来源:发表于2021-03-05 11:54 被阅读0次

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。

相关文章

网友评论

      本文标题:Linux服务器安装tor

      本文链接:https://www.haomeiwen.com/subject/scerqltx.html