Home > Backend Development > PHP Tutorial > If you want to keep the root directory of the website on 20 servers consistent (such as load balancing), how do you keep the files updated synchronously? The more detailed the better

If you want to keep the root directory of the website on 20 servers consistent (such as load balancing), how do you keep the files updated synchronously? The more detailed the better

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-06 13:51:53
Original
1144 people have browsed it

If you want to keep the root directory of the website on 20 servers consistent, how do you keep the files updated synchronously?

Reply content:

If you want to keep the root directory of the website on 20 servers consistent, how do you keep the files updated synchronously?

It must be a distributed file synchronization system. Generally, simple operations will have problems. The one mentioned above is fine

The oschina git I use has a web hooks function when you push code to the server. The git server will request the URL address you specified. At this time, you can execute system commands on that URL to update (please pay attention to security issues)

rsync?

rsync

NFS, directly mounted on multiple machines

inotify rsync

ansible

svn/git ansible

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template