安裝成功後,Redis會自動啟動
2. 查詢啟動:
ps aux | grep redis
redis 1505 0.0 0.6 39856 6692 ? Ssl 18:17 0:00 /usr/bin/redis-server 127.0.0.1:6379
ubuntu 1523 0.0 0.2 11752 2176 pts/0 S+ 18:19 0:00 grep --color=auto redis
netstat -nlt | grep 6379
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
或是
sudo /etc/init.d/redis-server status
redis-server is running
3. Redis Configuration
- /etc/redis/redis.conf
- redis-cli
- 127.0.0.1:6379> ping
6. shutdown
- 127.0.0.1:6379> SHUTDOWN
7. exit
- 127.0.0.1:6379> exit
8. 啟動
- redis-server
or - redis-server /etc/redis/redis.conf
小技巧:
redis shell裏面可以使用tab鍵來自動完成指令。
參考:
- apt-get 指令快查
http://blog.xuite.net/jyoutw/xtech/39380855-Ubuntu+%E6%96%87%E5%AD%97%E6%A8%A1%E5%BC%8F%E5%A5%97%E4%BB%B6%E7%AE%A1%E7%90%86%E6%8C%87%E4%BB%A4 - redis非apt-get 安裝法
http://redis.io/topics/quickstart - https://www.linode.com/docs/databases/redis/redis-on-ubuntu-12-04-precise-pangolin
- http://redisdoc.com/server/shutdown.html
- http://www.w3cschool.cc/redis/server-shutdown.html
- 指令查詢
http://redisdoc.com/
沒有留言:
張貼留言