21.03.2022 — Command, DevOps — 1 min read
Copycopy code to clipboardredis-server
redis-server
Copycopy code to clipboardredis-cli ping# 응답 결과: PONG
redis-cli ping# 응답 결과: PONG
Copycopy code to clipboardredis-cli shutdown
redis-cli shutdown
Copycopy code to clipboardredis-cli -p {포트번호}
redis-cli -p {포트번호}
Copycopy code to clipboardselect {변경할 DB 번호}
select {변경할 DB 번호}
Copycopy code to clipboardkeys {패턴}
keys {패턴}
Copycopy code to clipboardflushall
flushall