Skip to content

Commit 22a2d22

Browse files
authored
Update Redis-Install-And-Settings.md
1 parent ea10724 commit 22a2d22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

markdown-file/Redis-Install-And-Settings.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ aof-rewrite-incremental-fsync yes
107107
- 改为新值:`daemonize yes`
108108
- 启动:`/usr/local/bin/redis-server /etc/redis.conf`
109109
- 关闭:`redis-cli -h 127.0.0.1 -p 6379 shutdown`
110-
- 查看是否启动:`ps -ef | grep redis`
110+
- 关闭(带密码):`redis-cli -h 127.0.0.1 -p 6379 -a 123456 shutdown`
111+
       - 查看是否启动:`ps -ef | grep redis`
111112
- 进入客户端:`redis-cli`
112113
- 关闭客户端:`redis-cli shutdown`
113114
- 开机启动配置:`echo "/usr/local/bin/redis-server /etc/redis.conf" >> /etc/rc.local`

0 commit comments

Comments
 (0)