在 WSL2 上的 Ubuntu 上运行 nessu

san*_*ath 1 nessus windows-subsystem-for-linux wsl-2

我无法使用以下命令在 WSL 中启动 nessus:

/bin/systemctl start nessusd.service
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Run Code Online (Sandbox Code Playgroud)

小智 5

使用sudo /opt/nessus/sbin/nessus-service。Systemd 在 WSL2 中不可用,因此您需要使用旧的 init 样式脚本(如果可用)。