In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Install lsyncd root@mysql-2:~# apt-get install-y lsyncd to organize servers that need synchronization
Organize the configuration file root@mysql-2:/data/lsyncd# cat / etc/lsyncd.conf settings {logfile = "/ data/mysql/project_nginx.log", statusFile = "/ data/lsyncd/lsyncd.status", inotifyMode = "CloseWrite", maxProcesses = 8,-- maxConnections = 4,-- delay = 10,-- excludeFrom = file,-- excludeFrom exclusion option} sync {default.rsyncssh Source = "/ data/docker-compose", host = "192.168.1.23", targetdir = "/ data/docker-compose",-- exclude = "/ data/www/public_html/config.inc.php", # exclude this file from being out of sync-- maxDelays = 5, how many monitored events activate a synchronization Even if the later delay delay time is not up to-- delay = 2,-- init = false, this is an optimization option. When init = false, only the files that have been changed since the start of the process will be synchronized, and the original directories will not be synchronized even if there are differences. The default is true rsync = {binary = "/ usr/bin/rsync", archive = true, compress = true, verbose = true,-- _ extra = {"--bwlimit=2000"},}, ssh = {binary = "/ usr/bin/ssh", port = 22,} sync {default.rsyncssh Source = "/ data/docker-compose", # source directory host = "192.168.1.43", targetdir = "/ data/docker-compose", # destination directory-- exclude = "/ data/www/public_html/config.inc.php",-- maxDelays = 5, how many monitored events activate a synchronization Even if the later delay delay time is not up to-- delay = 2,-- init = false, this is an optimization option. When init = false, only the files that have been changed since the start of the process will be synchronized, and the original directories will not be synchronized even if there are differences. The default is true rsync = {binary = "/ usr/bin/rsync", archive = true, compress = true, verbose = true,-- _ extra = {"--bwlimit=2000"},}, ssh = {binary = "/ usr/bin/ssh", port = 22 }} start the test root@mysql-2:/data/lsyncd# lsyncd / etc/lsyncd.conf if there is a problem in the test directory or if it is newly established, it will be synchronized Note that no directory will create its own directory synchronization
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.