日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

RedHat 7.8下Redis安装和配置

發布時間:2023/12/8 数据库 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RedHat 7.8下Redis安装和配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

文章目錄

  • RedHat 7.8下Redis安裝和配置
    • 檢查操作系統是否具有編譯環境
    • 安裝gcc-c++-4.8.5-39.el7.x86_64編譯環境:
      • 查詢需要安裝的包名稱
      • 安裝gcc-c++-4.8.5-39.el7.x86_64編譯環境:
      • 再次檢查gcc-c++-4.8.5-39.el7.x86_64編譯環境是否安裝成功:
    • 安裝redis
      • 解壓安裝包
      • 編譯安裝包
      • 測試編譯是否成功
      • 啟動redis
        • 使用默認配置文件啟動redis
        • 使用redis-cli連接redis
        • 關閉redis
    • 設置redis開啟遠程連接和使用密碼登陸
      • 在redis.conf配置文件中修改以下幾個配置
      • redis.conf配置文件如下
      • 配置好之后啟動redis
      • 檢查redis相關進程和端口是否啟動
      • 使用Redis Desktop Manager連接redis
      • 關閉redis
    • 設置redis開機啟動
      • 使用命令`vim /etc/init.d/redis`編寫腳本,腳本內容如下
      • 設置redis腳本執行權限
      • 設置開機啟動

RedHat 7.8下Redis安裝和配置

  • 安裝包:redis-5.0.8.tar.gz
  • 操作系統:Red Hat Enterprise Linux Server release 7.8 (Maipo)
  • 編譯環境:gcc-c+±4.8.5-39.el7.x86_64

檢查操作系統是否具有編譯環境

[root@lyb ~]# rpm -qa | grep gcc libgcc-4.8.5-39.el7.x86_64 gcc-4.8.5-39.el7.x86_64

安裝gcc-c+±4.8.5-39.el7.x86_64編譯環境:

查詢需要安裝的包名稱

[root@lyb ~]# yum search gcc 已加載插件:langpacks, product-id, search-disabled-repos, subscription-manager ====================================================================== N/S matched: gcc ====================================================================== gcc-c++.x86_64 : C++ support for GCC gcc-gnat.x86_64 : Ada 95 support for GCC gcc-objc.x86_64 : Objective-C support for GCC gcc-objc++.x86_64 : Objective-C++ support for GCC libgcc.i686 : GCC version 4.8 shared support library libgcc.x86_64 : GCC version 4.8 shared support library compat-gcc-44.x86_64 : Compatibility GNU Compiler Collection compat-gcc-44-c++.x86_64 : C++ support for compatibility compiler gcc.x86_64 : Various compilers (C, C++, Objective-C, Java, ...) gcc-gfortran.x86_64 : Fortran support libgomp.i686 : GCC OpenMP v3.0 shared support library libgomp.x86_64 : GCC OpenMP v3.0 shared support library libquadmath.i686 : GCC __float128 shared support library libquadmath.x86_64 : GCC __float128 shared support library libquadmath-devel.i686 : GCC __float128 support libquadmath-devel.x86_64 : GCC __float128 support名稱和簡介匹配 only,使用“search all”試試。

安裝gcc-c+±4.8.5-39.el7.x86_64編譯環境:

[root@lyb ~]# yum install gcc-c++.x86_64 已加載插件:langpacks, product-id, search-disabled-repos, subscription-manager 正在解決依賴關系 --> 正在檢查事務 ---> 軟件包 gcc-c++.x86_64.0.4.8.5-39.el7 將被 安裝 --> 正在處理依賴關系 libstdc++-devel = 4.8.5-39.el7,它被軟件包 gcc-c++-4.8.5-39.el7.x86_64 需要 --> 正在檢查事務 ---> 軟件包 libstdc++-devel.x86_64.0.4.8.5-39.el7 將被 安裝 --> 解決依賴關系完成依賴關系解決==============================================================================================================================================================Package 架構 版本 源 大小 ============================================================================================================================================================== 正在安裝:gcc-c++ x86_64 4.8.5-39.el7 rhel-7-server-rpms 7.2 M 為依賴而安裝:libstdc++-devel x86_64 4.8.5-39.el7 rhel-7-server-rpms 1.5 M事務概要 ============================================================================================================================================================== 安裝 1 軟件包 (+1 依賴軟件包)總計:8.7 M 總下載量:7.2 M 安裝大小:25 M Is this ok [y/d/N]: y Downloading packages: No Presto metadata available for rhel-7-server-rpms gcc-c++-4.8.5-39.el7.x86_64.rpm | 7.2 MB 00:00:48 Running transaction check Running transaction test Transaction test succeeded Running transaction正在安裝 : libstdc++-devel-4.8.5-39.el7.x86_64 1/2 正在安裝 : gcc-c++-4.8.5-39.el7.x86_64 2/2 驗證中 : gcc-c++-4.8.5-39.el7.x86_64 1/2 驗證中 : libstdc++-devel-4.8.5-39.el7.x86_64 2/2 rhel-7-server-rpms/7Server/x86_64/productid | 2.1 kB 00:00:00 已安裝:gcc-c++.x86_64 0:4.8.5-39.el7 作為依賴被安裝:libstdc++-devel.x86_64 0:4.8.5-39.el7 完畢!

再次檢查gcc-c+±4.8.5-39.el7.x86_64編譯環境是否安裝成功:

[root@lyb ~]# rpm -qa | grep gcc gcc-c++-4.8.5-39.el7.x86_64 libgcc-4.8.5-39.el7.x86_64 gcc-4.8.5-39.el7.x86_64

安裝redis

解壓安裝包

[root@lyb 安裝包]# tar xzvf redis-5.0.8.tar.gz

編譯安裝包

[root@lyb redis-5.0.8]# make # 省略編譯輸出日志 ...... Hint: It's a good idea to run 'make test' ;)make[1]: 離開目錄“/root/桌面/安裝包/redis-5.0.8/src”

測試編譯是否成功

[root@lyb redis-5.0.8]# make test # 省略測試輸出日志 ...... \o/ All tests passed without errors!Cleanup: may take some time... OK make[1]: 離開目錄“/root/桌面/安裝包/redis-5.0.8/src”

啟動redis

使用默認配置文件啟動redis

[root@lyb src]# pwd /root/桌面/安裝包/redis-5.0.8/src [root@lyb src]# ./redis-server 43757:C 16 Apr 2020 09:18:40.890 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 43757:C 16 Apr 2020 09:18:40.890 # Redis version=5.0.8, bits=64, commit=00000000, modified=0, pid=43757, just started 43757:C 16 Apr 2020 09:18:40.890 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf 43757:M 16 Apr 2020 09:18:40.891 * Increased maximum number of open files to 10032 (it was originally set to 1024)._._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 5.0.8 (00000000/0) 64 bit.-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379| `-._ `._ / _.-' | PID: 43757`-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' 43757:M 16 Apr 2020 09:18:40.892 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 43757:M 16 Apr 2020 09:18:40.893 # Server initialized 43757:M 16 Apr 2020 09:18:40.893 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 43757:M 16 Apr 2020 09:18:40.893 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 43757:M 16 Apr 2020 09:18:40.893 * Ready to accept connections

使用redis-cli連接redis

[root@lyb src]# pwd /root/桌面/安裝包/redis-5.0.8/src [root@lyb src]# ./redis-cli 127.0.0.1:6379> set version 1.0 OK 127.0.0.1:6379> get version "1.0" 127.0.0.1:6379> del version (integer) 1 127.0.0.1:6379>

關閉redis

  • 在執行./redis-server的終端使用快捷鍵Ctrl+C終止執行

  • 在./redis-cli中關閉

    [root@lyb src]# pwd /root/桌面/安裝包/redis-5.0.8/src [root@lyb src]# ./redis-cli 127.0.0.1:6379> set version 1.0 OK 127.0.0.1:6379> get version "1.0" 127.0.0.1:6379> del version (integer) 1 127.0.0.1:6379> shutdown not connected> exit [root@lyb src]#

設置redis開啟遠程連接和使用密碼登陸

在redis.conf配置文件中修改以下幾個配置

# 綁定本機可以接受訪問的IP地址,這里設置為0.0.0.0允許所有的IP地址訪問 bind 0.0.0.0# redis的啟動的端口,默認為6379 port 6379# 以守護進程的方式運行,就是關閉了遠程連接窗口,redis依然運行 daemonize yes# 關閉保護模式,可以允許外部網絡訪問 protected-mode no# 設置需要密碼才能訪問,password修改為你自己的密碼 requirepass password

redis.conf配置文件如下

