优选主流主机商
任何主机均需规范使用

Linux中使用xinetd服务高效管理rsync实现开机自启动攻略

1.1 xinetd服务配置

1.1.1 检查xinetd服务是否安装

?

1 2 3 [root@backup ~] # rpm -qa xinetd [root@backup ~] # rpm -ql xinetd package xinetd is not installed

1.1.2 安装xinetd服务

?

1 2 3 [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启动而启动

?

1 2 3 vim /etc/xinetd .d /rsync ......将disable = yes 修改为 disable = no disable = no

使用命令修改(centos6.x)

?

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

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

?

1 2 3 [root@backup ~] # netstat -lntup |grep 873   tcp    0   0 :::873           :::*            LISTEN   1229 /xinetd

 

未经允许不得转载:搬瓦工中文网 » Linux中使用xinetd服务高效管理rsync实现开机自启动攻略