个人工具

Quick HOWTO : Ch16 : Telnet, TFTP, and xinetd/zh

来自Ubuntu中文

Lipeng8413讨论 | 贡献2008年6月3日 (二) 19:42的版本 (新页面: {{Translation}} {{From|http://wiki.ubuntu.org.cn/Quick_HOWTO_:_Ch16_:_Telnet%2C_TFTP%2C_and_xinetd}} {{Translator|lipeng}} {{Languages|Quick_HOWTO_:_Ch16_:_Telnet%2C_TFTP%2C_and_xinetd...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


简介

许多linux网络应用程序并不依靠它们自己向特定tcp端口提供访问限制或绑定;取而代之的是它们经常将大量的这种任务交给一个专门为这种目的而生的程序套件来负责;这个套件就是xinetd。

管理xinetd程序

Fedora linux默然下已安装xinetd并将/etc/xinetd.conf作为它的主配置文件。幸运的是你不必经常编辑此文件,这样xinetd每天的工作就是启动和停止xinetd管理的程序。

控制 xinetd

启动和停止xinetd守护进程由/etc/init.d目录下的脚本控制。在启动时的行为由chkconfig控制。

在系统启动后,你可以使用下面命令来启动/停止/重启 xinetd进程:

[root@bigboy tmp]# service xinetd start
[root@bigboy tmp]# service xinetd stop
[root@bigboy tmp]# service xinetd restart

为了让xinetd在机器启动是运行,使用chconfig命令:

[root@bigboy tmp]# chkconfig xinetd on

控制 xinetd管理的应用程序

Xinetd-managed applications all store their configuration files in the /etc/xinetd.d directory. Each configuration file has a disable statement that you can set to yes or no. This governs whether xinetd is allowed to start them or not.

You don't have to edit these files to activate or deactivate the application. The chkconfig command does that for you automatically will also stops or starts the application accordingly too! Here is an example of the activation and deactivation of the Samba SWAT web GUI management application.

[root@bigboy tmp]# chkconfig swat on
[root@bigboy tmp]# chkconfig swat off