Linux下Redis启动没有命令行了

Jacky【YL】 2016-06-01 09:50:43
[centos@localhost 8001]$ redis-server redis.conf
16016:M 01 Jun 09:48:14.675 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
16016:M 01 Jun 09:48:14.675 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
16016:M 01 Jun 09:48:14.675 # 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'.
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.2.0 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 8001
| `-._ `._ / _.-' | PID: 16016
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'

16016:M 01 Jun 09:48:14.677 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
16016:M 01 Jun 09:48:14.677 # Server started, Redis version 3.2.0
16016:M 01 Jun 09:48:14.678 # 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.
16016:M 01 Jun 09:48:14.678 # 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.
16016:M 01 Jun 09:48:14.678 * DB loaded from disk: 0.000 seconds
16016:M 01 Jun 09:48:14.678 * The server is now ready to accept connections on port 8001


如何退出并且显示Linux的命令输入????
...全文
863 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Zh_Rui0831 2016-06-01
  • 打赏
  • 举报
回复
你是想让redis后台运行吗?可以修改redis.conf配置 ,将daemonize yes改为no,再执行redis-server redis.conf看看。 redis命令行 ./redis-cli -p 8001

18,771

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