3.5 一些命名服務是必須的。但是由于glibc和命名服務轉換庫的存在,那些庫是必不可少不是那么一目了然的。至于其中的細節,你可以使用命令“man nsswitch”來察看。盡管在我的機器上運行著網絡信息服務(NIS),但我還是選擇依賴于文件和域名服務(DNS)。注意:libresolve庫也是必需的,在安裝了PHP之后,這種需求就相當明顯了。
ROOT# cp -pi /lib/libnss_files.so.2 lib/
ROOT# cp -pi /lib/libnss_dns.so.2 lib/
3.6 我們將需要三個文件來完成對命名服務的配置。
這些文件的內容決定于你IP和DNS設置。在這里我們假定web服務器的名字是ns.m.net.home,它的IP地址是:192.168.196.2(實際上它也是我的名字服務器)
# ---- Contents ofetc/nsswitch.conf ----#
passwd: files
shadow: files
group: files
hosts: files dns
# ---- Contents ofetc/resolv.conf ----#
domain mynet.home
## use the IP address of your naming server
## if bind is not installed on your web server
#nameserver 192.168.196.xxx
## use this if your web server is a (caching) name server
文章來源于領測軟件測試網 http://www.kjueaiud.com/