安装 phpRedisAdmin 笔记

来源:互联网 发布:linux基础入门ppt 编辑:程序博客网 时间:2024/05/01 21:12
默认安装好 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 install

or

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 the predis folder will be called vendor.