search

Home  >  Q&A  >  body text

java-web - java web生产环境下的热部署方案?

如题

感激不尽!

大家讲道理大家讲道理2892 days ago440

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:18:02

    Using front-end proxy server (nginx/apache httpd) + application server (tomcat) * 2.

    Normally, both servers are online to distribute traffic and pressure. When deploying, deploy alternately. Adjust the proxy server, only proxy to one of them, and take the other offline. When the deployment of this one is completed,
    reverse the process.

    If there are not two application servers, then when the deployment is complete, temporarily find a machine at hand to copy the online project to it and replace it temporarily. User access will probably be slower, but it should be OK.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-18 09:18:02

    You can learn about this project: Spring loaded. Does it meet your needs? This can be hot deployed.

    reply
    0
  • Cancelreply