CentOS 7 安装 Tor

只有yum没有apt-get怎么搭建tor啊?@zjy在<使用Tor的匿名Python爬虫>的留言。

#1 方法一:添加EPEL源,然后安装Tor

#2 方法二:添加torproject源,然后安装Tor

添加源(http://deb.torproject.org/torproject.org-被墙):

写入如下内容:

注意:这个源和EPEL源冲突,只能选择一个使用。

#3 方法三:从源码编译安装Tor

  • https://www.torproject.org/docs/tor-doc-unix.html.en

相关文章

《CentOS 7 安装 Tor》有1个想法

  1. 您好,按照教程,tor在centos下安装成功(不确定,出现的界面和您的一样):
    ============================这是tor启动=====================
    Apr 23 08:30:40.797 [notice] Tor 0.2.9.10 (git-1f6c8eda0073f464) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1e-fips and Zlib 1.2.3.
    Apr 23 08:30:40.797 [notice] Tor can’t help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
    Apr 23 08:30:40.797 [notice] Read configuration file “/etc/tor/torrc”.
    Apr 23 08:30:40.802 [notice] I think we have 24 CPUS, but only 1 of them are available. Telling Tor to only use 1. You can override this with the NumCPUs option
    Apr 23 08:30:40.802 [notice] Opening Socks listener on 127.0.0.1:9050
    Apr 23 08:30:40.802 [notice] Opening Control listener on 127.0.0.1:9000
    Apr 23 08:30:40.802 [notice] Opening Control listener on /var/run/tor/control
    Apr 23 08:30:40.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
    Apr 23 08:30:41.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
    Apr 23 08:30:41.000 [warn] You are running Tor as root. You don’t need to, and you probably shouldn’t.
    Apr 23 08:30:41.000 [notice] Bootstrapped 0%: Starting
    Apr 23 08:30:42.000 [notice] Bootstrapped 80%: Connecting to the Tor network
    Apr 23 08:30:42.000 [notice] Bootstrapped 85%: Finishing handshake with first hop
    Apr 23 08:30:43.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
    Apr 23 08:30:44.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
    Apr 23 08:30:44.000 [notice] Bootstrapped 100%: Done
    ============================这是tor启动=====================
    现在有几个不懂的地方,搜索之后还是不知道怎么弄,特此向您请教:
    第一:我怎么测试tor已经运行成功
    第二:按照http://nladuo.github.io/2016/07/17/python%E4%B8%AD%E4%BD%BF%E7%94%A8tor%E4%BB%A3%E7%90%86/这个网址的介绍,其中
    import requesocks 貌似已经没有了,说白了,我不懂怎么做到python爬虫变换ip,按照教程,出不来他们给出的效果。我怀疑是tor这个配置有问题,但界面像您教程中的一样。
    第三:我想配合shandowsockes,实现ip不断更换,我现在有自己的vpn

发表评论

电子邮件地址不会被公开。 必填项已用*标注