基于xinetd服务的管理

注:基于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服务的自启动和启动是混和的,自启动同时也会启动。

 

转载于:https://www.cnblogs.com/chuijingjing/articles/8560269.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值