Rsync既在xinetd.conf又在xinetd.d/rsync.conf中写了配置,两边配置不一样,究竟哪个生效?
比如,我在xinetd.conf中最后这么写:
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
includedir /etc/xinetd.d
在/etc/xinetd.d/rsync.conf中这么写:
service rsync
{
disable = yes
flags = IPv6
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
最后是哪个生效了?为什么?
lewlss
9 years, 7 months ago