作者:那年冬天2502861741 | 来源:互联网 | 2023-06-04 16:56
后端开发|php教程在homesteadphp7的ubuntu环境中安装phpredis扩展的方法后端开发-php教程转载:https:laracasts.comdiscussch
后端开发|php教程
在homestead php7的ubuntu环境中安装 php redis扩展的方法
后端开发-php教程
转载:https://laracasts.com/discuss/channels/tips/tutorial-guide-installing-php-redis-on-fresh-install-homestead-with-php7
区域找图源码,ubuntu批量重启电脑,tomcat日志按大小轮转,python爬虫有多强,南昌php后端工资组成,seo优化培训班seo博客lzw
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!
java的源码,ubuntu下安装qnx,基金数据下载爬虫,php加密php代码方法,丰台seo教程lzw