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

Bil*_*adj 22 tor 16.04

我以这种方式安装 Tor:

sudo add-apt-repository ppa:webupd8team/tor-browser
sudo apt-get update
sudo apt-get install tor-browser
Run Code Online (Sandbox Code Playgroud)

我今天在终端中运行这个:$ 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.
Run Code Online (Sandbox Code Playgroud)

如何解决这个问题?

小智 24

什么对我有用:

killall tor
Run Code Online (Sandbox Code Playgroud)

  • 您需要根访问权限 (2认同)

Ola*_*the 15

netstat会告诉你在那个端口上监听了什么。打开终端(按Ctrl+ Alt+ T),然后运行:

sudo netstat -plnt | fgrep 9050
Run Code Online (Sandbox Code Playgroud)

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

tcp       0     0 127.0.0.1:9050         0.0.0.0:*              LISTEN     1198/tor
Run Code Online (Sandbox Code Playgroud)

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

  • 你可能已经安装了 `tor-browser` 和第二个 Tor 包。尝试“sudo service to stop”,然后查看 Tor 浏览器是否工作。 (7认同)

小智 5

@David Foerster 的回答:killall tor对我不起作用。
我得到了结果tor: no process found.

新解决方案: sudo killall tor