转载:https://laracasts.com/discuss/channels/tips/tutorial-guide-installing-php-redis-on-fresh-install-homestead-with-php7
vagrant@homestead:~$ sudo apt-get updatevagrant@homestead:~$ git clone -b php7 https://github.com/phpredis/phpredis.gitvagrant@homestead:~$ sudo mv phpredis/ /etc/vagrant@homestead:~$ cd /etc/phpredisvagrant@homestead:/etc/phpredis$ phpizevagrant@homestead:/etc/phpredis$ ./configurevagrant@homestead:/etc/phpredis$ make && make installNote This is an Extension You Need to Enable to Make it Work in Php 7This First Command Will Allow You To Call PHPREDIS Facade in Browservagrant@homestead:/etc/phpredis$ sudo vim /etc/php/7.0/fpm/conf.d/redis.iniInside Vim Paste thisextension=/etc/phpredis/modules/redis.so:w! ->write/save:q ->exit vimNOTE This Extension needs To be Enable in PHP ini to ENABLE it on your Command Line Interface Such As Artisan.The Usual Problem You Will Face If You Wont do this is Get a Redis Class Not Foundvagrant@homestead:/etc/phpredis$ sudo vim /etc/php/7.0/cli/php.inithen Look for this Word CLI ServerType/CLI Server Add to the last line of extensionextension=/etc/phpredis/modules/redis.so:w! ->write/save:q ->exit vimvagrant@homestead:/etc/phpredis$ sudo service php7.0-fpm restartvagrant@homestead:/etc/phpredis$ sudo service nginx restartTo Test if PhpRedis Extension is Workingphp -r "if (new Redis() == true){ echo \"\r\n OK \r\n\"; }"It Should Return OK!
Raza Microelectronics, Inc.(RMI公司)是勇于创新的信息基础架构半导体解决方案领导厂商,其产品广泛地被应用于改善不断演进的信息基础设施。在这个演进过程中,数据中心和家庭之间的连接在强度和速率方面都逐渐升级;安全和智能化已经成为每一个网络系统环境的要求;同时,边缘网络日益成为瓶颈,促使业界需要更具扩展能力及成本优势的智能网络接入方法。RMI公司为信息基础架构设计并提供多样化的解决方案,为下一代灵活的企业和数据中心应用、智能接入和数字影像系统奠定基础。 RMI远程方法调用目录 一、
0
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号