Redis- установка на CentOS 7

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 14:41, 6 мая 2020; Admin iph (обсуждение | вклад) (Новая страница: «=== Redis- установка на CentOS 7 === # rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # yum install redis # sys…»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск

Redis- установка на CentOS 7

# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
# yum install redis
# systemctl start redis.service
# systemctl enable redis.service
Created symlink from /etc/systemd/system/multi-user.target.wants/redis.service to /usr/lib/systemd/system/redis.service.
# systemctl is-active redis.service
active


# yum install git
# cd /usr/share/
# git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git
Cloning into 'phpRedisAdmin'...
remote: Counting objects: 593, done.
remote: Total 593 (delta 0), reused 0 (delta 0), pack-reused 593
Receiving objects: 100% (593/593), 175.91 KiB | 0 bytes/s, done.
Resolving deltas: 100% (355/355), done.

# cd phpRedisAdmin/includes
# cp config.sample.inc.php config.inc.php

# cd /usr/share/phpRedisAdmin
# composer install 


# vi /etc/httpd/conf.d/redisadmin.conf
<Directory "/usr/share/phpRedisAdmin/"> 
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
  Allow from xxx.xxx.xxx.xxx
 </Directory>   <br />
 Alias /redisAdmin /usr/share/phpRedisAdmin
 Alias /redisadmin /usr/share/phpRedisAdmin


# systemctl restart httpd