Under linux rsync is implemented by xinetd service management

  • 2020-06-19 12:29:22
  • OfStack

1.1 xinetd service configuration

1.1.1 Check whether THE xinetd service is installed


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

1.1.2 Install xinetd service


[root@backup ~]# yum install xinetd -y
[root@backup ~]# rpm -qa xinetd
xinetd-2.3.14-40.el6.x86_64

1.2 modify/etc/xinetd d/rsync file, make it start with xinetd start


vim /etc/xinetd.d/rsync
...... will disable = yes  Modified to  disable = no
disable = no

Modify with command (centos6.x)


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

1.3 Restart system found that port 873 was managed by xinetd


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

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

conclusion


Related articles: