20.27 Introduction to Distribution System

Introduction to the distribution system

  • Distribution system -expect explanation (that is, a distributed script)
  • Scenes:
    • The business is getting bigger and bigger, the website app, back-end, and the programming language are php, so you need to configure lamp or lnmp, and it is best to upload the code to the server; but because the business increases, the code increases, and multiple machines will be used. Very troublesome; it only requires a distribution system to publish the code of each update to the server that needs to be updated
  • expect, is a scripting language; through it, you can realize transmission and input commands (online code)
  • First, prepare a template machine, the IP of the machine, the password of the corresponding user, synchronize the code through rsync, and execute some commands through expect

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325341741&siteId=291194637