吹静静

欢迎QQ交流:592590682

注:基于xinetd的服务因为启动比较慢,被应用的越来越少。

一、安装xinetd

[root@localhost ~]# yum install xinetd -y

[root@localhost ~]# chkconfig --list

二、xinetd服务的启动

[root@localhost ~]# vi /etc/xinetd.d/rsync

service rsync            服务的名称为telnet
{
        disable = yes         服务不启动
        flags           = IPv6         标志为REUSE,设定TCP/IP socket可重用
        socket_type     = stream    使用TCP协议数据包
        wait            = no         允许多个连接同时链接
        user            = root        启动服务的用户为root
        server          = /usr/bin/rsync  服务的启动程序
        server_args     = --daemon   
        log_on_failure  += USERID    登陆失败后,记录用户的ID
}

重启xinted服务

[root@localhost ~]# service xinetd restart

三、xinted服务的自启动

[root@localhost ~]# chkconfig rsync on

ntsysv

注:xinted服务的自启动和启动是混和的,自启动同时也会启动。

 

posted on 2018-03-13 18:42  吹静静  阅读(1030)  评论(0编辑  收藏  举报