无法绑定到127.0.0.1:9050:地址已在使用中。Tor已经在运行吗?


17

我以这种方式安装了Tor:

sudo add-apt-repository ppa:webupd8team/tor-browser
sudo apt-get update
sudo apt-get install tor-browser

我今天在Terminal this:tor中运行,并收到以下错误消息:

Oct 04 19:24:04.461 [notice] Tor v0.2.7.6 (git-605ae665009853bd) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
Oct 04 19:24:04.461 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Oct 04 19:24:04.517 [notice] Read configuration file "/etc/tor/torrc".
Oct 04 19:24:04.574 [notice] Opening Socks listener on 127.0.0.1:9050
Oct 04 19:24:04.574 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Oct 04 19:24:04.575 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Oct 04 19:24:04.575 [err] Reading config failed--see warnings above.

如何解决?

Answers:



13

netstat会告诉您该端口上正在侦听的内容。打开一个终端(按Ctrl+ Alt+ T),然后运行:

sudo netstat -plnt | fgrep 9050

它会告诉您哪个程序正在使用该端口。例如,在我的系统上,它显示:

tcp       0     0 127.0.0.1:9050         0.0.0.0:*              LISTEN     1198/tor

最后,它说在该端口上侦听的程序是tor


感谢您的反馈。是的,它说tor正在使用该端口。但是我却收到了同样的错误消息
一直呆在

6
您可能已经安装tor-browser了第二个Tor软件包。试试看sudo service tor stop,然后看看Tor浏览器是否可以工作。
奥拉西(Olathe)

4

@David Foerster的答案:killall tor不适用于我。
我得到了结果tor: no process found.

新解决方案: sudo killall tor


1

重新启动设备,然后再次运行。端口将成为现实。


不,该端口不会被释放
Tessaracter
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.