redis-server /usr/redis/redis.conf
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.8.3 (00000000/0) 64 bit
.-`` .-". "\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 2658
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[2658] 24 Mar 19:55:30.836 # Server started, Redis version 2.8.3
[2658] 24 Mar 19:55:30.836 * The server is now ready to accept connections on port 6379
redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>
今天下午重啟了一下伺服器,然後就這樣了,求教怎麼解決?
你是執行 redis-server /usr/redis/redis.conf 後結束指令再執行 redis-cli 嗎 這樣
得讓redis-server 在背景運作