technical notes

禁用 avahi-daemon

2019-01-24 runsisi#linux

在机器上莫名出现 5353 的监听端口,根据分析是 avahi-daemon 服务,由于该服务没有任何意义,可以直接禁用:

~# systemctl mask avahi-daemon.socket avahi-daemon.service
Created symlink from /etc/systemd/system/avahi-daemon.socket to /dev/null.
Created symlink from /etc/systemd/system/avahi-daemon.service to /dev/null.
~# systemctl disable avahi-daemon.socket avahi-daemon.service
Removed symlink /etc/systemd/system/dbus-org.freedesktop.Avahi.service.
Removed symlink /etc/systemd/system/
Removed symlink /etc/systemd/system/
~# systemctl stop avahi-daemon.socket
~# systemctl stop avahi-daemon.service


What is the purpose of avahi on a RHEL 7 server?

Linux Avahi Daemon Tutorial With Examples

systemd.socket — Socket unit configuration