인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

jaenam615님의 프로필 이미지

작성한 질문수

레디스의 모든 것 (feat. Node.js)

systemctl restart redis-study 문제

작성

·

105

·

수정됨

0

[root@localhost system]# systemctl restart redis-study

Job for redis-study.service failed because a timeout was exceeded.

See "systemctl status redis-study.service" and "journalctl -xeu redis-study.service" for details.

systemctl restart redis-study를 실행하면 위와 같은 오류가 뜹니다.
이후 enable 도 안되어서 이 부분에서 걸려있는데, 로그를 확인해봐도 timeout때문에 실패했다는 문구만 뜹니다.

혹시 문제가 어디서 발생했을까요...?

[메모리 테스트: redis-server --test-memory 2]

Your memory passed this test.

Please if you are still in doubt use the following two tools:

1) memtest86: http://www.memtest86.com/

2) memtester: http://pyropus.ca/software/memtester/

 

[conf 파일 체크: redis-server /redis/redis-stable/redis.conf --check-config]

 

*** FATAL CONFIG FILE ERROR (Redis 7.4.1) ***

Reading the configuration file, at line 2328

>>> 'check-config'

Bad directive or wrong number of arguments

이걸 확인해보면 conf파일 문제인 것 같은데, 강의에서 conf 파일을 건드리는 부분이 없었던 걸로 기억합니다.

답변 1

0

yongsoocho님의 프로필 이미지
yongsoocho
지식공유자

journalctl 을 함께 보면 좋은데, 현재 에러 메세지로는 conf 파일 문법이 틀린거 같습니다.

 

  1. vi /redis/redis-stable/redis.conf 로 vi 에디터 켜기

  2. :2328 입력으로 2328번째 줄로 이동하기 (이동 키는 G 입니다.)

  3. 주석 미처리, 띄어쓰기, parameter 타입 오류 등... 해결

  4. :wq 로 저장 후 다시 시도

 

해당 방법으로도 안된다면, journalctl 이나 status 상세 옵션으로 로그 부탁드립니다 🙂