File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 2
2
> Unix like shell module for redis.
3
3
4
4
## resources:
5
+ + http://www.jianshu.com/p/17e4bc176ed7
5
6
6
7
## commands:
7
8
@@ -16,3 +17,33 @@ Data dir : /var/lib/redis/6379
16
17
Executable : /usr/local/bin/redis-server
17
18
Cli Executable : /usr/local/bin/redis-cli
18
19
```
20
+
21
+
22
+ ## download && install:
23
+ ``` bash
24
+ wget http://download.redis.io/redis-stable.tar.gz
25
+ tar -zxvf redis-stable.tar.gz
26
+ cd redis-stable
27
+ make
28
+ make install
29
+
30
+
31
+ cd utils/
32
+ # 执行脚本,然后一路回车都按照默认设置执行
33
+ ./install_server.sh
34
+
35
+ ```
36
+
37
+ ## usage:
38
+ ``` bash
39
+ # 查看是否启动redis服务
40
+ ps -ef | grep redis
41
+ # 启动
42
+ /etc/init.d/redis_6379 start
43
+ # 通过配置文件启动
44
+ /usr/local/bin/redis-server /etc/redis/redis.conf
45
+ # 关闭
46
+ /etc/init.d/redis_6379 stop
47
+ # 关闭,假如是默认端口号,可以省略 -p 参数
48
+ /usr/local/bin/redis-cli -p 6379 shutdown
49
+ ```
You can’t perform that action at this time.
0 commit comments