• 카테고리

    질문 & 답변
  • 세부 분야

    데이터 엔지니어링

  • 해결 여부

    미해결

install: cannot stat `redis-server': No such file or directory

21.05.29 19:00 작성 조회수 659

0

1. 5.0.7버전이 설치되지 않아서 

5.0.12로 받았습니다. 

$wget https://download.redis.io/releases/redis-5.0.12.tar.gz?_ga=2.40618850.1345708448.1622279180-514346573.1622279180

https://redis.io/download

2.make 실행시 

에러가 나고

install: cannot stat `redis-server': No such file or directory

make[1]: *** [redis-sentinel] Error 1

make[1]: Leaving directory `/home/pilot-pjt/redis-5.0.12/src'

make: *** [all] Error 2

3. 인스텔실행시 정상적으로 되지 않습니다. 

radis-server를 만들어야 하는거 같은데 어떻게 만들어야 할지 모르겠습니다. 

하기는 임의 폴더 만들었을때. .. 더 찾아보니..pid파일이라고하네요...;

s

추가.. 검색하면이 이것저것 보고있는데.. 하기 확인한사항입니다. 

1. .stable 버전도 동일하게 make시  redis-server 문제가 나네요. 

2. /etc/redis/redis.conf 파일 존재하지 않습니다.

답변 6

·

답변을 작성해보세요.

0

Moon-Kee Bahk님의 프로필

Moon-Kee Bahk

2022.05.20

sclo 부분은 아래와 같은 에러가 납니다. 대안이 없을까요?

[root@server02 ~]# echo "http://vault.centos.org/6.10/sclo/x86_64/rh" > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt

-bash: /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt: No such file or directory

[root@server02 ~]# echo "http://vault.centos.org/6.10/sclo/x86_64/sclo" > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt

-bash: /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt: No such file or directory

[root@server02 ~]#

안녕하세요! Moon-Kee Bahk님!

해당문제는 로컬 디렉토리에 sclo 경로가 없어져서 인데요..^^;

아래와 같이 강제 생성후 진행 하지면 발생하지 않습니다~

 

#####  sclo 경로 생성

$ mkdir /var/cache/yum/x86_64/6/centos-sclo-rh

$ mkdir /var/cache/yum/x86_64/6/centos-sclo-sclo

 

- 빅디 드림

0

hkjung님의 프로필

hkjung

2021.08.11

교육자료의 아래 내용을 실행해도 동일합니다.

Tip. yum install 명령시 "removing mirrorlist with no valid mirrors:.." 발생하면 아래 명령 실행

$ rm /etc/yum.repos.d/cloudera-manager.repo

$ echo "http://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt

$ echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt

$ echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt

안녕하세요! hkjung님!

저의 파일럿 환경에서 아래 명령후 테스트를 해봤을땐 문제 없이 Redis가 설치 되었습니다.

sclo 미러 리스트까지 추가해서 아래 5개 명령후 설치해봐 주세요~

$ echo "http://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
$ echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
$ echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt
$ echo "http://vault.centos.org/6.10/sclo/x86_64/rh" > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt
$ echo "http://vault.centos.org/6.10/sclo/x86_64/sclo" > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt

- 빅디 드림

0

hkjung님의 프로필

hkjung

2021.08.11

Redis 설치시 오류납니다.

-----------------------------------------------------

login as: root

root@192.168.56.102's password:

Last login: Wed Aug 11 17:04:22 2021 from 192.168.56.1

[root@server02 ~]# yum install -y gcc*

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Determining fastest mirrors

YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

 Eg. Invalid release/repo/arch combination/

removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/updates/mirrorlist.txt

Error: Cannot find a valid baseurl for repo: updates

[root@server02 ~]#

0

상기 메모리 문제였던것같습니다. 컴퓨터 포멧후 다시 실행하니까 문제 없이 실행됩니다. 

0

http://download.redis.io/releases/redis-5.0.7.tar.gz 

>> 지금은되네요. 아까는 인터넷브라우에 쳤는데도 안되었어요;ㅜㅜ

동일하게 파일압축풀고 make해도. 동일하네요

오늘하루.. 꼬박.. 이것때문에 진도가안나가고있네요;ㅜㅜㅜ

아무래도 처음부터 다시시작해야할것같네요... gcc설치때부터 컴퓨터가 이상해서 리무브 하고 다시 설치했는데. 진행이안되네요. 

gcc 설치가 꼬이면 Redis에서 "zmalloc...No such file 블라블라.." 에러가 왕왕 발생 합니다.

그때는 아래 절차대로 진행해 주세요!!

$ cd /home/pilot-pjt/redis-5.0.7/deps

$ make hiredis jemalloc linenoise lua

$ cd ..

아래부턴 강의내용과 동일 합니다.

$ make  

$ make install

$ cd /home/pilot-pjt/redis-5.0.7/utils

$ chmod 755 install_server.sh

.

.

0

안녕하세요! 빅디 입니다.

아마도 버젼마다 설치 방법에 조금씩 차이가 있을 수 있습니다.

그전에 Redis-5.0.7 버젼을 설치중 어떠한 문제가 있었는지요?!

일단 다운로드는 잘 되는 것으로 확인 되는데요..

http://download.redis.io/releases/redis-5.0.7.tar.gz

- 빅디 올림