# Redis configuration file example. # # Note that in order to read the configuration file, Redis must be # started with the file path as first argument: # # ./redis-server /path/to/redis.conf# Note on units: when memory size is needed, it is possible to specify # it in the usual form of 1k 5GB 4M and so forth: # # 1k => 1000 bytes # 1kb => 1024 bytes # 1m => 1000000 bytes # 1mb => 1024*1024 bytes # 1g => 1000000000 bytes # 1gb => 1024*1024*1024 bytes # # units are case insensitive so 1GB 1Gb 1gB are all the same.################################## INCLUDES #################################### Include one or more other config files here. This is useful if you # have a standard template that goes to all Redis servers but also need # to customize a few per-server settings. Include files can include # other files, so use this wisely. # # Notice option "include" won't be rewritten by command "CONFIG REWRITE" # from admin or Redis Sentinel. Since Redis always uses the last processed # line as value of a configuration directive, you'd better put includes # at the beginning of this file to avoid overwriting config change at runtime. # # If instead you are interested in using includes to override configuration # options, it is better to use include as the last line. # # include /path/to/local.conf # include /path/to/other.conf################################## MODULES ###################################### Load modules at startup. If the server is not able to load modules # it will abort. It is possible to use multiple loadmodule directives. # # loadmodule /path/to/my_module.so # loadmodule /path/to/other_module.so################################## NETWORK ###################################### By default, if no "bind" configuration directive is specified, Redis listens # for connections from all the network interfaces available on the server. # It is possible to listen to just one or multiple selected interfaces using # the "bind" configuration directive, followed by one or more IP addresses. # # Examples: # # bind 192.168.1.100 10.0.0.1 # bind 127.0.0.1 ::1 # # ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the # internet, binding to all the interfaces is dangerous and will expose the # instance to everybody on the internet. So by default we uncomment the # following bind directive, that will force Redis to listen only into # the IPv4 loopback interface address (this means Redis will be able to # accept connections only from clients running into the same computer it # is running). # # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES # JUST COMMENT THE FOLLOWING LINE. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bind 0.0.0.0# Protected mode is a layer of security protection, in order to avoid that # Redis instances left open on the internet are accessed and exploited. # # When protected mode is on and if: # # 1) The server is not binding explicitly to a set of addresses using the # "bind" directive. # 2) No password is configured. # # The server only accepts connections from clients connecting from the # IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain # sockets. # # By default protected mode is enabled. You should disable it only if # you are sure you want clients from other hosts to connect to Redis # even if no authentication is configured, nor a specific set of interfaces # are explicitly listed using the "bind" directive. protected-mode no# Accept connections on the specified port, default is 6379 (IANA #815344). # If port 0 is specified Redis will not listen on a TCP socket. port 6379# TCP listen() backlog. # # In high requests-per-second environments you need an high backlog in order # to avoid slow clients connections issues. Note that the Linux kernel # will silently truncate it to the value of /proc/sys/net/core/somaxconn so # make sure to raise both the value of somaxconn and tcp_max_syn_backlog # in order to get the desired effect. tcp-backlog 511# Unix socket. # # Specify the path for the Unix socket that will be used to listen for # incoming connections. There is no default, so Redis will not listen # on a unix socket when not specified. # # unixsocket /tmp/redis.sock # unixsocketperm 700# Close the connection after a client is idle for N seconds (0 to disable) timeout 0# TCP keepalive. # # If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence # of communication. This is useful for two reasons: # # 1) Detect dead peers. # 2) Take the connection alive from the point of view of network # equipment in the middle. # # On Linux, the specified value (in seconds) is the period used to send ACKs. # Note that to close the connection the double of the time is needed. # On other kernels the period depends on the kernel configuration. # # A reasonable value for this option is 300 seconds, which is the new # Redis default starting with Redis 3.2.1. tcp-keepalive 300################################# GENERAL ###################################### By default Redis does not run as a daemon. Use 'yes' if you need it. # Note that Redis will write a pid file in /var/run/redis.pid when daemonized. daemonize yes# If you run Redis from upstart or systemd, Redis can interact with your # supervision tree. Options: # supervised no - no supervision interaction # supervised upstart - signal upstart by putting Redis into SIGSTOP mode # supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET # supervised auto - detect upstart or systemd method based on # UPSTART_JOB or NOTIFY_SOCKET environment variables # Note: these supervision methods only signal "process is ready." # They do not enable continuous liveness pings back to your supervisor. supervised no# If a pid file is specified, Redis writes it where specified at startup # and removes it at exit. # # When the server runs non daemonized, no pid file is created if none is # specified in the configuration. When the server is daemonized, the pid file # is used even if not specified, defaulting to "/var/run/redis.pid". # # Creating a pid file is best effort: if Redis is not able to create it # nothing bad happens, the server will start and run normally. pidfile /var/run/redis_6379.pid# Specify the server verbosity level. # This can be one of: # debug (a lot of information, useful for development/testing) # verbose (many rarely useful info, but not a mess like the debug level) # notice (moderately verbose, what you want in production probably) # warning (only very important / critical messages are logged) loglevel notice# Specify the log file name. Also the empty string can be used to force # Redis to log on the standard output. Note that if you use standard # output for logging but daemonize, logs will be sent to /dev/null logfile ""# To enable logging to the system logger, just set 'syslog-enabled' to yes, # and optionally update the other syslog parameters to suit your needs. # syslog-enabled no# Specify the syslog identity. # syslog-ident redis# Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7. # syslog-facility local0# Set the number of databases. The default database is DB 0, you can select # a different one on a per-connection basis using SELECT <dbid> where # dbid is a number between 0 and 'databases'-1 databases 16# By default Redis shows an ASCII art logo only when started to log to the # standard output and if the standard output is a TTY. Basically this means # that normally a logo is displayed only in interactive sessions. # # However it is possible to force the pre-4.0 behavior and always show a # ASCII art logo in startup logs by setting the following option to yes. always-show-logo yes################################ SNAPSHOTTING ################################ # # Save the DB on disk: # # save <seconds> <changes> # # Will save the DB if both the given number of seconds and the given # number of write operations against the DB occurred. # # In the example below the behaviour will be to save: # after 900 sec (15 min) if at least 1 key changed # after 300 sec (5 min) if at least 10 keys changed # after 60 sec if at least 10000 keys changed # # Note: you can disable saving completely by commenting out all "save" lines. # # It is also possible to remove all the previously configured save # points by adding a save directive with a single empty string argument # like in the following example: # # save ""save 900 1 save 300 10 save 60 10000# By default Redis will stop accepting writes if RDB snapshots are enabled # (at least one save point) and the latest background save failed. # This will make the user aware (in a hard way) that data is not persisting # on disk properly, otherwise chances are that no one will notice and some # disaster will happen. # # If the background saving process will start working again Redis will # automatically allow writes again. # # However if you have setup your proper monitoring of the Redis server # and persistence, you may want to disable this feature so that Redis will # continue to work as usual even if there are problems with disk, # permissions, and so forth. stop-writes-on-bgsave-error yes# Compress string objects using LZF when dump .rdb databases? # For default that's set to 'yes' as it's almost always a win. # If you want to save some CPU in the saving child set it to 'no' but # the dataset will likely be bigger if you have compressible values or keys. rdbcompression yes# Since version 5 of RDB a CRC64 checksum is placed at the end of the file. # This makes the format more resistant to corruption but there is a performance # hit to pay (around 10%) when saving and loading RDB files, so you can disable it # for maximum performances. # # RDB files created with checksum disabled have a checksum of zero that will # tell the loading code to skip the check. rdbchecksum yes# The filename where to dump the DB dbfilename dump.rdb# The working directory. # # The DB will be written inside this directory, with the filename specified # above using the 'dbfilename' configuration directive. # # The Append Only File will also be created inside this directory. # # Note that you must specify a directory here, not a file name. dir ./################################# REPLICATION ################################## Master-Replica replication. Use replicaof to make a Redis instance a copy of # another Redis server. A few things to understand ASAP about Redis replication. # # +------------------+ +---------------+ # | Master | ---> | Replica | # | (receive writes) | | (exact copy) | # +------------------+ +---------------+ # # 1) Redis replication is asynchronous, but you can configure a master to # stop accepting writes if it appears to be not connected with at least # a given number of replicas. # 2) Redis replicas are able to perform a partial resynchronization with the # master if the replication link is lost for a relatively small amount of # time. You may want to configure the replication backlog size (see the next # sections of this file) with a sensible value depending on your needs. # 3) Replication is automatic and does not need user intervention. After a # network partition replicas automatically try to reconnect to masters # and resynchronize with them. # # replicaof <masterip> <masterport># If the master is password protected (using the "requirepass" configuration # directive below) it is possible to tell the replica to authenticate before # starting the replication synchronization process, otherwise the master will # refuse the replica request. # # masterauth <master-password># When a replica loses its connection with the master, or when the replication # is still in progress, the replica can act in two different ways: # # 1) if replica-serve-stale-data is set to 'yes' (the default) the replica will # still reply to client requests, possibly with out of date data, or the # data set may just be empty if this is the first synchronization. # # 2) if replica-serve-stale-data is set to 'no' the replica will reply with # an error "SYNC with master in progress" to all the kind of commands # but to INFO, replicaOF, AUTH, PING, SHUTDOWN, REPLCONF, ROLE, CONFIG, # SUBSCRIBE, UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, PUBLISH, PUBSUB, # COMMAND, POST, HOST: and LATENCY. # replica-serve-stale-data yes# You can configure a replica instance to accept writes or not. Writing against # a replica instance may be useful to store some ephemeral data (because data # written on a replica will be easily deleted after resync with the master) but # may also cause problems if clients are writing to it because of a # misconfiguration. # # Since Redis 2.6 by default replicas are read-only. # # Note: read only replicas are not designed to be exposed to untrusted clients # on the internet. It's just a protection layer against misuse of the instance. # Still a read only replica exports by default all the administrative commands # such as CONFIG, DEBUG, and so forth. To a limited extent you can improve # security of read only replicas using 'rename-command' to shadow all the # administrative / dangerous commands. replica-read-only yes# Replication SYNC strategy: disk or socket. # # ------------------------------------------------------- # WARNING: DISKLESS REPLICATION IS EXPERIMENTAL CURRENTLY # ------------------------------------------------------- # # New replicas and reconnecting replicas that are not able to continue the replication # process just receiving differences, need to do what is called a "full # synchronization". An RDB file is transmitted from the master to the replicas. # The transmission can happen in two different ways: # # 1) Disk-backed: The Redis master creates a new process that writes the RDB # file on disk. Later the file is transferred by the parent # process to the replicas incrementally. # 2) Diskless: The Redis master creates a new process that directly writes the # RDB file to replica sockets, without touching the disk at all. # # With disk-backed replication, while the RDB file is generated, more replicas # can be queued and served with the RDB file as soon as the current child producing # the RDB file finishes its work. With diskless replication instead once # the transfer starts, new replicas arriving will be queued and a new transfer # will start when the current one terminates. # # When diskless replication is used, the master waits a configurable amount of # time (in seconds) before starting the transfer in the hope that multiple replicas # will arrive and the transfer can be parallelized. # # With slow disks and fast (large bandwidth) networks, diskless replication # works better. repl-diskless-sync no# When diskless replication is enabled, it is possible to configure the delay # the server waits in order to spawn the child that transfers the RDB via socket # to the replicas. # # This is important since once the transfer starts, it is not possible to serve # new replicas arriving, that will be queued for the next RDB transfer, so the server # waits a delay in order to let more replicas arrive. # # The delay is specified in seconds, and by default is 5 seconds. To disable # it entirely just set it to 0 seconds and the transfer will start ASAP. repl-diskless-sync-delay 5# Replicas send PINGs to server in a predefined interval. It's possible to change # this interval with the repl_ping_replica_period option. The default value is 10 # seconds. # # repl-ping-replica-period 10# The following option sets the replication timeout for: # # 1) Bulk transfer I/O during SYNC, from the point of view of replica. # 2) Master timeout from the point of view of replicas (data, pings). # 3) Replica timeout from the point of view of masters (REPLCONF ACK pings). # # It is important to make sure that this value is greater than the value # specified for repl-ping-replica-period otherwise a timeout will be detected # every time there is low traffic between the master and the replica. # # repl-timeout 60# Disable TCP_NODELAY on the replica socket after SYNC? # # If you select "yes" Redis will use a smaller number of TCP packets and # less bandwidth to send data to replicas. But this can add a delay for # the data to appear on the replica side, up to 40 milliseconds with # Linux kernels using a default configuration. # # If you select "no" the delay for data to appear on the replica side will # be reduced but more bandwidth will be used for replication. # # By default we optimize for low latency, but in very high traffic conditions # or when the master and replicas are many hops away, turning this to "yes" may # be a good idea. repl-disable-tcp-nodelay no# Set the replication backlog size. The backlog is a buffer that accumulates # replica data when replicas are disconnected for some time, so that when a replica # wants to reconnect again, often a full resync is not needed, but a partial # resync is enough, just passing the portion of data the replica missed while # disconnected. # # The bigger the replication backlog, the longer the time the replica can be # disconnected and later be able to perform a partial resynchronization. # # The backlog is only allocated once there is at least a replica connected. # # repl-backlog-size 1mb# After a master has no longer connected replicas for some time, the backlog # will be freed. The following option configures the amount of seconds that # need to elapse, starting from the time the last replica disconnected, for # the backlog buffer to be freed. # # Note that replicas never free the backlog for timeout, since they may be # promoted to masters later, and should be able to correctly "partially # resynchronize" with the replicas: hence they should always accumulate backlog. # # A value of 0 means to never release the backlog. # # repl-backlog-ttl 3600# The replica priority is an integer number published by Redis in the INFO output. # It is used by Redis Sentinel in order to select a replica to promote into a # master if the master is no longer working correctly. # # A replica with a low priority number is considered better for promotion, so # for instance if there are three replicas with priority 10, 100, 25 Sentinel will # pick the one with priority 10, that is the lowest. # # However a special priority of 0 marks the replica as not able to perform the # role of master, so a replica with priority of 0 will never be selected by # Redis Sentinel for promotion. # # By default the priority is 100. replica-priority 100# It is possible for a master to stop accepting writes if there are less than # N replicas connected, having a lag less or equal than M seconds. # # The N replicas need to be in "online" state. # # The lag in seconds, that must be <= the specified value, is calculated from # the last ping received from the replica, that is usually sent every second. # # This option does not GUARANTEE that N replicas will accept the write, but # will limit the window of exposure for lost writes in case not enough replicas # are available, to the specified number of seconds. # # For example to require at least 3 replicas with a lag <= 10 seconds use: # # min-replicas-to-write 3 # min-replicas-max-lag 10 # # Setting one or the other to 0 disables the feature. # # By default min-replicas-to-write is set to 0 (feature disabled) and # min-replicas-max-lag is set to 10.# A Redis master is able to list the address and port of the attached # replicas in different ways. For example the "INFO replication" section # offers this information, which is used, among other tools, by # Redis Sentinel in order to discover replica instances. # Another place where this info is available is in the output of the # "ROLE" command of a master. # # The listed IP and address normally reported by a replica is obtained # in the following way: # # IP: The address is auto detected by checking the peer address # of the socket used by the replica to connect with the master. # # Port: The port is communicated by the replica during the replication # handshake, and is normally the port that the replica is using to # listen for connections. # # However when port forwarding or Network Address Translation (NAT) is # used, the replica may be actually reachable via different IP and port # pairs. The following two options can be used by a replica in order to # report to its master a specific set of IP and port, so that both INFO # and ROLE will report those values. # # There is no need to use both the options if you need to override just # the port or the IP address. # # replica-announce-ip 5.5.5.5 # replica-announce-port 1234################################## SECURITY #################################### Require clients to issue AUTH <PASSWORD> before processing any other # commands. This might be useful in environments in which you do not trust # others with access to the host running redis-server. # # This should stay commented out for backward compatibility and because most # people do not need auth (e.g. they run their own servers). # # Warning: since Redis is pretty fast an outside user can try up to # 150k passwords per second against a good box. This means that you should # use a very strong password otherwise it will be very easy to break. # requirepass root# Command renaming. # # It is possible to change the name of dangerous commands in a shared # environment. For instance the CONFIG command may be renamed into something # hard to guess so that it will still be available for internal-use tools # but not available for general clients. # # Example: # # rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52 # # It is also possible to completely kill a command by renaming it into # an empty string: # # rename-command CONFIG "" # # Please note that changing the name of commands that are logged into the # AOF file or transmitted to replicas may cause problems.################################### CLIENTS ##################################### Set the max number of connected clients at the same time. By default # this limit is set to 10000 clients, however if the Redis server is not # able to configure the process file limit to allow for the specified limit # the max number of allowed clients is set to the current file limit # minus 32 (as Redis reserves a few file descriptors for internal uses). # # Once the limit is reached Redis will close all the new connections sending # an error 'max number of clients reached'. # # maxclients 10000############################## MEMORY MANAGEMENT ################################# Set a memory usage limit to the specified amount of bytes. # When the memory limit is reached Redis will try to remove keys # according to the eviction policy selected (see maxmemory-policy). # # If Redis can't remove keys according to the policy, or if the policy is # set to 'noeviction', Redis will start to reply with errors to commands # that would use more memory, like SET, LPUSH, and so on, and will continue # to reply to read-only commands like GET. # # This option is usually useful when using Redis as an LRU or LFU cache, or to # set a hard memory limit for an instance (using the 'noeviction' policy). # # WARNING: If you have replicas attached to an instance with maxmemory on, # the size of the output buffers needed to feed the replicas are subtracted # from the used memory count, so that network problems / resyncs will # not trigger a loop where keys are evicted, and in turn the output # buffer of replicas is full with DELs of keys evicted triggering the deletion # of more keys, and so forth until the database is completely emptied. # # In short... if you have replicas attached it is suggested that you set a lower # limit for maxmemory so that there is some free RAM on the system for replica # output buffers (but this is not needed if the policy is 'noeviction'). # # maxmemory <bytes># MAXMEMORY POLICY: how Redis will select what to remove when maxmemory # is reached. You can select among five behaviors: # # volatile-lru -> Evict using approximated LRU among the keys with an expire set. # allkeys-lru -> Evict any key using approximated LRU. # volatile-lfu -> Evict using approximated LFU among the keys with an expire set. # allkeys-lfu -> Evict any key using approximated LFU. # volatile-random -> Remove a random key among the ones with an expire set. # allkeys-random -> Remove a random key, any key. # volatile-ttl -> Remove the key with the nearest expire time (minor TTL) # noeviction -> Don't evict anything, just return an error on write operations. # # LRU means Least Recently Used # LFU means Least Frequently Used # # Both LRU, LFU and volatile-ttl are implemented using approximated # randomized algorithms. # # Note: with any of the above policies, Redis will return an error on write # operations, when there are no suitable keys for eviction. # # At the date of writing these commands are: set setnx setex append # incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd # sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby # zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby # getset mset msetnx exec sort # # The default is: # # maxmemory-policy noeviction# LRU, LFU and minimal TTL algorithms are not precise algorithms but approximated # algorithms (in order to save memory), so you can tune it for speed or # accuracy. For default Redis will check five keys and pick the one that was # used less recently, you can change the sample size using the following # configuration directive. # # The default of 5 produces good enough results. 10 Approximates very closely # true LRU but costs more CPU. 3 is faster but not very accurate. # # maxmemory-samples 5# Starting from Redis 5, by default a replica will ignore its maxmemory setting # (unless it is promoted to master after a failover or manually). It means # that the eviction of keys will be just handled by the master, sending the # DEL commands to the replica as keys evict in the master side. # # This behavior ensures that masters and replicas stay consistent, and is usually # what you want, however if your replica is writable, or you want the replica to have # a different memory setting, and you are sure all the writes performed to the # replica are idempotent, then you may change this default (but be sure to understand # what you are doing). # # Note that since the replica by default does not evict, it may end using more # memory than the one set via maxmemory (there are certain buffers that may # be larger on the replica, or data structures may sometimes take more memory and so # forth). So make sure you monitor your replicas and make sure they have enough # memory to never hit a real out-of-memory condition before the master hits # the configured maxmemory setting. # # replica-ignore-maxmemory yes############################# LAZY FREEING ##################################### Redis has two primitives to delete keys. One is called DEL and is a blocking # deletion of the object. It means that the server stops processing new commands # in order to reclaim all the memory associated with an object in a synchronous # way. If the key deleted is associated with a small object, the time needed # in order to execute the DEL command is very small and comparable to most other # O(1) or O(log_N) commands in Redis. However if the key is associated with an # aggregated value containing millions of elements, the server can block for # a long time (even seconds) in order to complete the operation. # # For the above reasons Redis also offers non blocking deletion primitives # such as UNLINK (non blocking DEL) and the ASYNC option of FLUSHALL and # FLUSHDB commands, in order to reclaim memory in background. Those commands # are executed in constant time. Another thread will incrementally free the # object in the background as fast as possible. # # DEL, UNLINK and ASYNC option of FLUSHALL and FLUSHDB are user-controlled. # It's up to the design of the application to understand when it is a good # idea to use one or the other. However the Redis server sometimes has to # delete keys or flush the whole database as a side effect of other operations. # Specifically Redis deletes objects independently of a user call in the # following scenarios: # # 1) On eviction, because of the maxmemory and maxmemory policy configurations, # in order to make room for new data, without going over the specified # memory limit. # 2) Because of expire: when a key with an associated time to live (see the # EXPIRE command) must be deleted from memory. # 3) Because of a side effect of a command that stores data on a key that may # already exist. For example the RENAME command may delete the old key # content when it is replaced with another one. Similarly SUNIONSTORE # or SORT with STORE option may delete existing keys. The SET command # itself removes any old content of the specified key in order to replace # it with the specified string. # 4) During replication, when a replica performs a full resynchronization with # its master, the content of the whole database is removed in order to # load the RDB file just transferred. # # In all the above cases the default is to delete objects in a blocking way, # like if DEL was called. However you can configure each case specifically # in order to instead release memory in a non-blocking way like if UNLINK # was called, using the following configuration directives:lazyfree-lazy-eviction no lazyfree-lazy-expire no lazyfree-lazy-server-del no replica-lazy-flush no############################## APPEND ONLY MODE ################################ By default Redis asynchronously dumps the dataset on disk. This mode is # good enough in many applications, but an issue with the Redis process or # a power outage may result into a few minutes of writes lost (depending on # the configured save points). # # The Append Only File is an alternative persistence mode that provides # much better durability. For instance using the default data fsync policy # (see later in the config file) Redis can lose just one second of writes in a # dramatic event like a server power outage, or a single write if something # wrong with the Redis process itself happens, but the operating system is # still running correctly. # # AOF and RDB persistence can be enabled at the same time without problems. # If the AOF is enabled on startup Redis will load the AOF, that is the file # with the better durability guarantees. # # Please check http://redis.io/topics/persistence for more information.appendonly no# The name of the append only file (default: "appendonly.aof")appendfilename "appendonly.aof"# The fsync() call tells the Operating System to actually write data on disk # instead of waiting for more data in the output buffer. Some OS will really flush # data on disk, some other OS will just try to do it ASAP. # # Redis supports three different modes: # # no: don't fsync, just let the OS flush the data when it wants. Faster. # always: fsync after every write to the append only log. Slow, Safest. # everysec: fsync only one time every second. Compromise. # # The default is "everysec", as that's usually the right compromise between # speed and data safety. It's up to you to understand if you can relax this to # "no" that will let the operating system flush the output buffer when # it wants, for better performances (but if you can live with the idea of # some data loss consider the default persistence mode that's snapshotting), # or on the contrary, use "always" that's very slow but a bit safer than # everysec. # # More details please check the following article: # http://antirez.com/post/redis-persistence-demystified.html # # If unsure, use "everysec".# appendfsync always appendfsync everysec # appendfsync no# When the AOF fsync policy is set to always or everysec, and a background # saving process (a background save or AOF log background rewriting) is # performing a lot of I/O against the disk, in some Linux configurations # Redis may block too long on the fsync() call. Note that there is no fix for # this currently, as even performing fsync in a different thread will block # our synchronous write(2) call. # # In order to mitigate this problem it's possible to use the following option # that will prevent fsync() from being called in the main process while a # BGSAVE or BGREWRITEAOF is in progress. # # This means that while another child is saving, the durability of Redis is # the same as "appendfsync none". In practical terms, this means that it is # possible to lose up to 30 seconds of log in the worst scenario (with the # default Linux settings). # # If you have latency problems turn this to "yes". Otherwise leave it as # "no" that is the safest pick from the point of view of durability.no-appendfsync-on-rewrite no# Automatic rewrite of the append only file. # Redis is able to automatically rewrite the log file implicitly calling # BGREWRITEAOF when the AOF log size grows by the specified percentage. # # This is how it works: Redis remembers the size of the AOF file after the # latest rewrite (if no rewrite has happened since the restart, the size of # the AOF at startup is used). # # This base size is compared to the current size. If the current size is # bigger than the specified percentage, the rewrite is triggered. Also # you need to specify a minimal size for the AOF file to be rewritten, this # is useful to avoid rewriting the AOF file even if the percentage increase # is reached but it is still pretty small. # # Specify a percentage of zero in order to disable the automatic AOF # rewrite feature.auto-aof-rewrite-percentage 100 auto-aof-rewrite-min-size 64mb# An AOF file may be found to be truncated at the end during the Redis # startup process, when the AOF data gets loaded back into memory. # This may happen when the system where Redis is running # crashes, especially when an ext4 filesystem is mounted without the # data=ordered option (however this can't happen when Redis itself # crashes or aborts but the operating system still works correctly). # # Redis can either exit with an error when this happens, or load as much # data as possible (the default now) and start if the AOF file is found # to be truncated at the end. The following option controls this behavior. # # If aof-load-truncated is set to yes, a truncated AOF file is loaded and # the Redis server starts emitting a log to inform the user of the event. # Otherwise if the option is set to no, the server aborts with an error # and refuses to start. When the option is set to no, the user requires # to fix the AOF file using the "redis-check-aof" utility before to restart # the server. # # Note that if the AOF file will be found to be corrupted in the middle # the server will still exit with an error. This option only applies when # Redis will try to read more data from the AOF file but not enough bytes # will be found. aof-load-truncated yes# When rewriting the AOF file, Redis is able to use an RDB preamble in the # AOF file for faster rewrites and recoveries. When this option is turned # on the rewritten AOF file is composed of two different stanzas: # # [RDB file][AOF tail] # # When loading Redis recognizes that the AOF file starts with the "REDIS" # string and loads the prefixed RDB file, and continues loading the AOF # tail. aof-use-rdb-preamble yes################################ LUA SCRIPTING ################################ Max execution time of a Lua script in milliseconds. # # If the maximum execution time is reached Redis will log that a script is # still in execution after the maximum allowed time and will start to # reply to queries with an error. # # When a long running script exceeds the maximum execution time only the # SCRIPT KILL and SHUTDOWN NOSAVE commands are available. The first can be # used to stop a script that did not yet called write commands. The second # is the only way to shut down the server in the case a write command was # already issued by the script but the user doesn't want to wait for the natural # termination of the script. # # Set it to 0 or a negative value for unlimited execution without warnings. lua-time-limit 5000################################ REDIS CLUSTER ################################ Normal Redis instances can't be part of a Redis Cluster; only nodes that are # started as cluster nodes can. In order to start a Redis instance as a # cluster node enable the cluster support uncommenting the following: # # cluster-enabled yes# Every cluster node has a cluster configuration file. This file is not # intended to be edited by hand. It is created and updated by Redis nodes. # Every Redis Cluster node requires a different cluster configuration file. # Make sure that instances running in the same system do not have # overlapping cluster configuration file names. # # cluster-config-file nodes-6379.conf# Cluster node timeout is the amount of milliseconds a node must be unreachable # for it to be considered in failure state. # Most other internal time limits are multiple of the node timeout. # # cluster-node-timeout 15000# A replica of a failing master will avoid to start a failover if its data # looks too old. # # There is no simple way for a replica to actually have an exact measure of # its "data age", so the following two checks are performed: # # 1) If there are multiple replicas able to failover, they exchange messages # in order to try to give an advantage to the replica with the best # replication offset (more data from the master processed). # Replicas will try to get their rank by offset, and apply to the start # of the failover a delay proportional to their rank. # # 2) Every single replica computes the time of the last interaction with # its master. This can be the last ping or command received (if the master # is still in the "connected" state), or the time that elapsed since the # disconnection with the master (if the replication link is currently down). # If the last interaction is too old, the replica will not try to failover # at all. # # The point "2" can be tuned by user. Specifically a replica will not perform # the failover if, since the last interaction with the master, the time # elapsed is greater than: # # (node-timeout * replica-validity-factor) + repl-ping-replica-period # # So for example if node-timeout is 30 seconds, and the replica-validity-factor # is 10, and assuming a default repl-ping-replica-period of 10 seconds, the # replica will not try to failover if it was not able to talk with the master # for longer than 310 seconds. # # A large replica-validity-factor may allow replicas with too old data to failover # a master, while a too small value may prevent the cluster from being able to # elect a replica at all. # # For maximum availability, it is possible to set the replica-validity-factor # to a value of 0, which means, that replicas will always try to failover the # master regardless of the last time they interacted with the master. # (However they'll always try to apply a delay proportional to their # offset rank). # # Zero is the only value able to guarantee that when all the partitions heal # the cluster will always be able to continue. # # cluster-replica-validity-factor 10# Cluster replicas are able to migrate to orphaned masters, that are masters # that are left without working replicas. This improves the cluster ability # to resist to failures as otherwise an orphaned master can't be failed over # in case of failure if it has no working replicas. # # Replicas migrate to orphaned masters only if there are still at least a # given number of other working replicas for their old master. This number # is the "migration barrier". A migration barrier of 1 means that a replica # will migrate only if there is at least 1 other working replica for its master # and so forth. It usually reflects the number of replicas you want for every # master in your cluster. # # Default is 1 (replicas migrate only if their masters remain with at least # one replica). To disable migration just set it to a very large value. # A value of 0 can be set but is useful only for debugging and dangerous # in production. # # cluster-migration-barrier 1# By default Redis Cluster nodes stop accepting queries if they detect there # is at least an hash slot uncovered (no available node is serving it). # This way if the cluster is partially down (for example a range of hash slots # are no longer covered) all the cluster becomes, eventually, unavailable. # It automatically returns available as soon as all the slots are covered again. # # However sometimes you want the subset of the cluster which is working, # to continue to accept queries for the part of the key space that is still # covered. In order to do so, just set the cluster-require-full-coverage # option to no. # # cluster-require-full-coverage yes# This option, when set to yes, prevents replicas from trying to failover its # master during master failures. However the master can still perform a # manual failover, if forced to do so. # # This is useful in different scenarios, especially in the case of multiple # data center operations, where we want one side to never be promoted if not # in the case of a total DC failure. # # cluster-replica-no-failover no# In order to setup your cluster make sure to read the documentation # available at http://redis.io web site.########################## CLUSTER DOCKER/NAT support ######################### In certain deployments, Redis Cluster nodes address discovery fails, because # addresses are NAT-ted or because ports are forwarded (the typical case is # Docker and other containers). # # In order to make Redis Cluster working in such environments, a static # configuration where each node knows its public address is needed. The # following two options are used for this scope, and are: # # * cluster-announce-ip # * cluster-announce-port # * cluster-announce-bus-port # # Each instruct the node about its address, client port, and cluster message # bus port. The information is then published in the header of the bus packets # so that other nodes will be able to correctly map the address of the node # publishing the information. # # If the above options are not used, the normal Redis Cluster auto-detection # will be used instead. # # Note that when remapped, the bus port may not be at the fixed offset of # clients port + 10000, so you can specify any port and bus-port depending # on how they get remapped. If the bus-port is not set, a fixed offset of # 10000 will be used as usually. # # Example: # # cluster-announce-ip 10.1.1.5 # cluster-announce-port 6379 # cluster-announce-bus-port 6380################################## SLOW LOG #################################### The Redis Slow Log is a system to log queries that exceeded a specified # execution time. The execution time does not include the I/O operations # like talking with the client, sending the reply and so forth, # but just the time needed to actually execute the command (this is the only # stage of command execution where the thread is blocked and can not serve # other requests in the meantime). # # You can configure the slow log with two parameters: one tells Redis # what is the execution time, in microseconds, to exceed in order for the # command to get logged, and the other parameter is the length of the # slow log. When a new command is logged the oldest one is removed from the # queue of logged commands.# The following time is expressed in microseconds, so 1000000 is equivalent # to one second. Note that a negative number disables the slow log, while # a value of zero forces the logging of every command. slowlog-log-slower-than 10000# There is no limit to this length. Just be aware that it will consume memory. # You can reclaim memory used by the slow log with SLOWLOG RESET. slowlog-max-len 128################################ LATENCY MONITOR ############################### The Redis latency monitoring subsystem samples different operations # at runtime in order to collect data related to possible sources of # latency of a Redis instance. # # Via the LATENCY command this information is available to the user that can # print graphs and obtain reports. # # The system only logs operations that were performed in a time equal or # greater than the amount of milliseconds specified via the # latency-monitor-threshold configuration directive. When its value is set # to zero, the latency monitor is turned off. # # By default latency monitoring is disabled since it is mostly not needed # if you don't have latency issues, and collecting data has a performance # impact, that while very small, can be measured under big load. Latency # monitoring can easily be enabled at runtime using the command # "CONFIG SET latency-monitor-threshold <milliseconds>" if needed. latency-monitor-threshold 0############################# EVENT NOTIFICATION ############################### Redis can notify Pub/Sub clients about events happening in the key space. # This feature is documented at http://redis.io/topics/notifications # # For instance if keyspace events notification is enabled, and a client # performs a DEL operation on key "foo" stored in the Database 0, two # messages will be published via Pub/Sub: # # PUBLISH __keyspace@0__:foo del # PUBLISH __keyevent@0__:del foo # # It is possible to select the events that Redis will notify among a set # of classes. Every class is identified by a single character: # # K Keyspace events, published with __keyspace@<db>__ prefix. # E Keyevent events, published with __keyevent@<db>__ prefix. # g Generic commands (non-type specific) like DEL, EXPIRE, RENAME, ... # $ String commands # l List commands # s Set commands # h Hash commands # z Sorted set commands # x Expired events (events generated every time a key expires) # e Evicted events (events generated when a key is evicted for maxmemory) # A Alias for g$lshzxe, so that the "AKE" string means all the events. # # The "notify-keyspace-events" takes as argument a string that is composed # of zero or multiple characters. The empty string means that notifications # are disabled. # # Example: to enable list and generic events, from the point of view of the # event name, use: # # notify-keyspace-events Elg # # Example 2: to get the stream of the expired keys subscribing to channel # name __keyevent@0__:expired use: # # notify-keyspace-events Ex # # By default all notifications are disabled because most users don't need # this feature and the feature has some overhead. Note that if you don't # specify at least one of K or E, no events will be delivered. notify-keyspace-events ""############################### ADVANCED CONFIG ################################ Hashes are encoded using a memory efficient data structure when they have a # small number of entries, and the biggest entry does not exceed a given # threshold. These thresholds can be configured using the following directives. hash-max-ziplist-entries 512 hash-max-ziplist-value 64# Lists are also encoded in a special way to save a lot of space. # The number of entries allowed per internal list node can be specified # as a fixed maximum size or a maximum number of elements. # For a fixed maximum size, use -5 through -1, meaning: # -5: max size: 64 Kb <-- not recommended for normal workloads # -4: max size: 32 Kb <-- not recommended # -3: max size: 16 Kb <-- probably not recommended # -2: max size: 8 Kb <-- good # -1: max size: 4 Kb <-- good # Positive numbers mean store up to _exactly_ that number of elements # per list node. # The highest performing option is usually -2 (8 Kb size) or -1 (4 Kb size), # but if your use case is unique, adjust the settings as necessary. list-max-ziplist-size -2# Lists may also be compressed. # Compress depth is the number of quicklist ziplist nodes from *each* side of # the list to *exclude* from compression. The head and tail of the list # are always uncompressed for fast push/pop operations. Settings are: # 0: disable all list compression # 1: depth 1 means "don't start compressing until after 1 node into the list, # going from either the head or tail" # So: [head]->node->node->...->node->[tail] # [head], [tail] will always be uncompressed; inner nodes will compress. # 2: [head]->[next]->node->node->...->node->[prev]->[tail] # 2 here means: don't compress head or head->next or tail->prev or tail, # but compress all nodes between them. # 3: [head]->[next]->[next]->node->node->...->node->[prev]->[prev]->[tail] # etc. list-compress-depth 0# Sets have a special encoding in just one case: when a set is composed # of just strings that happen to be integers in radix 10 in the range # of 64 bit signed integers. # The following configuration setting sets the limit in the size of the # set in order to use this special memory saving encoding. set-max-intset-entries 512# Similarly to hashes and lists, sorted sets are also specially encoded in # order to save a lot of space. This encoding is only used when the length and # elements of a sorted set are below the following limits: zset-max-ziplist-entries 128 zset-max-ziplist-value 64# HyperLogLog sparse representation bytes limit. The limit includes the # 16 bytes header. When an HyperLogLog using the sparse representation crosses # this limit, it is converted into the dense representation. # # A value greater than 16000 is totally useless, since at that point the # dense representation is more memory efficient. # # The suggested value is ~ 3000 in order to have the benefits of # the space efficient encoding without slowing down too much PFADD, # which is O(N) with the sparse encoding. The value can be raised to # ~ 10000 when CPU is not a concern, but space is, and the data set is # composed of many HyperLogLogs with cardinality in the 0 - 15000 range. hll-sparse-max-bytes 3000# Streams macro node max size / items. The stream data structure is a radix # tree of big nodes that encode multiple items inside. Using this configuration # it is possible to configure how big a single node can be in bytes, and the # maximum number of items it may contain before switching to a new node when # appending new stream entries. If any of the following settings are set to # zero, the limit is ignored, so for instance it is possible to set just a # max entires limit by setting max-bytes to 0 and max-entries to the desired # value. stream-node-max-bytes 4096 stream-node-max-entries 100# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in # order to help rehashing the main Redis hash table (the one mapping top-level # keys to values). The hash table implementation Redis uses (see dict.c) # performs a lazy rehashing: the more operation you run into a hash table # that is rehashing, the more rehashing "steps" are performed, so if the # server is idle the rehashing is never complete and some more memory is used # by the hash table. # # The default is to use this millisecond 10 times every second in order to # actively rehash the main dictionaries, freeing memory when possible. # # If unsure: # use "activerehashing no" if you have hard latency requirements and it is # not a good thing in your environment that Redis can reply from time to time # to queries with 2 milliseconds delay. # # use "activerehashing yes" if you don't have such hard requirements but # want to free memory asap when possible. activerehashing yes# The client output buffer limits can be used to force disconnection of clients # that are not reading data from the server fast enough for some reason (a # common reason is that a Pub/Sub client can't consume messages as fast as the # publisher can produce them). # # The limit can be set differently for the three different classes of clients: # # normal -> normal clients including MONITOR clients # replica -> replica clients # pubsub -> clients subscribed to at least one pubsub channel or pattern # # The syntax of every client-output-buffer-limit directive is the following: # # client-output-buffer-limit <class> <hard limit> <soft limit> <soft seconds> # # A client is immediately disconnected once the hard limit is reached, or if # the soft limit is reached and remains reached for the specified number of # seconds (continuously). # So for instance if the hard limit is 32 megabytes and the soft limit is # 16 megabytes / 10 seconds, the client will get disconnected immediately # if the size of the output buffers reach 32 megabytes, but will also get # disconnected if the client reaches 16 megabytes and continuously overcomes # the limit for 10 seconds. # # By default normal clients are not limited because they don't receive data # without asking (in a push way), but just after a request, so only # asynchronous clients may create a scenario where data is requested faster # than it can read. # # Instead there is a default limit for pubsub and replica clients, since # subscribers and replicas receive data in a push fashion. # # Both the hard or the soft limit can be disabled by setting them to zero. client-output-buffer-limit normal 0 0 0 client-output-buffer-limit replica 256mb 64mb 60 client-output-buffer-limit pubsub 32mb 8mb 60# Client query buffers accumulate new commands. They are limited to a fixed # amount by default in order to avoid that a protocol desynchronization (for # instance due to a bug in the client) will lead to unbound memory usage in # the query buffer. However you can configure it here if you have very special # needs, such us huge multi/exec requests or alike. # # client-query-buffer-limit 1gb# In the Redis protocol, bulk requests, that are, elements representing single # strings, are normally limited ot 512 mb. However you can change this limit # here. # # proto-max-bulk-len 512mb# Redis calls an internal function to perform many background tasks, like # closing connections of clients in timeout, purging expired keys that are # never requested, and so forth. # # Not all tasks are performed with the same frequency, but Redis checks for # tasks to perform according to the specified "hz" value. # # By default "hz" is set to 10. Raising the value will use more CPU when # Redis is idle, but at the same time will make Redis more responsive when # there are many keys expiring at the same time, and timeouts may be # handled with more precision. # # The range is between 1 and 500, however a value over 100 is usually not # a good idea. Most users should use the default of 10 and raise this up to # 100 only in environments where very low latency is required. hz 10# Normally it is useful to have an HZ value which is proportional to the # number of clients connected. This is useful in order, for instance, to # avoid too many clients are processed for each background task invocation # in order to avoid latency spikes. # # Since the default HZ value by default is conservatively set to 10, Redis # offers, and enables by default, the ability to use an adaptive HZ value # which will temporary raise when there are many connected clients. # # When dynamic HZ is enabled, the actual configured HZ will be used as # as a baseline, but multiples of the configured HZ value will be actually # used as needed once more clients are connected. In this way an idle # instance will use very little CPU time while a busy instance will be # more responsive. dynamic-hz yes# When a child rewrites the AOF file, if the following option is enabled # the file will be fsync-ed every 32 MB of data generated. This is useful # in order to commit the file to the disk more incrementally and avoid # big latency spikes. aof-rewrite-incremental-fsync yes# When redis saves RDB file, if the following option is enabled # the file will be fsync-ed every 32 MB of data generated. This is useful # in order to commit the file to the disk more incrementally and avoid # big latency spikes. rdb-save-incremental-fsync yes# Redis LFU eviction (see maxmemory setting) can be tuned. However it is a good # idea to start with the default settings and only change them after investigating # how to improve the performances and how the keys LFU change over time, which # is possible to inspect via the OBJECT FREQ command. # # There are two tunable parameters in the Redis LFU implementation: the # counter logarithm factor and the counter decay time. It is important to # understand what the two parameters mean before changing them. # # The LFU counter is just 8 bits per key, it's maximum value is 255, so Redis # uses a probabilistic increment with logarithmic behavior. Given the value # of the old counter, when a key is accessed, the counter is incremented in # this way: # # 1. A random number R between 0 and 1 is extracted. # 2. A probability P is calculated as 1/(old_value*lfu_log_factor+1). # 3. The counter is incremented only if R < P. # # The default lfu-log-factor is 10. This is a table of how the frequency # counter changes with a different number of accesses with different # logarithmic factors: # # +--------+------------+------------+------------+------------+------------+ # | factor | 100 hits | 1000 hits | 100K hits | 1M hits | 10M hits | # +--------+------------+------------+------------+------------+------------+ # | 0 | 104 | 255 | 255 | 255 | 255 | # +--------+------------+------------+------------+------------+------------+ # | 1 | 18 | 49 | 255 | 255 | 255 | # +--------+------------+------------+------------+------------+------------+ # | 10 | 10 | 18 | 142 | 255 | 255 | # +--------+------------+------------+------------+------------+------------+ # | 100 | 8 | 11 | 49 | 143 | 255 | # +--------+------------+------------+------------+------------+------------+ # # NOTE: The above table was obtained by running the following commands: # # redis-benchmark -n 1000000 incr foo # redis-cli object freq foo # # NOTE 2: The counter initial value is 5 in order to give new objects a chance # to accumulate hits. # # The counter decay time is the time, in minutes, that must elapse in order # for the key counter to be divided by two (or decremented if it has a value # less <= 10). # # The default value for the lfu-decay-time is 1. A Special value of 0 means to # decay the counter every time it happens to be scanned. # # lfu-log-factor 10 # lfu-decay-time 1########################### ACTIVE DEFRAGMENTATION ####################### # # WARNING THIS FEATURE IS EXPERIMENTAL. However it was stress tested # even in production and manually tested by multiple engineers for some # time. # # What is active defragmentation? # ------------------------------- # # Active (online) defragmentation allows a Redis server to compact the # spaces left between small allocations and deallocations of data in memory, # thus allowing to reclaim back memory. # # Fragmentation is a natural process that happens with every allocator (but # less so with Jemalloc, fortunately) and certain workloads. Normally a server # restart is needed in order to lower the fragmentation, or at least to flush # away all the data and create it again. However thanks to this feature # implemented by Oran Agra for Redis 4.0 this process can happen at runtime # in an "hot" way, while the server is running. # # Basically when the fragmentation is over a certain level (see the # configuration options below) Redis will start to create new copies of the # values in contiguous memory regions by exploiting certain specific Jemalloc # features (in order to understand if an allocation is causing fragmentation # and to allocate it in a better place), and at the same time, will release the # old copies of the data. This process, repeated incrementally for all the keys # will cause the fragmentation to drop back to normal values. # # Important things to understand: # # 1. This feature is disabled by default, and only works if you compiled Redis # to use the copy of Jemalloc we ship with the source code of Redis. # This is the default with Linux builds. # # 2. You never need to enable this feature if you don't have fragmentation # issues. # # 3. Once you experience fragmentation, you can enable this feature when # needed with the command "CONFIG SET activedefrag yes". # # The configuration parameters are able to fine tune the behavior of the # defragmentation process. If you are not sure about what they mean it is # a good idea to leave the defaults untouched.# Enabled active defragmentation # activedefrag yes# Minimum amount of fragmentation waste to start active defrag # active-defrag-ignore-bytes 100mb# Minimum percentage of fragmentation to start active defrag # active-defrag-threshold-lower 10# Maximum percentage of fragmentation at which we use maximum effort # active-defrag-threshold-upper 100# Minimal effort for defrag in CPU percentage # active-defrag-cycle-min 5# Maximal effort for defrag in CPU percentage # active-defrag-cycle-max 75# Maximum number of set/hash/zset/list fields that will be processed from # the main dictionary scan # active-defrag-max-scan-fields 1000

