Linux上的avahi-daemon Service服务

Avahi守护进程是在Linux客户端上实现Zeroconf服务发现的软件。它支持DNS服务发现及DNS组播规范,允许用户程序通过D-Bus接收网络服务通知。Avahi还提供多种语言绑定,并已集成到GNOME和KDE等主要桌面组件中。
avahi-daemon是一种Linux操作系统上运行在客户机上实施查找基于网络的Zeroconf service的服务守护进程。 该服务可以为Zeroconf网络实现DNS服务发现及DNS组播规范。 用户程序通过Linux D-Bus信息传递接收发现到网络服务和资源的通知。 该守护进程配合缓存用户程序的答复,以帮助减少因答复而产生的网络流量。       详见以下描述:  

Description

The avahi-daemon Linux service runs on client machines to perform network-based Zeroconf service discovery. Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Networking.  User applications receive notice of discovered network services and resources using the Linux D-Bus message passing. The daemon coordinates application efforts in caching replies, helping minimize network traffic. Avahi provides a set of language bindings, including Python and Mono.  Because of its modularized architecture, Avahi is already integrated in major desktop components like GNOME's Virtual File System or KDE's input/output architecture. Refer http://avahi.org/ for further specifications. The avahi RPM package provides the /usr/sbin/avahi-daemon daemon and its configuration files.

Nature

This is a service to run the avahi-daemon(8) daemon.

Service Control

To manage the avahi-daemon service on demand, use the service(8) tool or run the /etc/init.d/avahi-daemon script directly:
# /sbin/service avahi-daemon help Usage: /etc/init.d/avahi-daemon {start|stop|status|restart|condrestart} # /etc/init.d/avahi-daemon help Usage: /etc/init.d/avahi-daemon {start|stop|status|restart|condrestart}
The available commands are:
CommandDescription
startStart the avahi-daemon(8) daemon.
stopStop the avahi-daemon(8) daemon.
statusReport if the avahi-daemon(8) daemon is running.
restartEquivalent to a stop and then a start command sequence.
condrestartIf the avahi-daemon(8) daemon is currently running, this is the same as a restart command. If the daemon is not running, no action is taken. Often used in RPM package installation to avoid starting a service not already running.

Configuration

To manage the avahi-daemon service at boot time, use chkconfig(8) tool:
# /sbin/chkconfig --list avahi-daemon avahi-daemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off # /sbin/chkconfig avahi-daemon on # /sbin/chkconfig --list avahi-daemon avahi-daemon 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Configuration file /etc/avahi/avahi-daemon.conf
# $Id: avahi-daemon.conf 1155 2006-02-22 22:54:56Z lennart $ # # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA.# See avahi-daemon.conf(5) for more information on this configuration # file![server] #host-name=foo #domain-name=local browse-domains=0pointer.de, zeroconf.org use-ipv4=yes use-ipv6=yes #check-response-ttl=no #use-iff-running=no #enable-dbus=yes #disallow-other-stacks=no #allow-point-to-point=no[wide-area] enable-wide-area=yes [publish] #disable-publishing=no #disable-user-service-publishing=no #add-service-cookie=yes #publish-addresses=yes #publish-hinfo=yes #publish-workstation=yes #publish-domain=yes #publish-dns-servers=192.168.50.1, 192.168.50.2 #publish-resolv-conf-dns-servers=yes [reflector] #enable-reflector=no #reflect-ipv=no [rlimits] #rlimit-as= rlimit-core=0 rlimit-data=4194304 rlimit-fsize=0 rlimit-nofile=30 rlimit-stack=4194304 rlimit-nproc=3

Oracle Enterprise Linux Version(s)

  • OEL 5

Notes

The AVAHI project is a free implementation of the former Apple Bonjour project and the subsequent Zeroconf project.

References

man 8 avahi-daemon man 5 avahi-daemon.conf http://avahi.org/ http://en.wikipedia.org/wiki/Avahi_%28software%29

转载于:https://www.cnblogs.com/macleanoracle/archive/2013/03/19/2968143.html

root@evb-ast2600:~# systemctl status avahi-daemon * avahi-daemon.service - Avahi mDNS/DNS-SD Stack Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; preset: enabled) Active: active (running) since Fri 2024-12-20 22:56:52 UTC; 4h 31min ago Invocation: 3fd1a6a64dd14f4a8212acd8ef424b92 TriggeredBy: * avahi-daemon.socket Main PID: 231 (avahi-daemon) Status: "avahi-daemon 0.8 starting up." CPU: 34.480s CGroup: /system.slice/avahi-daemon.service |-231 "avahi-daemon: running [evb-ast2600.local]" `-319 "avahi-daemon: chroot helper" Dec 20 22:58:33 evb-ast2600 avahi-daemon[231]: Interface eth0.IPv4 no longer relevant for mDNS. Dec 20 22:58:33 evb-ast2600 avahi-daemon[231]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.20. Dec 20 22:58:33 evb-ast2600 avahi-daemon[231]: New relevant interface eth0.IPv4 for mDNS. Dec 20 22:58:33 evb-ast2600 avahi-daemon[231]: Registering new address record for 192.168.1.20 on eth0.IPv4. Dec 20 22:58:45 evb-ast2600 avahi-daemon[231]: Withdrawing address record for 192.168.1.20 on eth0. Dec 20 22:58:45 evb-ast2600 avahi-daemon[231]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.20. Dec 20 22:58:45 evb-ast2600 avahi-daemon[231]: Interface eth0.IPv4 no longer relevant for mDNS. Dec 20 22:58:45 evb-ast2600 avahi-daemon[231]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.20. Dec 20 22:58:45 evb-ast2600 avahi-daemon[231]: New relevant interface eth0.IPv4 for mDNS. Dec 20 22:58:45 evb-ast2600 avahi-daemon[231]: Registering new address record for 192.168.1.20 on eth0.IPv4. root@evb-ast2600:~#
03-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值