xinetd.conf可以说是预设值的设定档。假设这边启动了rsync服务,但是在rsync此服务并没有特别去设定参数,因此在设定值部份就会以xinetd.conf为主。
以下是预设定xinetd.conf
[root@localhost ~]# vim /etc/xinetd.conf
defaults
{
The next two items are intended to be a quick access place to
temporarily enable or disable services.
enabled = #启用
disabled = #禁用
Define general logging characteristics.
log_type = SYSLOG daemon info #登录档的记录服务类型
log_on_failure = HOST #发生错误时需要记录的资讯为主机 (HOST)
log_on_success = PID HOST DURATION EXIT #成功启动或登入时的记录资讯
Define access restriction defaults
no_access =
only_from =
max_load = 0
cps = 50 10 #同一秒内最大连线数为 50 个,超过则暂停 10 秒
instances = 50 #同一服务的最大同时连线数
per_source = 10 # 同一来源的用户端的最大连线数
Address and networking defaults
bind =
mdns = yes
v6only = no #是否仅允许 IPv6
setup environmental attributes
passenv =
groups = yes
umask = 002
Generally, banners are not used. This sets up their global defaults
banner =
banner_fail =
banner_success =
}
includedir /etc/xinetd.d #在/etc/xinetd.d会有更多的设定值
详细内容请参考http://blog.faq-book.com/?p=3344