1. Configure two node synchronization
The previous post has shown how to synchronize a host. This time we'll add a host to synchronize.
There is no duality in the method.
1. First display our console:
Last time the content of 192.168.2.103 synchronization 192.168.2.102. This lets 192.168.2.104 nodes synchronize the contents of 192.168.2.102.
Install the rsync and xinetd services on 192.168.2.104 first:
Start the Rsync service in the xinetd configuration file:
Change the rsync configuration file:
Start the XINETD service (in order to start the rsync service):
Then we switch to the main service console and copy a configuration file:
Change the contents of the configuration file to match the second node:
Then we create the Sync folder and go to the folder and create 5 files for testing:
We do a general synchronization on the main control node:
Then we saw the five files synced over the 192.168.2.104:
And the content of the HTTPD service published by 192.168.2.103 is also 192.168.2.102 in sync:
2.Summary
At this point we have a rsync+sersync of the explanation of the first, the use of rsync is also very extensive. To be able to use it flexibly.
For high-volume server operation and maintenance will certainly achieve a multiplier effect.
Linux Advanced tips: rsync sync (ii)