在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

redis基本安装判断、启动使用方法示例

96次阅读
没有评论

共计 2467 个字符,预计需要花费 7 分钟才能阅读完成。

自动写代码机器人,免费开通

这篇文章给大家分享的是有关 redis 基本安装判断、启动使用方法示例的内容。丸趣 TV 小编觉得挺实用的,因此分享给大家做个参考,一起跟随丸趣 TV 小编过来看看吧。

redis 基本安装判断、启动使用方法,具体如下:

1、Redis 对否安装(安装好了会出现下面对应的代码)

[root]$ whereis redis-cli
redis-cli: /usr/local/bin/redis-cli
[root]$
[root]$ whereis redis-server
redis-server: /usr/local/bin/redis-server

2、启动 Redis

输入代码

redis-server  
30733:C 09 Dec 14:45:30.876 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
30733:M 09 Dec 14:45:30.879 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
30733:M 09 Dec 14:45:30.879 # Server can t set maximum open files to 10032 because of OS error: Operation not permitted.
30733:M 09 Dec 14:45:30.879 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase  ulimit -n .
[root]$ _._
 _.-``__  -._
 _.-`` `. `_.  -._ Redis 3.2.0 (00000000/0) 64 bit
 .-`` .-```. ```\/ _.,_  -._
 (   , .-` | `, ) Running in standalone mode
 |`-._`-...-` __...-.``-._| ` _.- | Port: 6379
 | `-._ `._ / _.-  | PID: 30733
 `-._ `-._ `-./ _.-  _.- 
 |`-._`-._ `-.__.-  _.- _.- |
 | `-._`-._ _.- _.-  | http://redis.io
 `-._ `-._`-.__.- _.-  _.- 
 |`-._`-._ `-.__.-  _.- _.- |
 | `-._`-._ _.- _.-  |
 `-._ `-._`-.__.- _.-  _.- 
 `-._ `-.__.-  _.- 
 `-._ _.- 
 `-.__.- 
30733:M 09 Dec 14:45:30.900 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
30733:M 09 Dec 14:45:30.900 # Server started, Redis version 3.2.0
30733:M 09 Dec 14:45:30.901 # 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.
30733:M 09 Dec 14:45:30.901 # 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.
30733:M 09 Dec 14:45:30.902 * The server is now ready to accept connections on port 6379

3. 判断 Redis 是否启动

[root]# redis-cli -p 6379
127.0.0.1:6379  ping
127.0.0.1:6379

感谢各位的阅读!关于“redis 基本安装判断、启动使用方法示例”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

向 AI 问一下细节

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-12-04发表,共计2467字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 未满十八勿入av网免费 | 久久久久久网址 | 67pao国产成视频永久免费 | 日韩中文字幕在线免费观看 | 人妻少妇精品无码专区二区 | 亚洲精品自产拍在线观看动漫 | 麻豆影视在线观看 | 激情视频在线播放 | yy111111少妇无码理论片 | 久久久久亚洲av无码专区首 | 国产美女在线精品免费观看 | 欧美第一页草草影院浮力 | 欧美日本一区二区三区道 | 国产3区| 两性色午夜视频免费无码 | 伊人色综合久久成人 | av无码久久久久不卡蜜桃 | 国产a v无码专区亚洲av | 国产亚洲精品成人一区看片 | 国产亚洲精品aa片在线观看网站 | 天堂中文8资源在线8 | 欧美日韩一区二区成人午夜电影 | 免费看a | 国产偷抇久久精品a片69 | 免费国精产品自偷自偷免费看 | 四虎av永久在线精品免费观看 | 亚洲精品国精品久久99热 | 久热国产在线 | 久在线视频| 婷婷午夜天 | 一级毛片日韩a欧美视频 | 18禁无码永久免费无限制网站 | 欧美.成人.综合在线 | 国产精品免费观在线 | 伊人久久综合网站 | 成人精品 | 国产av人人夜夜澡人人爽 | 我把护士日出水了视频90分钟 | 亚洲成av人片一区二区密柚 | www.-级毛片线天内射视视 | 男女一边桶一边摸一边脱视频免费 |