<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<!-- Customize this to get a different name for your server in the Finder. -->
<name replace-wildcards="yes">MyHostname</name>
<service>
<type>_device-info._tcp</type>
<host-name>myhostname.mydomain.com</host-name>
<port>0</port>
<!-- Customize this to get a different icon in the Finder. -->
<txt-record>model=RackMac</txt-record>
</service>
<service>
<type>_afpovertcp._tcp</type>
<host-name>myhostname.mydomain.com</host-name>
<port>548</port>
</service>
</service-group>
我通过尝试调整 .config 文件找到了解决方案!
/etc/avahi/services/ 包含 *.services,如 afpd.services
复制 afpd.servicies 以匹配您要宣传的每台机器:server1.service、server2.service、...
<host-name></host-name>
在每个 .service 中添加标签*。服务 :
重启: /etc/init.d/avahi restart