小编Emi*_*ama的帖子

csync2 错误:连接到远程主机失败

我找不到任何文章来回答这个问题,所以我最好的办法是在这里发布:

场景我们在生产环境中有 2 个应用程序服务器托管一个 PHP 网站,我希望在这两个文件夹之间同步一些文件夹,同样为开发环境设置没有问题,我已经按照 URL“ http:/ ”中的所有说明进行操作/www.cloudedify.com/synchronising-files-in-cloud-with-csync2/ ”,我似乎仍然有相同的结果,出于故障排除目的,两个盒子上的防火墙都已禁用:

配置文件:cysnc2.cfg

nossl * *;

group production {
   host server1;
   host server2;

   key /etc/csync-production-group.key;

 include /etc/httpd/sites-available;
 include /xxxxxx/public_html/files

 include /xxxxxxx/magento/media/catalog/product
 include /xxxxxxx/magento/media/brands

   exclude *.log;
   exclude /xxxx/public_html/file/cache;
   exclude /xxxxx/public_html/magento/var/cache;
   exclude /xxxx/public_html/logs;
   exclude /xxxxx/public_html/magento/var/log;

   backup-directory /data/sync-conflicts/;
   backup-generations 2;

   auto younger;
}
Run Code Online (Sandbox Code Playgroud)

/etc/xinetd.d/csync2 csync2.cfg

service csync2
{
   disable         = no
   flags           = REUSE
   socket_type     = stream
   wait            = no
   user            = root
   group           = root
   server          = /usr/sbin/csync2
   server_args     = -i …
Run Code Online (Sandbox Code Playgroud)

linux cluster synchronization failed

5
推荐指数
1
解决办法
6241
查看次数

标签 统计

cluster ×1

failed ×1

linux ×1

synchronization ×1