The resource loading... loading...

Best practices for upgrading Linux hosts

Author: The grass, Created: 2019-04-10 16:38:02, Updated: 2020-01-08 18:28:48

Steps to upgrade

  1. Log in to the server administrator's directory (if not changed, usually the default directory after SSH login)lsSee the documentationimgYou can see.logs robot robot_linux_amd64.tar.gzIn this case, logs is the log folder, robot is the host executable, and robot_linux_amd64.tar.gz is the original compression package.
  2. Executionrm -rf robot*Removes old bot programs and compresses packages at the same time, keeping logs
  3. Executionwget https://www.fmz.com/dist/robot_linux_amd64.tar.gzDownload the new host compression pack
  4. Executiontar -xzvf robot_linux_amd64.tar.gzUncompressed
  5. Executionnohup ./robot -s node.fmz.com/xxxxxx -p yourFMZpassword &It's the same story in the film.node.fmz.com/xxxxxxSpecificallyhttps://www.fmz.com/m/add-nodeI found it.

Benefits

The advantage of such an upgrade is that the logs are retained and the bot running the old host will not stop running (which has already been loaded into memory). The host of a bot that wants to upgrade simply stops the bot, replaces the host in the parameter interface (the latest host id is the largest) and restarts. If the old hosts no longer run the bots,https://www.fmz.com/m/nodesThe page can be deleted directly


More

jed mark

ShepherdingThe method is good, I learned it.

Xueqiu BotI learned.