博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux Redis 草稿
阅读量:7088 次
发布时间:2019-06-28

本文共 1837 字,大约阅读时间需要 6 分钟。

hot3.png

Linux操作系统选用Ubuntu 14.04, Redis的版本选取目前的最新稳定版本2.8.9。 客户端选用了Redis的Java版本jedis 2.4.2。

Redis的安装步骤
a. 下载Redis的安装包
wget http://download.redis.io/releases/redis-2.8.9.tar.gz
tar xvfz redis-2.8.9.tar.gz
cd redis-2.8.9
sudo apt-get install make
sudo make
sudo make install
 find / -name 'redis*'
 /usr/local/bin/redis-server
[3671] 10 Sep 13:59:53.818 # Warning: no config file specified, using the default config. In order to specify a config file use /usr/local/bin/redis-server /path/to/redis.conf
[3671] 10 Sep 13:59:53.821 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
[3671] 10 Sep 13:59:53.822 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
[3671] 10 Sep 13:59:53.823 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 2.8.9 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in stand alone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 3671
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'
[3671] 10 Sep 13:59:53.828 # Server started, Redis version 2.8.9
[3671] 10 Sep 13:59:53.829 # 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.
[3671] 10 Sep 13:59:53.829 * The server is now ready to accept connections on port 6379

转载于:https://my.oschina.net/kenzheng/blog/547197

你可能感兴趣的文章
【Android游戏开发之六】在SurfaceView中添加组件!!!!并且相互交互数据!!!!...
查看>>
在SUSE LINUX中如何用命令行关闭防火墙?
查看>>
IdentityServer4之Clients、Scopes、Claims与Token关联
查看>>
HTML中拖放介绍
查看>>
BAT面试题系列 基础篇(二) 数组(Array)和列表(ArrayList)的区别?什么时候应该使用Array而不是ArrayList?...
查看>>
(转)淘宝技术发展
查看>>
Masonry学习分享
查看>>
跨域 - jsonp轻松搞定跨域请求
查看>>
[转载]我的Java后端书架 (2016年暖冬4.0版)
查看>>
操作系统常见面试题
查看>>
linux常用命令 history命令
查看>>
Angular4.x跨域请求
查看>>
ORA-02292违反完整约束和ORA-02297无法禁用约束条件 cascade禁用主键
查看>>
数据库时间类型和 util 包下时间类型转换
查看>>
Python 之网络编程
查看>>
AtCoder Grand Contest 030题解
查看>>
《JavaScript编程精解》读书笔记目录汇总
查看>>
C++之string类
查看>>
数据结构相关概念
查看>>
BEX5下实现鼠标滚动滚动条
查看>>