Linux上的avahi-daemon Service服务
早上登陆备份服务器,查看日志的时候发现大量这种报错:
这台备份服务器系统是rhel6.0,安装的时候,把一些不必要的服务都给禁了,但不知道这个avhi-daemon是怎么冒出来的。后来在网上找到相关资料如下:
avahi-daemon是一种Linux操作系统上运行在客户机上实施查找基于网络的Zeroconf service的服务守护进程。 该服务可以为Zeroconf网络实现DNS服务发现及DNS组播规范。 用户程序通过Linux D-Bus信息传递接收发现到网络服务和资源的通知。 该守护进程配合缓存用户程序的答复,以帮助减少因答复而产生的网络流量。
详见以下描述:
Description
The avahi-daemon Linux service runs on client machines to perform network-basedZeroconf 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:
Command
Description
start
Start the avahi-daemon(8) daemon.
stop
Stop the avahi-daemon(8) daemon.
status
Report if the avahi-daemon(8) daemon is running.
restart
Equivalent to a stop and then a start command sequence.
condrestart
If 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.
相关信息:
Zeroconf
Zero configuration networking(zeroconf)零配置网络服务规范,是一种用于自动生成可用IP地址的网络技术,不需要额外的手动配置和专属的配置服务器。
“零 配置网络服务”的目标,是让非专业用户也能便捷的连接各种网络设备,例如计算机,打印机等。整个搭建网络的过程都是通过程式自动化实现。如果没有 zeroconf,用户必须手动配置一些服务,例如DHCP、DNS,计算机网络的其他设置等。这些对非技术用户和新用户们来说是很难的事情。
Zeroconf规范的提出者是Apple公司.
Avahi
Avahi 是Zeroconf规范的开源实现,常见使用在Linux上。包含了一整套多播DNS(multicastDNS)/DNS-SD网络服务的实现。它使用 的发布授权是LGPL。Zeroconf规范的另一个实现是Apple公司的Bonjour程式。Avahi和Bonjour相互兼容(废话,都走同一个 规范标准嘛,就象IE,Firefox,chrome都能跑HTTP1.1一样)。
Avahi允许程序在不需要进行手动网络配置的情况 下,在一个本地网络中发布和获知各种服务和主机。例如,当某用户把他的计算机接入到某个局域网时,如果他的机器运行有Avahi服务,则Avahi程式自 动广播,从而发现网络中可用的打印机、共享文件和可相互聊天的其他用户。这有点象他正在接收局域网中的各种网络广告一样。
Linux下系统实际启动的进程名,是avahi-daemon
除非你有兼容的设备或使用 zeroconf 协议的服务,否则应该关闭它。
如果你用不到 把该服务直接关闭
/etc/init.d/avahi-daemon stop or service avahi-daemon stop
总结一下,avahi-daemon这个进程的做用如上,之前的网友已然说的十分清楚,但是要它发挥作用需要设备支持。现在在我们备份服务器上肯定是用不到这个服务功能了,所以,这里果断 # service avahi-daemon stop # chkconfig avahi-daemon off 即可!
原文链接:http://www.178-go.com/archives/avahi-daemon-service-on-linux.html
这台备份服务器系统是rhel6.0,安装的时候,把一些不必要的服务都给禁了,但不知道这个avhi-daemon是怎么冒出来的。后来在网上找到相关资料如下:
avahi-daemon是一种Linux操作系统上运行在客户机上实施查找基于网络的Zeroconf service的服务守护进程。 该服务可以为Zeroconf网络实现DNS服务发现及DNS组播规范。 用户程序通过Linux D-Bus信息传递接收发现到网络服务和资源的通知。 该守护进程配合缓存用户程序的答复,以帮助减少因答复而产生的网络流量。
详见以下描述:
Description
The avahi-daemon Linux service runs on client machines to perform network-basedZeroconf 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:
Command
Description
start
Start the avahi-daemon(8) daemon.
stop
Stop the avahi-daemon(8) daemon.
status
Report if the avahi-daemon(8) daemon is running.
restart
Equivalent to a stop and then a start command sequence.
condrestart
If 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.
相关信息:
Zeroconf
Zero configuration networking(zeroconf)零配置网络服务规范,是一种用于自动生成可用IP地址的网络技术,不需要额外的手动配置和专属的配置服务器。
“零 配置网络服务”的目标,是让非专业用户也能便捷的连接各种网络设备,例如计算机,打印机等。整个搭建网络的过程都是通过程式自动化实现。如果没有 zeroconf,用户必须手动配置一些服务,例如DHCP、DNS,计算机网络的其他设置等。这些对非技术用户和新用户们来说是很难的事情。
Zeroconf规范的提出者是Apple公司.
Avahi
Avahi 是Zeroconf规范的开源实现,常见使用在Linux上。包含了一整套多播DNS(multicastDNS)/DNS-SD网络服务的实现。它使用 的发布授权是LGPL。Zeroconf规范的另一个实现是Apple公司的Bonjour程式。Avahi和Bonjour相互兼容(废话,都走同一个 规范标准嘛,就象IE,Firefox,chrome都能跑HTTP1.1一样)。
Avahi允许程序在不需要进行手动网络配置的情况 下,在一个本地网络中发布和获知各种服务和主机。例如,当某用户把他的计算机接入到某个局域网时,如果他的机器运行有Avahi服务,则Avahi程式自 动广播,从而发现网络中可用的打印机、共享文件和可相互聊天的其他用户。这有点象他正在接收局域网中的各种网络广告一样。
Linux下系统实际启动的进程名,是avahi-daemon
除非你有兼容的设备或使用 zeroconf 协议的服务,否则应该关闭它。
如果你用不到 把该服务直接关闭
/etc/init.d/avahi-daemon stop or service avahi-daemon stop
总结一下,avahi-daemon这个进程的做用如上,之前的网友已然说的十分清楚,但是要它发挥作用需要设备支持。现在在我们备份服务器上肯定是用不到这个服务功能了,所以,这里果断 # service avahi-daemon stop # chkconfig avahi-daemon off 即可!
原文链接:http://www.178-go.com/archives/avahi-daemon-service-on-linux.html
> 我来回应
热门话题 · · · · · · ( 去话题广场 )
- 想做的事,别等“以后”1.0万+篇内容 · 525.4万次浏览
- 中年人感悟特别多675篇内容 · 269.4万次浏览
- 让人生变开阔的方法1.0万+篇内容 · 48.1万次浏览
- 哪个瞬间你发现自己被琐碎地爱着?371篇内容 · 99.1万次浏览
- 重新养一遍自己,可真好啊2058篇内容 · 281.5万次浏览
- 活动|体制内工作带给我的喜怒哀乐17篇内容 · 5658次浏览
- 你有哪些“终不似,少年游”的经历?3229篇内容 · 85.6万次浏览
- 你有哪些“当时只道是寻常”的经历?5175篇内容 · 19.5万次浏览