Skip to content

Commit c95f67d

Browse files
committed
update docs
1 parent 278587a commit c95f67d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.MD

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
> Unix like shell module for redis.
33
44
## resources:
5+
+ http://www.jianshu.com/p/17e4bc176ed7
56

67
## commands:
78

@@ -16,3 +17,33 @@ Data dir : /var/lib/redis/6379
1617
Executable : /usr/local/bin/redis-server
1718
Cli Executable : /usr/local/bin/redis-cli
1819
```
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+
```

0 commit comments

Comments
 (0)