linux上事项mdns

linux上事项mdns,第1张

编译一下通过的概率很小的,基本上都要改一些地方

最常的时缺依赖库,或者依赖库找不到。

所以就算我自己编译过了,也不一定适合你

你把你编译的问题写出来,看看我能不能帮你

mdns嘛。就是zeroconf的协议。水果的。怎么会卡住?

通常是avahi的服务。类似

/etc/init/avahi-daemon.conf

看你什么系统,有些是init.d下。

服务在不同系统是不同的。有sysv upstart等。

使用netstat命令

tcp:

$ sudo netstat -atp

udp:

$ sudo netstat -aup

注:因-p参数需要root权限,因此在命令前必须加入sudo或直接使用root用户执行上述命令。

输出结果如下所示

$ sudo netstat -atp

[sudo] password for user1:

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp0 0 0.0.0.0:sunrpc 0.0.0.0:* LISTEN 695/rpcbind

tcp0 0 0.0.0.0:x11 0.0.0.0:* LISTEN 1053/Xorg

tcp0 0 vm-centos-lp:domain 0.0.0.0:* LISTEN 1339/dnsmasq

tcp0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN 997/sshd

tcp0 0 localhost:smtp 0.0.0.0:* LISTEN 1102/master

tcp0 64 vm-centos-lp:ssh192.168.56.1:spcESTABLISHED 1554/sshd: lipeng [

tcp6 0 0 [::]:sunrpc [::]:* LISTEN 695/rpcbind

tcp6 0 0 [::]:x11[::]:* LISTEN 1053/Xorg

tcp6 0 0 [::]:ftp[::]:* LISTEN 1008/vsftpd

tcp6 0 0 [::]:ssh[::]:* LISTEN 997/sshd

tcp6 0 0 localhost:smtp [::]:* LISTEN 1102/master

[lipeng@vm-centos-lp ~]$ sudo netstat -aup

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

udp0 0 vm-centos-lp:domain 0.0.0.0:* 1339/dnsmasq

udp0 0 0.0.0.0:bootps 0.0.0.0:* 1339/dnsmasq

udp0 0 0.0.0.0:bootpc 0.0.0.0:* 786/dhclient

udp0 0 0.0.0.0:sunrpc 0.0.0.0:* 695/rpcbind

udp0 0 0.0.0.0:xdmcp 0.0.0.0:* 1016/gdm

udp0 0 localhost:323 0.0.0.0:* 685/chronyd

udp0 0 0.0.0.0:23133 0.0.0.0:* 786/dhclient

udp0 0 0.0.0.0:859 0.0.0.0:* 695/rpcbind

udp0 0 0.0.0.0:33731 0.0.0.0:* 682/avahi-daemon: r

udp0 0 0.0.0.0:mdns0.0.0.0:* 682/avahi-daemon: r

udp6 0 0 [::]:sunrpc [::]:* 695/rpcbind

udp6 0 0 [::]:51388 [::]:* 786/dhclient

udp6 0 0 localhost:323 [::]:* 685/chronyd

udp6 0 0 [::]:859[::]:* 695/rpcbind


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7108324.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-01
下一篇2023-04-01

发表评论

登录后才能评论

评论列表(0条)

    保存