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

[lk@localhost /]$ whereis redis-cli
redis-cli: /usr/local/bin/redis-cli
[lk@localhost /]$
[lk@localhost /]$ whereis redis-server
redis-server: /usr/local/bin/redis-server

说明已经安装好了,如果不知道怎么安装,告诉你一个简单的方法,一步就可以把php、php-redis拓展,redis-server,redis-cli这三个装起来。
参考链接:http://blog.csdn.net/zhezhebie/article/details/73325663

接着就把redis-server加入快捷键,谁都不想每次敲一长串地址:
参考链接:http://blog.csdn.net/zhezhebie/article/details/71641326
2、启动Redis

输入代码

redis-server &
[lk@localhost /]$ redis-server &
[]
[lk@localhost /]$ :C Jul ::41.387 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
:M Jul ::41.388 # You requested maxclients of requiring at least max file descriptors.
:M Jul ::41.389 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
:M Jul ::41.389 # Current maximum open files is . maxclients has been reduced to to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.0. (/) bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port:
| `-._ `._ / _.-' | PID: 128054
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-' :M Jul ::41.391 # WARNING: The TCP backlog setting of cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of .
:M Jul ::41.391 # Server started, Redis version 3.0.
:M Jul ::41.392 # WARNING overcommit_memory is set to ! 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.
:M Jul ::41.392 # 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.
:M Jul ::41.392 * The server is now ready to accept connections on port

3.判断Redis是否启动

[root@localhost myredis]# redis-cli -p 6379
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>

最新文章

  1. H5 Notes:PostMessage Cross-Origin Communication
  2. UVA1586
  3. Delphi使用ADO进行数据库编程
  4. 记录Qt的一个诡异Bug
  5. linux命令行netstat总结
  6. Android:密码显示隐藏
  7. 精妙SQL语句 基础
  8. CoordinatorLayout的使用
  9. Cocos2d-X使用CCAnimation创建动画
  10. python3 使用代理
  11. KindEditor自动过滤首行缩进和全角空格的解决方法
  12. Nginx系列4:用GoAccess实现可视化并实时监控access日志
  13. 关于Djanggo的环境变量
  14. 简易数据库实现 UNIX环境高级编程(APUE)第二十章 A Database Library
  15. Vue 系列之 样式相关
  16. CSS的再深入3(更新中···)
  17. XML与DataSet的相互转换
  18. Zindex和png
  19. 每天一道剑指offer-二叉树的下一个结点
  20. face++

热门文章

  1. 洛谷 P3338 [ZJOI2014]力
  2. 《机器学习技法》---AdaBoost算法
  3. 性能测试学习第四天-----loadrunner:jdbc批量制造测试数据 & controller应用
  4. tracert和traceroute介绍
  5. Java笔记(持续更新中)
  6. 多线程与高并发(五) Lock
  7. Oracle数据库之Oracle的下载与安装
  8. Linux浏览创建文件
  9. 实战docker,编写Dockerfile定制tomcat镜像,实现web应用在线部署
  10. go语言实现分布式对象存储系统之单体对象存储