通过xinetd服务管理 rsync 实现开机自启动,xinetdrsync


1.1 xinetd服务配置

1.1.1 检查xinetd服务是否安装

[root@backup ~]# rpm -qa xinetd

[root@backup ~]# rpm -ql xinetd

package xinetd is not installed

1.1.2 安装xinetd服务

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

[root@backup ~]# rpm -qa xinetd

xinetd-2.3.14-40.el6.x86_64

1.2 修改/etc/xinetd.d/rsync文件,使其随xinetd启动而启动

vim /etc/xinetd.d/rsync

 

......disable = yes 修改为 disable = no

 

disable = no

使用命令修改(centos6.x

sed -i  's#yes#no#g' /etc/xinetd.d/rsync

1.3 重启系统发现873端口交由xinetd管理

[root@backup ~]# netstat -lntup |grep 873

tcp        0      0 :::873                      :::*                        LISTEN      1229/xinetd   

相关内容

    暂无相关文章