[FreeBSD]
FreeBSD中xinetd服务无法启动,求解??????
1、用ports安装的xinetd,第一次启动日志中报如下错误
Jul 26 10:32:26 FreeBSD xinetd[83450]: open( /usr/local/etc/xinetd.conf ) failed: No such file or directory (errno = 2)
Jul 26 10:32:26 FreeBSD xinetd[83450]: 83450 {init_services} couldn't get configuration. Exiting...
2、在源码包中把配置文件放到指定位置
#pwd
#/usr/ports/security/xinetd/work/xinetd-2.3.14/contrib
#ls
#empty.conf xinetd xinetd.conf xinetd.d
# cp -R xinetd.d /usr/local/etc/
# cp xinetd.conf /usr/local/etc/
# vi /usr/local/etc/xinetd.conf
修改includedir /etc/xinetd.d
为includedir /usr/local/etc/xinetd.d
再次启动服务/usr/local/etc/rc.d/xinetd start
报如下错误
Jul 26 10:56:37 FreeBSD xinetd[87216]: 87216 {init_services} no services. Exiting...