这是我在尝试启动 tor 时收到的错误,它已经运行良好一个月了,但突然它停止工作了,我试图终止该进程并重新启动它,现在我收到此错误:
Mar 29 12:08:04.057 [notice] Tor 0.4.2.7 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1f, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.4.4.
Mar 29 12:08:04.057 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Mar 29 12:08:04.057 [notice] Read configuration file "/etc/tor/torrc".
Mar 29 12:08:04.058 [warn] Skipping obsolete configuration option "TransListenAddress".
Mar 29 12:08:04.058 [warn] CookieAuthFileGroupReadable is set, but will have no effect: you must specify an explicit CookieAuthFile to have it group-readable.
Mar 29 12:08:04.059 [notice] Opening Socks listener on 127.0.0.1:8080
Mar 29 12:08:04.059 [notice] Opened Socks listener on 127.0.0.1:8080
Mar 29 12:08:04.059 [notice] Opening DNS listener on 127.0.0.1:54
Mar 29 12:08:04.059 [warn] Could not bind to 127.0.0.1:54: Permission denied
Mar 29 12:08:04.059 [notice] Opening Transparent pf/netfilter listener on 127.0.0.1:9040
Mar 29 12:08:04.059 [notice] Opened Transparent pf/netfilter listener on 127.0.0.1:9040
Mar 29 12:08:04.059 [notice] Opening Control listener on 127.0.0.1:9051
Mar 29 12:08:04.059 [notice] Opened Control listener on 127.0.0.1:9051
Mar 29 12:08:04.059 [notice] Closing partially-constructed Socks listener on 127.0.0.1:8080
Mar 29 12:08:04.059 [notice] Closing partially-constructed Transparent pf/netfilter listener on 127.0.0.1:9040
Mar 29 12:08:04.059 [notice] Closing partially-constructed Control listener on 127.0.0.1:9051
Mar 29 12:08:04.059 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Mar 29 12:08:04.059 [err] Reading config failed--see warnings above.
我怎样才能解决这个问题?
答案1
Mar 29 12:08:04.059 [warn] Could not bind to 127.0.0.1:54: Permission denied
端口 54 已被其他进程使用。如果已有旧 TOR 进程使用该端口,请使用sudo pkill tor
将其移除。如果没有,则表明其他进程正在使用该端口。您可以使用 netstat 或其他命令检查端口可用性。