這篇回覆介紹了如何在 Archlinux 上使用 systemd 來開啟 avahi-daemon,使得區域網路內的電腦可以用 .local 來連線到其它電腦。
- pacman -S avahi nss-mdnsInstalls the Avahi services daemon and the Multicast DNS resolver. nano /etc/nsswitch.conf This file tells the C library how to obtain name-service information.
- Change the line hosts: files dns myhostnametohosts: files mdns_minimal [NOTFOUND=return] dns myhostname, save and exit.
- systemctl start avahi-daemonStarts the Avahi service manually since we’re already booted.look for errors)
- systemctl enable avahi-daemonEnables the Avahi service on boot.
