yum install nscd
使用vi編輯器修改配置:vi /etc/nscd.conf另起一行添加:enable-cache hosts yes如圖:編輯器
vi /etc/nscd.conf
enable-cache hosts yes
service nscd startspa
service nscd start