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