Home  >  Q&A  >  body text

nginx - File server deployment and setup on multiple servers

Multiple servers under load balancing, file synchronization when publishing programs, what method does everyone use?

PHP中文网PHP中文网2713 days ago513

reply all(1)I'll reply

  • 阿神

    阿神2017-05-16 17:23:26

    Use saltstack to put all the files first, and put them into a new directory independent of the directory where production is currently running.
    Then update the nginx configuration file in a unified manner. The main modification is to point the root directory to the new directory.
    Saltstack’s master call once nginx -s reload for all servers

    reply
    0
  • Cancelreply