配置好之后啟動redis

[root@lyb src]# ./redis-server /root/桌面/redis-5.0.8/redis.conf 88532:C 16 Apr 2020 09:51:08.406 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 88532:C 16 Apr 2020 09:51:08.406 # Redis version=5.0.8, bits=64, commit=00000000, modified=0, pid=88532, just started 88532:C 16 Apr 2020 09:51:08.406 # Configuration loaded

檢查redis相關進程和端口是否啟動

[root@lyb src]# ps -ef | grep redis root 88533 1 0 09:51 ? 00:00:00 ./redis-server 0.0.0.0:6379 root 88893 9896 0 09:51 pts/1 00:00:00 grep --color=auto redis [root@lyb src]# netstat -nltp | grep redis tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 88533/./redis-serve

使用Redis Desktop Manager連接redis

  • Redis Desktop Manager下載地址

    鏈接:https://pan.baidu.com/s/1XvOWCDRI0SGzjpdatQmkaQ 密碼:66sd

關閉redis

[root@lyb src]# ./redis-cli 127.0.0.1:6379> shutdown (error) NOAUTH Authentication required. 127.0.0.1:6379> auth root OK 127.0.0.1:6379> shutdown not connected> exit [root@lyb src]# ps -ef | grep redis root 107443 9896 0 10:07 pts/1 00:00:00 grep --color=auto redis [root@lyb src]# netstat -nltp | grep redis

