리눅스 xinetd 편집하기
IT위키
편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
3번째 줄: | 3번째 줄: | ||
==주요 구성== | ==주요 구성== | ||
/etc/xinetd : 메인 설정파일 | |||
/etc/xinetd.d : 슈퍼데몬에 의해 제어되는 서비스 파일이 위치하는 디렉처리 | |||
/etc/rc.d/init.d/xinetd : xinetd를 제어하는 데몬 스크립트. start, stop, restart 등 사용 | |||
==xinetd.conf== | ==xinetd.conf== | ||
===설정파일 샘플=== | |||
<pre class='shell'> | |||
# | |||
# This is the master xinetd configuration file. Settings in the | |||
# default section will be inherited by all service configurations | |||
# unless explicitly overridden in the service configuration. See | |||
# xinetd.conf in the man pages for a more detailed explanation of | |||
# these attributes. | |||
defaults | defaults | ||
{ | { | ||
# The next two items are intended to be a quick access place to | |||
# temporarily enable or disable services. | |||
# | |||
# enabled = | |||
# disabled = | # disabled = | ||
# Define general logging characteristics. | |||
log_type = SYSLOG daemon info | log_type = SYSLOG daemon info | ||
log_on_failure = HOST | log_on_failure = HOST | ||
log_on_success = PID HOST DURATION EXIT | log_on_success = PID HOST DURATION EXIT | ||
# Define access restriction defaults | |||
# | |||
# no_access = | |||
# only_from = | |||
# max_load = 0 | |||
cps = 50 10 | cps = 50 10 | ||
instances = 50 | instances = 50 | ||
per_source = 10 | per_source = 10 | ||
# Address and networking defaults | |||
# | |||
# bind = | |||
# mdns = yes | |||
v6only = no | v6only = no | ||
# setup environmental attributes | |||
# | |||
# passenv = | |||
groups = yes | groups = yes | ||
umask = 002 | umask = 002 | ||
# Generally, banners are not used. This sets up their global defaults | |||
# | |||
# banner = | |||
# banner_fail = | |||
# banner_success = | |||
} | } | ||
</pre> | </pre> | ||
30번째 줄: | 61번째 줄: | ||
===설정 항목=== | ===설정 항목=== | ||
* | *log_type | ||
**SYSLOG와 FILE 두 가지 설정이 가능하다. | **SYSLOG와 FILE 두 가지 설정이 가능하다. | ||
**로그 기록을 syslog에 위임 할지, 별도 파일로 지정할지 선택한다. | **로그 기록을 syslog에 위임 할지, 별도 파일로 지정할지 선택한다. | ||
<pre class='shell'> | |||
# log_type = SYSLOG [facility] [로그레벨] | |||
log_type = SYSLOG daemon info | |||
</pre> | |||
<pre class='shell'> | |||
# log_type = FILE [파일명] | |||
log_type = FILE /var/logs/xinetd.log | |||
</pre> | |||
= | |||