Redis configuration file Parameters

Source: Internet
Author: User
/********************************* general *********************************/  //  Whether to run as a daemon    daemonize yes      //  such as a later process, you need to specify a PID, the default is/var/run/ redis.pid   pidfile /var/run/redis.pid      // redis default listening port     port 6379       tcp-backlog 511      //  How many seconds the client is idle, disconnect    timeout 0       tcp-keepalive 0      //  logging level, with 4 optional values,debug,verbose,notice,warning   loglevel notice       //  Specifies the file name of the log output, which can be set to/dev/null screen log    logfile  ""          Number of available databases, default value is 16, default database is 0   databases 16      /*********************  SNAPSHOTTING  snapshots  *********************************/  //  strategies for saving data to disk  // 900  seconds have  1  changes saved to disk   save 900 1  // 300   SEC has  10  changes saved to disk   save 300 10  // 60  seconds have  10000   Changes saved to disk   save 60 10000       stop-writes-on-bgsave-error  yes      //  whether to compress data objects when DUMP&NBSP;.RDB database    rdbcompression  yes       rdbchecksum yes      //  Local database file name, The default value is dump.rdb   dbfilename dump.rdb      //  Local Database store path, the default value is  ./    dir ./      /*************************** replication  Redis replication Configuration  *********************************/      //  set the IP and port of the primary service when this machine is from service   // slaveof <masterip> <masterport>      //   When the native is serviced from, set the masterService Connection Password   // masterauth <master-password>      //  When a connection is lost from the library or replication is in progress, there are two ways to run from the hangar   // 1)   If the slave-serve-stale-data is set to Yes (the default), the corresponding client request will continue from the library   // 2)   If slave-serve-stale-data means no, any request outside the info and SLAVOF commands will return an error "sync with  Master in progress "   slave-serve-stale-data yes       slave-read-only yes   
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.