Scenario:
Push files from server a to server B
Error message
@ERROR: Unknown module ‘xxx’
rsync error: error starting client-server protocol (code 5) at main. c(1649) [sender=3.1.6]
Finally, it is found that the default configuration file of Rsync is rsyncd.com under/etc.conf instead of the file rsyncd. In the/etc/rsyncd/folder.conf
Solution 1: directly configure /etc/rsyncd.conf file, the operation steps are omitted.
Solution 2:
(1) Modify VIM /lib/SYSTEMd/system/rsyncd.service,
The following is the configuration content
[Unit]
Description=fast remote file copy program daemon
ConditionPathExists=/etc/rsyncd/rsyncd.conf
[Service]
EnvironmentFile=/etc/sysconfig/rsyncd
ExecStart=/usr/bin/rsync --config=/etc/rsyncd/rsyncd.conf --daemon --no-detach "$OPTIONS"
[Install]
WantedBy=multi-user.target
(2) Reload the background process and restart the Rsync service to synchronize.
systemctl daemon-reload
systemctl restart rsyncd
Related commands:
Systemctl daemon reload daemon
Systemctl restart rsyncd restart synchronization service
Systemctl start rsyncd# start
Systemctl stop rsyncd stop
systemctl status rsyncd. Service view Rsync status
PS aux | grep Rsync | viewing process
Read More:
- [Solved] CentOS build a docker error: job for docker.service failed….
- Docker Open Error: Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit
- [Solved] “Failed to run kubelet“ err=“failed to run Kubelet: misconfiguration: kubelet cgroup driver: \“cgrou
- rsync error: error starting client-server protocol (code 5) at main.c(1648) [Receiver=3.1.2]
- Docker Pull Error: certificate signed by unknown authority
- Rabbitmq failed to stop normally: ERROR: node with name “rabbit” already running on “localhost”
- How to Solve kubelet starts error (k8s Cluster Restarted)
- [Solved] Kubeadm join Timeout error execution phase kubelet-start: error uploading crisocket: timed out waiting
- ArchLinux starts error after modifying MariaDB database path Can’t create test file /xxxxx/xxxxx-test
- How to Solve Rabbitmq Error: Failed to start RabbitMQ broker
- [Solved] ClickHouse Start Error: Run under ‘sudo -u clickhouse‘
- How to Solve ClickHouse Connect Error: Connection refuse
- How to Solve Error: could not read ok from ADB Server.failed to start daemon error: cannot connect to daemon
- [Solved] Rabbitmq Server Error: unable to perform an operation on node ‘[email protected]‘. P
- [Solved] Redis startup error Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- How to Solve Zeppelin page 503 error
- Docker service startup error: Job for docker.service failed because the control process exited with error code.
- IDEA reports an error Could not reserve enough space for xxxxKB object heap processing
- [Solved] Error response from daemon: Get “*“: x509: certificate signed by unknown authority
- zabbix-Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused