In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
# whether to run as a daemon. Default is no
Daemonize yes
# configure the storage path and file name of pid. Default is the current path. This setting is valid when the daemon is running.
Pidfile redis.pid
# Redis default listening port
Port 6379
# bind CVM address
Bind 127.0.0.1
# disconnect after how many seconds the client is idle
Timeout 300
# Log display level: debug, verbose, notice,warning, default verbose
Loglevel verbose
# specify the file name of the log output, or to the standard output port. The default is standard output. This setting is sent to / dev/null when the daemon is running
Logfile stdout
# set the number of databases. The default database connection is 0. You can connect different databases through select N.
Databases 16
# policies for saving data to disk
# when a piece of Keys data is changed, refresh to disk once in 900s
Save 900 1
# when 10 pieces of Keys data are changed, refresh to disk once in 300 seconds
Save 300 10
# when 1w pieces of keys data are changed, refresh to disk once in 60 seconds
Save 60 10000
# whether to compress data objects when dump .rdb database is used. Turning off this item will cause the database file to become huge.
Rdbcompression yes
# File name of data saved in dump database. Default is dump.rdb.
Dbfilename dump.rdb
# working directory of Redis
Dir. /
# here is the replication configuration of Redis Replication #
# set when the machine is a slav service, set the ip address and port of the master service, and automatically synchronize data from master when redis starts
Slaveof 10.27.117.122 6379
# when the password is set for the master service, the password for the slav service to connect to master
# masterauth
# set the redis connection password. When the connection password is set, the client needs to provide the password through the auth command when connecting to the redis. This setting is turned off by default.
# requirepass foobared
# LIMITS #
# the maximum number of client connections. Setting it to 0 means there is no limit.
# maxclients 128
# maximum memory utilization
# maxmemory
# APPEND ONLY MODE #
# whether to enable the log function. If it is not enabled, it may cause data loss for a period of time in the event of a power outage. Default is no
Appendonly yes
# Update log file name. Default is appendonly.aof.
# appendfilename appendonly.aof
# rules for refreshing logs to disk. No means to wait until the operating system synchronizes the data cache to disk (fast); always means to manually call fsync () after each update to write data to disk (slow, secure); everysec means to synchronize once a second
Appendfsync everysec
# VIRTUAL MEMORY #
# whether to enable VM function. Default is no.
Vm-enabled no
# vm-enabled yes
Vm-swap-file logs/redis.swap
Vm-max-memory 0
Vm-page-size 32
Vm-pages 134217728
Vm-max-threads 4
# ADVANCED CONFIG #
# whether to merge smaller packets into a single packet when replying to the client. Default is on.
Glueoutputbuf yes
Hash-max-zipmap-entries 64
Hash-max-zipmap-value 512
# whether to reset the Hash table
Activerehashing yes
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.