The invention discloses a multi-mode automatic deployment starting method and
system for redis, and belongs to the technical field of memory databases, and the method comprises the following steps: an early-stage preparation work part: making a redis binary
executable program compatible under different CPU (
Central Processing Unit) architectures; the resource
verification part is used for verifying node information, a node memory and node disk information configured in the configuration file; the storage configuration part is used for configuring a storage
directory according to the storage information configured in the configuration file, and automatically creating and mounting a data disk for a redis
working directory; and the self-deployment part is used for installing a binary
executable program into each node according to node information configured in the configuration file, modifying necessary parameters of the redis configuration file, and pushing the redis configuration file to a data
directory of each node. According to the method and the device, the redis can be automatically deployed and started according to different CPU architectures and deployment
modes under the condition of different CPU architectures and deployment
modes.