設置redis開機啟動

使用命令vim /etc/init.d/redis編寫腳本,腳本內容如下

#!/bin/bash # # chkconfig: 2345 10 90 # description: Start and Stop redis PATH=/usr/local/bin:/sbin:/usr/bin:/bin # redis port REDISPORT=6379# redis-server location EXEC=/root/桌面/redis-5.0.8/src/redis-server # redis-cli location REDIS_CLI=/root/桌面/redis-5.0.8/src/redis-cli PIDFILE=/var/run/redis.pid # redis config file location CONF="/root/桌面/redis-5.0.8/redis.conf" AUTH="root" case "$1" in start) if [ -f $PIDFILE ] then echo "$PIDFILE exists, process is already running or crashed." else echo "Starting Redis server..." $EXEC $CONF fi if [ "$?"="0" ] then echo "Redis is running..." fi ;; stop) if [ ! -f $PIDFILE ] then echo "$PIDFILE exists, process is not running." else PID=$(cat $PIDFILE) echo "Stopping..." $REDIS_CLI -p $REDISPORT SHUTDOWN sleep 2 while [ -x $PIDFILE ] do echo "Waiting for Redis to shutdown..." sleep 1 done echo "Redis stopped" fi ;; restart|force-reload) ${0} stop ${0} start ;; *) echo "Usage: /etc/init.d/redis {start|stop|restart|force-reload}" >&2 exit 1 esac

