Redis

Redis

JunsC 2024. 2. 4. 22:22
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

 

Start Redis Server

$ src/redis-server  redis.conf Redis 5.0.5 (00000000/0) 64 bit Running in standalone mode Port: 6379 PID: 3461       http://redis.io --> 3461:M 02 Jan 13:58:59.582 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/

redisgate.kr

 

 

728x90

'Redis' 카테고리의 다른 글

Redis.. 정렬!!  (0) 2024.06.09
"이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."