如果希望用 FNS 命令来注册服务器,而且您的位置上已安装了 FNS,则请使用如下命令将指定的 URL 注册成为您所在组织(域)的文档服务器:
# fnbind -r thisorgunit/server/answerbook2 onc_answerbook2 \ onc_addr_answerbook2 server_url |
其中,server_url 是到达该服务器的完整有效 URL(例如:http://imaserver.eng.sun.com:8888/)。
% fnlookup -v thisorgunit/service/answerbook2 |
它返回与以下内容相似的已注册服务器列表:
Reference type: onc_answerbook2 Address type: onc_addr_answerbook2 length: 19 data: 0x68 0x74 0x74 0x70 0x3a 0x2f 0x2f 0x61 0x6e 0x73 http://ans 0x77 0x65 0x72 0x73 0x3a 0x38 0x38 0x38 0x38 wers:8888 |
本例中,注册的服务器为 http://answers:8888/。
如果得到类似如下的反应,则没有用 FNS 注册的文档服务器:
Lookup of 'thisorgunit/service/answerbook2' failed: \ Name Not Found: 'answerbook2' |
有关 FNS 的详细信息(包括如何安装),参见 FNS 文档。