設置redis腳本執行權限

[root@lyb init.d]# pwd /etc/init.d [root@lyb init.d]# chmod 755 redis

設置開機啟動

[root@lyb init.d]# pwd /etc/init.d [root@lyb init.d]# chmod 755 redis [root@lyb init.d]# chkconfig redis on

總結

以上是生活随笔為你收集整理的RedHat 7.8下Redis安装和配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

日本在线观看中文字幕 | 天天爽夜夜爽精品视频婷婷 | 一区二区三区在线观看中文字幕 | 久久精品首页 | 在线黄色国产电影 | 国产欧美精品xxxx另类 | 99自拍视频在线观看 | 久久久久激情视频 | 欧美伦理一区 | 91av视频在线观看免费 | 天天综合中文 | 91精品视频观看 | 国产九色在线播放九色 | 亚洲美女精品视频 | 波多野结衣一区 | 色一级片 | av福利超碰网站 | 五月天婷婷免费视频 | 97超碰中文字幕 | 国产综合久久 | 成人性生爱a∨ | 国产高清免费在线播放 | 日韩理论 | 在线成人免费av | 99麻豆视频 | 一区二区三区免费在线 | 中文字幕在线观看国产 | 中文字幕乱偷在线 | 一区二区三区四区在线 | 国产精品永久久久久久久久久 | 国产原厂视频在线观看 | 98精品国产自产在线观看 | 99热手机在线 | 91麻豆网| 国产小视频国产精品 | 久久久久久高潮国产精品视 | 国精产品999国精产品视频 | 波多野结衣精品 | 国产一级视频免费看 | zzijzzij亚洲成熟少妇 | 东方av在| www.黄色在线| 韩国精品一区二区三区六区色诱 | 欧美激情精品久久 | 久久久久久高潮国产精品视 | 很污的网站| 成人免费看视频 | www.xxx.性狂虐 | 久久久在线视频 | 天天鲁天天干天天射 | 视频在线播放国产 | 97精品国产97久久久久久 | 911精品视频| 91精品久久久久 | 精品在线免费观看 | 91免费网站在线观看 | 欧美另类xxx | 草久久久久久久 | a天堂一码二码专区 | 久久大片 | www.久久久com | 国产精品国产亚洲精品看不卡 | 亚洲精品久 | 久久久麻豆视频 | 最近中文字幕视频网 | 9久久精品 | 九色91视频 | 五月天中文字幕mv在线 | 麻豆手机在线 | 国产自产高清不卡 | 中文国产字幕 | 婷婷丁香色综合狠狠色 | 天天操导航 | 久久成人麻豆午夜电影 | 精品久久一区二区三区 | 亚洲天天在线日亚洲洲精 | 在线国产中文字幕 | 久草免费新视频 | 婷婷中文字幕 | 欧美激情综合五月色丁香小说 | 91人人视频在线观看 | 91在线小视频 | av在线亚洲天堂 | 国产不卡片 | 婷婷色站| 国产精品久久久久久久电影 | 国产a视频免费观看 | 国产福利资源 | 五月激情久久久 | 亚洲无毛专区 | 久久99久| 亚洲精品午夜久久久 | 极品国产91在线网站 | 欧美日视频 | 国产日韩精品一区二区三区 | a成人v| 日韩美视频 | 婷婷在线观看视频 | 国内偷拍精品视频 | 亚洲一区免费在线 | 少妇bbbb搡bbbb搡bbbb | 五月婷婷另类国产 | 国产日韩亚洲 | 91精品一区二区三区蜜桃 | 国产成人精品一区二区三区网站观看 | 福利二区视频 | 久久亚洲福利视频 | 青春草视频 | 日韩精品一区不卡 | 99高清视频有精品视频 | 黄av免费在线观看 | 欧美xxxx性xxxxx高清 | 五月天.com| 国产精品久久久久免费观看 | 欧美精品xxx | 亚洲精品欧洲精品 | 久久艹国产视频 | 亚洲精品在线免费看 | 国产亚洲人 | 日韩欧美在线高清 | 国产小视频在线观看免费 | 国产精品原创av片国产免费 | 久久一区精品 | 综合在线色 | 狠狠操精品 | 国产成人三级一区二区在线观看一 | 免费在线观看成人小视频 | 欧美亚洲精品一区 | 久久99久久99免费视频 | 久草a在线| 国产视频1| 国产精品久久久久久久久婷婷 | 国产高清视频免费 | 狠狠亚洲| 欧美一级特黄aaaaaa大片在线观看 | 亚洲狠狠丁香婷婷综合久久久 | 精品成人a区在线观看 | 国产裸体视频bbbbb | 欧美中文字幕久久 | 日韩精品免费在线观看视频 | 一区二区三区中文字幕在线 | 91在线网址 | 国内精品免费 | 在线观看麻豆av | 中字幕视频在线永久在线观看免费 | av免费网 | 久久久久久久久黄色 | 在线观看中文字幕 | 黄色a在线 | 夜夜爽夜夜操 | 99国产精品久久久久久久久久 | 在线免费观看国产精品 | 黄色在线免费观看网址 | 99久久久国产免费 | 欧美一区二区三区不卡 | 在线观看日韩av | 天天色综合久久 | 天天插狠狠插 | 日韩久久久久 | 丁香婷婷深情五月亚洲 | 国产美女搞久久 | 久久电影网站中文字幕 | 国产亚洲精品久久久久久久久久久久 | 四虎影视精品永久在线观看 | 99精品免费在线 | 成人a视频片观看免费 | 中文字幕高清在线播放 | 久久99在线视频 | 久草青青在线观看 | 色狠狠综合天天综合综合 | 色网站免费在线观看 | 黄免费在线观看 | 不卡电影一区二区三区 | 精品在线视频播放 | av在线播放免费 | 亚洲一级黄色av | 国产色在线视频 | 日韩在线观看一区 | 中文字幕一区二区三区四区久久 | 在线观看视频一区二区三区 | 黄色中文字幕在线 | 中文字幕在线第一页 | 五月婷婷av | 欧美精品一区在线 | 免费日韩三级 | 久久亚洲福利 | 国产成人精品午夜在线播放 | 国产精品女人网站 | 五月香婷 | 天堂av官网| 国产精品 国产精品 | 97精品国自产拍在线观看 | 免费毛片aaaaaa | 久久永久视频 | 免费在线黄 | 不卡视频在线看 | 欧美日韩不卡一区二区 | 色噜噜狠狠狠狠色综合久不 | 成人久久视频 | 亚洲成人一二三 | 一区二区视频在线播放 | 久久av福利 | 欧美日韩免费视频 | 久久大片 | 免费看片网站91 | 国产一级精品绿帽视频 | a视频在线观看免费 | 国产aa免费视频 | 国产亚洲精品中文字幕 | 伊人久久婷婷 | 精品国产一区二区三区男人吃奶 | 日本免费一二三区 | 国产一区二区影院 | 草久久精品 | 日韩午夜视频在线观看 | 亚洲闷骚少妇在线观看网站 | 亚洲伊人网在线观看 | 91成人免费在线视频 | 精品国产一区二区三区久久久蜜月 | 国产区在线视频 | 亚洲国产欧美一区二区三区丁香婷 | 亚洲精品美女久久久久网站 | 91免费在线视频 | 国产精品嫩草影院123 | 91九色网址| 怡红院av | 九九有精品| 亚洲精品在线免费播放 | 国产正在播放 | 色噜噜狠狠狠狠色综合久不 | 天天射天天 | 久久久久久综合 | 人人澡人人澡人人 | www.91av在线| 91精品国产自产在线观看 | 在线看污网站 | 久草久草久草久草 | 免费高清在线观看电视网站 | 免费a网| 天天操天天摸天天射 | 夜夜看av| 首页国产精品 | 911精品美国片911久久久 | 国产乱对白刺激视频不卡 | 国产亚洲午夜高清国产拍精品 | 偷拍精偷拍精品欧洲亚洲网站 | 免费在线观看毛片网站 | 免费日韩 精品中文字幕视频在线 | 欧美久久成人 | 毛片无卡免费无播放器 | 欧洲精品久久久久毛片完整版 | 伊人天天干 | 五月开心六月伊人色婷婷 | 午夜美女网站 | 中文字幕日韩有码 | 四虎影视精品成人 | 国产高清久久久久 | 久久激情五月丁香伊人 | 精品国产乱码一区二区三区在线 | 一区二区三区国产欧美 | 996久久国产精品线观看 | 久久精品久久久久久久 | 免费观看完整版无人区 | 开心丁香婷婷深爱五月 | 欧美日韩国产在线一区 | 精品国产电影 | 久久久国产视频 | 成年人在线免费看视频 | 国产免费又粗又猛又爽 | 久久成人在线视频 | 96精品高清视频在线观看软件特色 | 久久久免费 | 97国产情侣爱久久免费观看 | 天天天天天天操 | 日本成人免费在线观看 | 亚洲天天综合网 | 91精品系列| 天天曰夜夜操 | 国产美女精品视频 | 亚洲精品在线视频观看 | 伊人久久一区 | 成人黄色电影在线播放 | 久久久久女人精品毛片九一 | 国产成人精品久久 | 日韩精品中文字幕久久臀 | 91人人爽久久涩噜噜噜 | 免费a视频在线观看 | 欧美va天堂va视频va在线 | 97精品国产97久久久久久粉红 | 麻豆首页| 丝袜足交在线 | 国内精品国产三级国产aⅴ久 | 91视频这里只有精品 | 欧美一级特黄aaaaaa大片在线观看 | 国产精品 国内视频 | 亚洲热视频 | 日韩av成人在线观看 | 在线色视频小说 | 国产1区2区3区在线 亚洲自拍偷拍色图 | 激情开心| 一级a性色生活片久久毛片波多野 | 亚洲成人黄色在线观看 | 日日夜夜91 | 久久免费看a级毛毛片 | 六月丁香婷婷网 | 在线播放亚洲 | 91在线区 | 久久亚洲影院 | 国产高清在线免费观看 | 亚洲天天在线日亚洲洲精 | 国产精品欧美久久 | 国产特级毛片aaaaaa高清 | 丁香网五月天 | 国产精品男女视频 | 久久国产精品网站 | 国产麻豆精品传媒av国产下载 | 国产香蕉av | 日韩av电影一区 | 69久久久久久久 | 久久久久久久久久福利 | 在线之家免费在线观看电影 | 久草9视频 | 免费亚洲片 | 亚洲视频精选 | 这里只有精品视频在线观看 | av天天在线观看 | 国产99中文字幕 | 久久国内精品视频 | 99久久久久 | 久久久久9999亚洲精品 | 国产福利小视频在线 | 日本少妇久久久 | 激情综合亚洲精品 | 99久久国产免费,99久久国产免费大片 | 天天av在线播放 | 97精品免费视频 | 欧美日韩在线观看一区二区三区 | a级国产乱理伦片在线播放 久久久久国产精品一区 | 亚洲欧美婷婷六月色综合 | 国产一区二区精品久久 | 九草视频在线观看 | 五月婷婷一区 | 免费人做人爱www的视 | 国产高清在线a视频大全 | av福利网址导航大全 | 国产精品久久久久一区 | av三级在线播放 | 亚洲欧美视频在线播放 | 亚洲精品毛片一级91精品 | 国产一级二级在线观看 | 91成人短视频在线观看 | 日韩综合在线观看 | a在线观看国产 | 97韩国电影 | 日韩欧美在线一区 | 成人精品国产免费网站 | 精品亚洲免费视频 | 五月精品 | 青青河边草免费 | 超碰97人| 国产一线二线三线在线观看 | 国产二区免费视频 | 成年人黄色大片在线 | 亚洲h在线播放在线观看h | 久久久成人精品 | 丁香婷婷深情五月亚洲 | 顶级bbw搡bbbb搡bbbb| 草久视频在线观看 | 亚洲欧美日韩精品一区二区 | 日韩av不卡在线观看 | 全黄色一级片 | 在线有码中文 | 91精品久久久久久 | 一区二区三区在线观看免费视频 | 天天做天天爱天天综合网 | 国内精品视频一区二区三区八戒 | 日日噜噜噜噜夜夜爽亚洲精品 | 国产精品一二 | 网址你懂的在线观看 | 三级毛片视频 | 国产黄色高清 | 午夜免费视频网站 | 久久综合9988久久爱 | 久久久免费看片 | 久久婷亚洲五月一区天天躁 | 三级动态视频在线观看 | 操碰av | 成人网444ppp | 黄网站免费看 | 国产精品久久久久永久免费观看 | 欧美一二三区在线观看 | 91禁看片 | 鲁一鲁影院 | 日韩一区二区三区在线观看 | 日韩中文字幕电影 | 久久9视频 | 中文字幕欧美日韩va免费视频 | 国产黄色大片免费看 | 色吊丝在线永久观看最新版本 | 手机在线看永久av片免费 | 中文字幕超清在线免费 | 亚洲日韩欧美一区二区在线 | 中文字幕丝袜 | 在线观看va | 国产中文a | 国产黄色一级片 | 8x成人免费视频 | 中文字幕高清视频 | 成人av亚洲| 免费成视频 | 四虎国产精品永久在线国在线 | 国产v视频 | 国产视频精品免费播放 | 成 人 黄 色 视频免费播放 | av一级一片| 国模一二三区 | 免费人人干 | 亚洲免费不卡 | 婷婷久月| 在线观看免费国产小视频 | 亚洲国内精品在线 | 国产色视频网站2 | 国产精品正在播放 | 精品久久国产精品 | 亚洲精品在线免费播放 | 日日夜夜网| 亚洲精品乱码久久久一二三 | 就要干b| av一区二区三区在线观看 | 久久免费视频在线观看 | 国产成人精品一区在线 | 国产一级片免费播放 | 伊人亚洲综合 | 天天综合操| 免费色视频在线 | 2024国产在线 | www.久久久精品 | 一区二区精品在线观看 | www亚洲精品 | av性网站| 久久久久久电影 | 91av免费观看 | 91黄视频在线 | 日韩在线首页 | 午夜视频在线观看网站 | 在线观看第一页 | 中文字幕在线观看免费高清完整版 | 国产91影视 | 99这里只有精品99 | 黄色片视频免费 | 玖草影院 | 在线免费色视频 | 国产亚州精品视频 | 2021国产在线 | 人人澡人 | 国内精自线一二区永久 | 欧美一级裸体视频 | 亚洲成a人片综合在线 | av资源免费在线观看 | 国产高清精 | 亚洲女欲精品久久久久久久18 | 在线观看激情av | 久久精品2 | 日韩视频一区二区在线观看 | 日本成址在线观看 | 亚洲在线看 | 国产中文字幕一区 | 国产高清在线免费观看 | av成人在线观看 | 亚洲精品国产精品久久99 | 久久久久久久免费 | 中文字幕最新精品 | 狠狠狠色丁香综合久久天下网 | 国产成人久久精品 | 一区二区理论片 | 天天艹| 91福利在线导航 | 午夜视频免费在线观看 | 亚洲黑丝少妇 | 国产一卡久久电影永久 | 久久人人97超碰国产公开结果 | 欧美日韩免费在线视频 | 午夜精品99久久免费 | 国产一区二区在线视频观看 | 日本中文字幕电影在线免费观看 | 国产精品久久久久久久久久三级 | www.五月婷婷| 国产成人亚洲在线电影 | zzijzzij亚洲日本少妇熟睡 | 日韩在线免费看 | 久操视频在线观看 | 人人舔人人射 | 久久夜视频| 99久久久久免费精品国产 | 天天操天天射天天添 | 亚洲激情在线 | 国产精品成人自产拍在线观看 | 精品国产一区二区三区不卡 | 天天草av| 插久久| 久草在线免费电影 | 最新中文字幕在线资源 | 99久e精品热线免费 99国产精品久久久久久久久久 | 久久久视频在线 | 一级成人免费 | 成年免费在线视频 | 在线黄频| 在线不卡中文字幕播放 | 午夜精品久久久久久中宇69 | 99电影456麻豆 | 欧美日韩国产一区二区三区在线观看 | 日韩视频在线观看视频 | 久久久电影网站 | 日韩av在线免费看 | 日韩精品高清不卡 | 免费一级片视频 | 久久夜夜操 | 97热久久免费频精品99 | 亚洲精品国产成人av在线 | 激情综合五月婷婷 | 国产精品69av | av日韩在线网站 | 天天操操操操操操 | 99在线视频播放 | 国内揄拍国内精品 | 久草在线视频网站 | 97视频免费在线看 | 激情综合五月天 | 国产伦理久久 | 久久久久免费观看 | 日韩va在线观看 | 在线观看国产v片 | 狠狠色狠狠色综合系列 | 丁香资源影视免费观看 | 91系列在线 | 亚洲视频精品 | 狠狠狠色丁香婷婷综合久久五月 | 在线看福利av | 日韩精品一区二区不卡 | 在线播放视频一区 | 久久久久久久久久久久久国产精品 | 中文日韩在线视频 | 超碰在线日本 | av免费在线观看1 | 精品99视频| 在线 国产 亚洲 欧美 | 正在播放久久 | 狠狠色丁香久久婷婷综合_中 | 日本高清中文字幕有码在线 | av高清免费在线 | 亚洲精品中文字幕视频 | 久久av不卡 | 中文字幕在线久一本久 | 婷婷激情欧美 | 国产在线永久 | 国产午夜精品一区二区三区欧美 | 成人av片免费观看app下载 | 在线成人av | 久久久久久久久久久网站 | 一本到视频在线观看 | 91九色视频观看 | 欧美黄色免费 | 亚洲天堂激情 | 亚洲国产剧情av | 欧美色图一区 | 91传媒免费观看 | 亚洲精品国产精品国自 | 欧美一级视频免费看 | 国产精品久久久久久影院 | 国产真实在线 | 久久综合九色综合久99 | 国产成人久久精品亚洲 | 狠狠插天天干 | 中文字幕免费高清 | 久草网站在线 | 一级黄色大片 | 探花视频免费观看 | 狠狠88综合久久久久综合网 | 国产视频在线一区二区 | 98精品国产自产在线观看 | 日韩爱爱片 | 亚洲综合视频在线播放 | 国产精品久久久久久久久久久杏吧 | 粉嫩高清一区二区三区 | 精品91| 精品国产乱子伦一区二区 | 久久免费视频这里只有精品 | 999超碰| 天天爱天天| 免费高清在线观看成人 | 18做爰免费视频网站 | 免费看色的网站 | 亚洲草视频 | 中文字幕av在线免费 | 天堂视频中文在线 | 99精品国产在热久久下载 | 91在线中字 | 国产又粗又猛又色又黄网站 | 中文在线8新资源库 | 久久热首页 | 欧美久久久久久久久中文字幕 | 国内免费的中文字幕 | 色综合久久久久综合 | 亚洲免费黄色 | 亚洲精品欧美成人 | 中文字幕在线看视频国产中文版 | 免费网站看v片在线a | 三日本三级少妇三级99 | av免费在线网| 免费黄色在线网站 | 欧美不卡视频在线 | 国产精品九九久久99视频 | 亚洲欧美偷拍另类 | 香蕉影视在线观看 | 日韩欧美一区二区三区在线 | 成人在线观看免费 | 成人三级视频 | 国产精品久久久久久久免费观看 | 欧美激情第28页 | 久久久久综合精品福利啪啪 | 国产一区二区精品久久 | 2019av在线视频 | 日韩av免费大片 | 婷婷精品 | 久久精品区 | 久久综合色综合88 | 国产精品一区二区三区久久 | 免费情缘 | 欧美a级片网站 | 日韩免费在线一区 | 免费日韩视 | 丁香视频免费观看 | 成人在线免费视频观看 | 激情欧美xxxx | 九九九热精品免费视频观看 | 成人国产精品久久久春色 | 久久人人爽人人爽人人片av免费 | 亚洲一区精品二人人爽久久 | 成人污视频在线观看 | 亚洲精品综合久久 | 天操夜夜操 | 亚洲涩涩网 | 在线天堂中文在线资源网 | 欧美日韩免费在线观看视频 | 欧美精品一区在线 | av黄色国产 | 偷拍精偷拍精品欧洲亚洲网站 | 91av在线免费观看 | av一级免费 | 午夜精品久久久久久久久久久 | 国产小视频网站 | 国产va饥渴难耐女保洁员在线观看 | 亚洲婷婷在线 | 日韩中文字幕国产精品 | 国产高清在线免费视频 | 欧美极品xxxxx | av在线免费观看黄 | 日本在线观看黄色 | 久久久久久久久久久黄色 | 99爱这里只有精品 | 成人av免费 | 日本h视频在线观看 | 国产免费黄色 | 久久久久欧美精品999 | 国产自在线 | 成人avav| 久久午夜国产精品 | 狠狠狠综合 | 偷拍福利视频一区二区三区 | 亚洲国产免费看 | 久久新视频 | 国产在线观看免费 | 日韩精品一区二区免费 | www.久草.com | 亚洲国产视频网站 | 亚洲高清不卡av | 91伊人| 国产资源网 | 中文资源在线播放 | 日韩精品一区在线播放 | 亚洲精品国产日韩 | 亚洲电影在线看 | 国产精品a久久 | 一级性av | 97在线视频免费观看 | 在线成人中文字幕 | 亚洲精品欧美专区 | 久久er99热精品一区二区三区 | 精品视频久久久 | 久久久久综合精品福利啪啪 | 国产精品三级视频 | 成人一级在线观看 | 国产福利91精品一区二区三区 | 黄网站色欧美视频 | 91在线精品播放 | 96超碰在线 | 国产精品一区二区在线免费观看 | 国产精品久久久久久超碰 | 丁香激情婷婷 | 美女黄网久久 | 久久免费资源 | 在线观看免费91 | 精品中文字幕视频 | 日本公乱妇视频 | 24小时日本在线www免费的 | 日韩欧美v | 国产精品免费观看网站 | 久久在线视频精品 | 亚洲欧美日韩国产一区二区三区 | 亚洲精品国偷自产在线91正片 | 久久手机免费视频 | 99久久精品一区二区成人 | 免费在线观看国产黄 | 免费观看久久久 | 日韩久久午夜一级啪啪 | 国产亚洲精品久久久久久久久久 | 少妇按摩av | 香蕉在线观看 | av免费电影在线 | 国产精品免费一区二区三区在线观看 | 国产精品高 | 999视频精品 | 成人毛片100免费观看 | 99在线热播 | 国产成人三级三级三级97 | 最近中文字幕高清字幕在线视频 | 国产精品麻豆视频 | 日韩伦理一区二区三区av在线 | 丁香5月婷婷久久 | 特黄特色特刺激视频免费播放 | 五月婷婷综合在线 | 日韩高清一二区 | 中文字幕在线免费观看视频 | 久久好看免费视频 | 色人久久| 日韩免费电影在线观看 | 亚洲精品综合一二三区在线观看 | 香蕉视频国产在线观看 | 手机在线看片日韩 | 9色在线视频 | 日韩免费电影在线观看 | 午夜视频播放 | 国产生活一级片 | 女人高潮特级毛片 | 天天草视频| 91久色蝌蚪| 91av网站在线观看 | 国产中文 | 中文字幕亚洲综合久久五月天色无吗'' | 五月婷婷中文字幕 | 日韩av一区二区在线影视 | 欧美做受xxx | 成人免费xyz网站 | 日韩国产精品久久久久久亚洲 | 视频国产在线观看18 | 日本久久影视 | 99免费视频 | 久久精品亚洲一区二区三区观看模式 | 96精品高清视频在线观看软件特色 | 中文国产成人精品久久一 | 欧美在线观看视频一区二区三区 | 韩国av在线播放 | 狠狠久久 | 在线日本看片免费人成视久网 | 国产美女永久免费 | 在线观看你懂的网站 | 久久99国产精品自在自在app | 国产专区一 | 中文字幕精品久久 | 婷色在线 | 亚州精品国产 | 国产破处精品 | 国产又粗又猛又黄 | 日韩免费一二三区 | 久久成熟 | 精品久操 | 精品久久中文 | 国产精品视频在线观看 | 国产精品女同一区二区三区久久夜 | 色婷婷激情电影 | 久久精品电影院 | 欧美污网站 | 国产99亚洲 | 在线看欧美 | 亚洲国产视频在线 | 国内精品久久久久影院优 | 天天玩天天操天天射 | 国产午夜三级一二三区 | 九九影视理伦片 | 免费在线色 | 国产盗摄精品一区二区 | 丰满少妇一级 | 久久激情五月丁香伊人 | 91精品在线麻豆 | 麻豆影视在线观看 | 国产精品激情偷乱一区二区∴ | 91人人网| 开心色插 | 另类五月激情 | 日韩高清免费观看 | 97视频在线免费 | 麻豆视频成人 | av网站免费线看精品 | 夜夜骑日日 | 国产精品资源在线 | 国产精品第二十页 | 在线视频18在线视频4k | 成人丝袜 | 毛片永久新网址首页 | 久久久久五月天 | 色搞搞 | 日韩在线观看 | 色综合夜色一区 | av中文在线| 狠狠网站 | 一区二区三区四区五区在线视频 | 国产黑丝袜在线 | 人人爽人人爽人人爽 | 91成人欧美 | 黄色毛片视频免费观看中文 | 中文字幕丝袜制服 | 亚洲激色 | 天天干干 | 国产手机视频精品 | 中文国产在线观看 | 九七视频在线 | 精品一区二区免费在线观看 | 美女一二三区 | 日韩成人精品一区二区三区 | 精品国产乱码久久久久久浪潮 | 国产在线精品视频 | 欧美日韩在线视频免费 | 久久国产一区 | 日韩有码第一页 | 亚洲精品黄网站 | 一级黄色片在线免费看 | 久久亚洲综合色 | 在线视频亚洲 | 国产美女精品人人做人人爽 | 久久久影院一区二区三区 | 豆豆色资源网xfplay | 欧美日韩精品区 | 特级毛片在线免费观看 | 日韩av网站在线播放 | 久久久精品福利视频 | 99久高清在线观看视频99精品热在线观看视频 | 欧美最猛性xxxxx免费 | 91夜夜夜| 探花视频免费在线观看 | 日韩一二三| 中文一区二区三区在线观看 | av888av.com | 欧美精品一级视频 | 一区三区在线欧 | 亚洲精品资源在线观看 | 91少妇精拍在线播放 | 久久综合狠狠狠色97 | 欧美极品少妇xxxx | 欧美精品被 | 亚洲精品国产欧美在线观看 | 国产精品v欧美精品 | av电影在线观看 | 精品国产欧美一区二区三区不卡 | 欧美91精品国产自产 | 国产精品毛片一区 | 亚洲狠狠丁香婷婷综合久久久 | 国产精品欧美 | 久久精品国产亚洲aⅴ | 亚洲人久久 | 麻豆精品在线视频 | 色综合www| 麻豆果冻剧传媒在线播放 | 国产精品欧美一区二区三区不卡 | 99av国产精品欲麻豆 | 一区在线电影 | 黄色视屏免费在线观看 | 国产超碰在线观看 | 久久精彩视频 | 操操操com | 久久 国产一区 | 9i看片成人免费看片 | 日韩理论电影网 | 97精品国产97久久久久久 | 91九色蝌蚪国产 | 日日骑 | 国产精品12 | 欧美日韩精品影院 | 久久久久久久久久久福利 | 天天干天天拍天天操天天拍 | 天堂激情网 | 天天摸天天舔天天操 | 国产男女无遮挡猛进猛出在线观看 | 日韩毛片在线一区二区毛片 | 日韩电影在线观看一区二区三区 | 91看片在线免费观看 | 特级西西www44高清大胆图片 | 国产v视频| 99re8这里有精品热视频免费 | 日韩久久视频 | 欧美a级在线 | 国产一区视频在线观看免费 | 中文字幕在线免费观看视频 | 国产精品99免费看 | 免费a网| 成人午夜av电影 | 免费看一及片 | 日韩视频一区二区三区在线播放免费观看 | 在线亚洲欧美日韩 | 高清av中文在线字幕观看1 | 国产91aaa | 91精品国产九九九久久久亚洲 | 国产成人久久精品77777 | 久久99精品视频 | 2023亚洲精品国偷拍自产在线 | 久久av高清 | 国产精品精品久久久久久 | 久久婷五月| 久久精品aaa | 国产无套一区二区三区久久 | 美女av免费看 | 97视频资源 | 亚洲国产精品500在线观看 | 久久精品91久久久久久再现 | 97色婷婷 | 91精品爽啪蜜夜国产在线播放 | 97av在线视频免费播放 | 一级性视频 | 天天夜夜狠狠操 | 丁香婷婷激情国产高清秒播 | 久久久国产视频 | 成人97视频 | 日本最新高清不卡中文字幕 | 最近字幕在线观看第一季 | 欧美视频国产视频 | 欧美一级日韩免费不卡 | 欧美成人h版在线观看 | 手机av片 | 日韩精品字幕 | 狠狠躁日日躁狂躁夜夜躁av | 成年人黄色免费视频 | 亚洲综合欧美精品电影 | 麻豆视频91 | 国产综合在线视频 | 91三级在线观看 | 99精品视频在线看 | 中文字幕黄色网址 | 亚洲粉嫩av | 国产精品白丝av | 日本久久久久久久久久久 | www.综合网.com| 热精品 | 韩国视频一区二区三区 | 国产99免费视频 | 亚洲成人av片 | 中文字幕av电影下载 | 亚洲国产日韩一区 | 精品久久一级片 | 成人午夜网| 国产三级久久久 | www.五月天婷婷 | 婷婷亚洲最大 | 888av | 亚洲国产成人精品在线观看 | 在线观看香蕉视频 | 91禁看片 | 国产精品6 | 色综合久久中文字幕综合网 | 欧美日韩一区二区三区不卡 | 国产一区二区三区在线免费观看 | 精品国产黄色片 | 天天射天天 | 久草网在线视频 | 白丝av免费观看 | 一本一本久久a久久 | 亚洲国产婷婷 | 欧美日韩中文字幕视频 | 91一区二区在线 | 人人爽人人澡 | 日韩色在线观看 | 国产麻豆精品一区二区 | av成人免费在线看 | 免费观看性生活大片 | 国产精品黄网站在线观看 | 国产精品欧美日韩 | 91亚洲视频在线观看 | 中文国产字幕在线观看 | 国产精品久久久久久久av大片 | 久久超碰99| 丰满少妇一级片 | 久99久在线视频 | 国产精品久久久久婷婷二区次 | 国产高清在线看 | 在线 日韩 av | 国产精品女同一区二区三区久久夜 | 国产精品久久久久久久99 | 伊人电影天堂 | 色之综合网 | 99精品国产福利在线观看免费 |