我在尝试使用 vidalia 运行 tor 时遇到这些错误
Apr 19 21:55:15.371 [Notice] Tor v0.2.1.30. This is experimental software. Do not rely on it for strong anonymity. (Running on Linux i686)
Apr 19 21:55:15.372 [Notice] Initialized libevent version 1.4.13-stable using method epoll. Good.
Apr 19 21:55:15.373 [Notice] Opening Socks listener on 127.0.0.1:9050
Apr 19 21:55:15.373 [Warning] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Apr 19 21:55:15.373 [Warning] Failed to parse/validate config: Failed to bind one of the listener ports.
Apr 19 21:55:15.373 [Error] Reading config failed--see warnings above.
我认为tor
它没有运行。以下是我的本地主机的 nmap 扫描
Starting Nmap 5.21 ( http://nmap.org ) at 2011-04-19 21:59 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000050s latency).
Hostname localhost resolves to 2 IPs. Only scanned 127.0.0.1
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 989 closed ports
PORT STATE SERVICE
22/tcp open ssh
53/tcp open domain
80/tcp open http
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
3128/tcp open squid-http
3306/tcp open mysql
9000/tcp open cslistener
9050/tcp open tor-socks
10000/tcp open snet-sensor-mgmt
我看到tor-socks
它正在运行,这可能是问题的原因。我该如何阻止它启动?我想使用vidalia
它来监控正在发生的事情。
答案1
较新版本的Tor有一个文件/etc/default/tor.vidalia
。它包含三行:
if [ -x /usr/bin/vidalia ]; then
RUN_DAEMON=yes
fi
您可以将选项更改为no
。这将阻止作为守护进程启动。相反,当您启动 Vidalia 时,Tor 将启动。
答案2
我认为这个条件是不必要的。如果你查看 /etc/default/tor,你会发现 tor.vidalia 文件不会被获取,除非通过相同的测试。
这个片段解决了我的问题的一部分,但不是全部,因此,免责声明:我仍然没有一个可行的设置。
答案3
尝试这个:
进入设置>高级>Tor 控制并勾选使用 TCP 连接(控制端口),地址为 127.0.0.1:9051 。
对我来说很好用