태그 보관물: centos6

centos6

centos 6.5에 Redis 설치 나타납니다. [root@NodeJs ~]# yum install

다음 줄을 사용하여 CentOS 6.5 (x64)에 Redis를 설치하려고합니다.

yum install redis

그러나 다음 화면이 나타납니다.

[root@NodeJs ~]# yum install redis
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: nl.mirror.eurid.eu
 * epel: nl.mirror.eurid.eu
 * extras: mirror.denit.net
 * updates: nl.mirror.eurid.eu
Resolving Dependencies
--> Running transaction check
---> Package redis.x86_64 0:2.8.14-2.el7 will be installed
--> Processing Dependency: systemd for package: redis-2.8.14-2.el7.x86_64
--> Processing Dependency: systemd for package: redis-2.8.14-2.el7.x86_64
--> Processing Dependency: libjemalloc.so.1()(64bit) for package: redis-2.8.14-2.el7.x86_64
--> Running transaction check
---> Package jemalloc.x86_64 0:3.6.0-1.el7 will be installed
---> Package redis.x86_64 0:2.8.14-2.el7 will be installed
--> Processing Dependency: systemd for package: redis-2.8.14-2.el7.x86_64
--> Processing Dependency: systemd for package: redis-2.8.14-2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: redis-2.8.14-2.el7.x86_64 (epel)
           Requires: systemd
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

이 문제를 어떻게 해결할 수 있습니까?



답변

EL7 용 EPEL 리포지토리를 설치했지만 실제로는 EL6을 실행하고 있습니다. epel-release즉, 패키지를 제거하고 sudo yum search epel && sudo yum remove epel-release올바른 패키지로 교체하십시오.

이 문서 에 따르면 Redis는 다음 명령을 실행하여 CentOS6에 설치할 수 있습니다.

// --- Compiling ---
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install

// --- or using yum ---
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-6.rpm

$ yum --enablerepo=remi,remi-test install redis

답변

CentOS 6.5에서 Redis (2.4.10)를 성공적으로 업데이트 한 경험은 다음과 같습니다.

CentOS 6.5에서 Redis를 업데이트하는 방법

  1. 첫째, 반드시 다음의 repos를 확인 EPEL하고 REMI, 설치되어 있습니다 :

    sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    sudo rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-6.rpm
    
  2. 리포지토리 에서 Redis 버전 확인 REMI: (2015 년 6 월 기준, 버전은 2.8.13 )

    yum --enablerepo=remi info redis
    
  3. 그런 다음 repo jemalloc에서 관련 종속성 ( )을 설치하십시오 EPEL.

    sudo yum --enablerepo=epel install jemalloc
    
  4. 설치하기 전에 이전 Redis 데몬을 중지해야합니다.

    sudo service redis stop
    
  5. 그런 다음 최신 버전의 Redis를 설치하십시오.

    sudo yum --enablerepo=remi install redis
    
  6. 필요한 경우 Redis 구성 파일을 편집하십시오.

    sudo vi /etc/redis.conf
    
  7. Redis 데몬을 다시 시작하고 재부팅시 자동 시작되도록합니다.

    sudo service redis start
    sudo chkconfig redis on
    
  8. 마지막으로 현재 설치된 Redis 버전을 확인하십시오.

    redis-cli info | grep redis_version
    

끝난!


답변

EPEL redis 패키지는 구식입니다. RHEL6에서는 Remi ‘s Repository를 사용할 수 있습니다 : http://rpms.famillecollet.com/ . 3.0 및 2.8 버전의 최신 릴리스와 함께 최신 버전입니다.

봐 가지고 여기에 최신 패키지에 대한 설명을.


답변