Close rdb and aof in redis

https://zm10.sm-tc.cn/?src=l4uLj8XQ0IiIiNGdip2KlJDRnJCS0JaRmZCbmouelpPSzc%2FJz8vJxtGXi5KT&uid=49e602338a34805a7ae79ef794a4d58f&hid=7c78a206af2e1fc16f5d72a4a1bb594e&pos=1&cid=9&time=1523197669252&from=click&restype=1&pagetype=0000004000000402&bu=news_natural&query=redis%E5%85%B3%E9%97%ADaof&mode=&v=1&uc_param_str=dnntnwvepffrgibijbprsvdsdichei



      When importing data into redis, sometimes the redis server went away. The reasons for this problem are:

      The amount of imported data is too large, and the memory is not enough (that is, the memory is 1G, but the data has 2G). At this point, the redis service needs to be restarted.
      It may be that too much data is imported at the same time, causing problems with data persistence operations. At this time, rdb and aof need to be closed. The command to turn off rdn: config set save "", the command to turn off aof: config set appendfsync no , to check whether the two settings have been modified successfully, you can use the config get save, config get appendfsync commands respectively to check. Note, this command can only be executed by executing redis-cli.

      RDB saves a snapshot of the database to disk in binary form.
      AOF records all the commands (and their parameters) that have been written to the database to the AOF file in the form of protocol text, so as to achieve the purpose of recording the database status.

Guess you like

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