国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > Redis > 正文

redis基本安裝判斷、啟動使用方法示例

2020-10-28 21:28:26
字體:
來源:轉載
供稿:網友

本文實例講述了redis基本安裝判斷、啟動使用方法。分享給大家供大家參考,具體如下:

1、Redis對否安裝(安裝好了會出現下面對應的代碼)

[root]$ whereis redis-cliredis-cli: /usr/local/bin/redis-cli[root]$[root]$ whereis redis-serverredis-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.conf30733: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.030733: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 6379127.0.0.1:6379> pingPONG127.0.0.1:6379>

希望本文所述對大家Redis數據庫程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 库伦旗| 潮安县| 南漳县| 宝应县| 文水县| 耒阳市| 延安市| 永善县| 北安市| 奉化市| 正安县| 盈江县| 临汾市| 揭西县| 巨野县| 嘉定区| 高清| 高雄市| 双城市| 潼南县| 彝良县| 古蔺县| 南丰县| 神木县| 尼木县| 平利县| 中卫市| 宝应县| 河北区| 克山县| 长寿区| 邵东县| 双柏县| 陆川县| 宿迁市| 呼玛县| 崇明县| 富锦市| 永靖县| 桃源县| 乡宁县|