728x90
Mac 에서 Redis 실행 명령어
로컬 레디스 시작
brew services start redis
레디스cli 접속
redis-cli —raw
레디스 종료
brew services stop redis
.Lua 파일 실행 명령어
redis-cli EVAL "$(cat /파일 경로)" 0
redis-cli EVAL "$(cat /파일 경로)" 1 personList 150 200
리눅스 centos7 에서 redis 실행 명령어
redid start and stop command in Linux
sudo systemctl stop redis //멈춤
sudo systemctl start redis // 시작
sudo systemctl restart redis // 재시작
sudo systemctl status redis // 상태확인
redis-cli ping // 연결확인
Redis 파일 db 백업할 위치 알아보는 방법
redis-cli --raw
config get dir
redis 설정 관련 사이트
http://redisgate.kr/redis/configuration/redis_start.php#redis_start_msg_stop
728x90
'Redis' 카테고리의 다른 글
Redis.. 정렬!! (0) | 2024.06.09 |
---|