如何在linux(centos)中配置集群apache web-server [英] How to configure cluster apache web-server in linux (centos)

查看:105
本文介绍了如何在linux(centos)中配置集群apache web-server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个2个Web服务器( serverA ServerB ),这两个主动 - 主动 Web服务器,并希望在这样的服务器中配置服务器如果用户在 serverA 中上传文件,它应该自动上传 serverB 中的文件,如果用户上传 serverB ,它也应该是自动上传到 serverA



任何有关如何达到上述目标的帮助都将受到高度赞赏。



我尝试了什么:



尝试过文件系统,让它共享并挂载到 serverB ,但不想创建共享文件系统。

I have a 2 web server(serverA and ServerB), both active-active web server and wanted to configure server in such a way that if user uploads a file in serverA, it should auto upload a file in serverB and if user uploads in serverB, it should also be auto uploaded in serverA.

Any help regarding how to achieve above would be highly appreciated.

What I have tried:

Have tried file-system making it share and mount to serverB, but don't want to make a shared file system.

推荐答案

Apache是​​一个Web服务器。它与数据集群无关...我建议甚至不要尝试编写这样的代码,通过服务器物理共享文件...

我会做以下(假设服务器A和B有不同的作用):

1.将新服务器设置为服务器作为文件存储,并将文件从A和B上传到那里......

2。创建一个数据库并列出所有适当上传的文件,这样A和B都可以访问文件,无论上传哪个文件......
Apache is a web server. It has nothing to do with data-clusters... I would advise not even try to write such code the physically shares the files over servers...
I would do the follow (assuming that server A and B have different role):
1. Set up a new server to server as file storage and upload files from both A and B to there...
2. Create a DB and list all files uploaded as appropriate, so both A and B would access files regardless which uploaded it...


这篇关于如何在linux(centos)中配置集群apache web-server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