mpb*_*mpb 9 debian systemd beagleboneblack
我正在配置运行来自 BeagleBone.org 的 Debian 映像的 BeableBone Black。
我可以看到init(即 systemd)正在侦听端口1880和3000.
debian@beaglebone:~$ sudo netstat -taunp | grep LISTEN
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 978/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 852/sshd
tcp6 0 0 :::53 :::* LISTEN 978/dnsmasq
tcp6 0 0 :::22 :::* LISTEN 852/sshd
tcp6 0 0 :::1880 :::* LISTEN 1/init
tcp6 0 0 :::3000 :::* LISTEN 1/init
Run Code Online (Sandbox Code Playgroud)
以前,init也在侦听端口 80。我使用来自/sf/answers/1159962261/ 的这些命令禁用了它:
systemctl disable bonescript.service
systemctl disable bonescript.socket
systemctl disable bonescript-autorun.service
Run Code Online (Sandbox Code Playgroud)
我怎样才能得到系统告诉我哪些服务在端口上侦听1880和3000?