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