NoSQL/Redis
Redis Standalone 서버 구축
muyeon
2023. 12. 8. 10:19
우분투에서 사용자 계정 생성
sudo useradd redis
sudo passwd redis
이후 비밀번호 입력
Redis 설치
https://muyeon95.tistory.com/295
Redis 서버를 위한 환경설정 파일 생성
cd /home/redis
cp redis.conf redis_5000.conf
vi redis_5000.conf
daemonize no
port 5000
logfile "/home/redis/redis_5000.log"
Redis Server 인스턴스 시작
src/redis-server /home/redis/redis_5000.conf
클라이언트 접속 후 테스트
./redis-cli -p 5000
127.0.0.1:5000> info
- info 명령어 : Redis Server 상태 확인
- redis_mode : 운영 중인 Redis 서버 유형
- run_id : 현재 운영 중인 Redis Process ID
- tcp_port : Redis 서버 Port
127.0.0.1:5000> set foo bar
127.0.0.1:5000> get foo