默认安装好 lamp、redis、php-redis已安装好(yum 安装)
1、首先安装git:执行:
yum install -y git
2、下载
phpRedisAdmin
git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git
执行
git submodule init
git submodule update
然后移动到/var/www/html目录下面
重启apache
这时候运行是会提示找不到autoload文件:
3、 然后执行
git clone https://github.com/nrk/predis.git vendor
然后复制到 /var/www/html/
phpRedisAdmin下面,就ok了
附:
https://github.com/ErikDubbelboer/phpRedisAdmin/issues/29
Q:
The "/../vendor/autoload.php" doesn't exist?
A:Did you either run
curl -s http://getcomposer.org/installer | php
php composer.phar installor
git clone https://github.com/nrk/predis.git vendor
successfully?
If you use the second command it will be the same as
predis/autoload.php
yes, except that thepredis
folder will be calledvendor
.