phpredis - windows下php, redis的插件安装不成功
用的xampp
win7 x64位
php的版本为5.4.4
System Windows NT 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Build Date Jun 13 2012 21:17:57
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
在https://github.com/nicolasff/phpredis... 下了新的phpredis_5.4_vc9_ts.7z版本, 安装进去, 在phpinfo中没有出现相应插件
查看php error log, 报PHP Warning: PHP Startup: in Unknown on line 0, 应该是不兼容
不知道大家类似环境如何配置redis的,谢谢
(换过5.4.7版本的php亦不能安装成功=_=)
回复内容:
用的xampp
win7 x64位
php的版本为5.4.4
System Windows NT 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Build Date Jun 13 2012 21:17:57
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
在https://github.com/nicolasff/phpredis... 下了新的phpredis_5.4_vc9_ts.7z版本, 安装进去, 在phpinfo中没有出现相应插件
查看php error log, 报PHP Warning: PHP Startup: in Unknown on line 0, 应该是不兼容
不知道大家类似环境如何配置redis的,谢谢
(换过5.4.7版本的php亦不能安装成功=_=)
PHP5.4.x 的 redis 扩展 php_redis.dll
扩展下载地址:
https://github.com/nicolasff/phpredis/downloads
包含 Non Thread Safe 和 Thread Safe 两个版本
首先把 php_redis.dll
和 php_igbinary.dll
放入PHP的ext文件夹,
然后在php.ini配置文件里添加如下代码:
<code>extension=php_igbinary.dll extension=php_redis.dll </code>
重启WebServer
注意:
extension=php_igbinary.dll
一定要放在 extension=php_redis.dll
的前面,否则此扩展不会生效。
这里下载 对应版本,我配置没问题的

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Redis cluster mode deploys Redis instances to multiple servers through sharding, improving scalability and availability. The construction steps are as follows: Create odd Redis instances with different ports; Create 3 sentinel instances, monitor Redis instances and failover; configure sentinel configuration files, add monitoring Redis instance information and failover settings; configure Redis instance configuration files, enable cluster mode and specify the cluster information file path; create nodes.conf file, containing information of each Redis instance; start the cluster, execute the create command to create a cluster and specify the number of replicas; log in to the cluster to execute the CLUSTER INFO command to verify the cluster status; make

The future of PHP will be achieved by adapting to new technology trends and introducing innovative features: 1) Adapting to cloud computing, containerization and microservice architectures, supporting Docker and Kubernetes; 2) introducing JIT compilers and enumeration types to improve performance and data processing efficiency; 3) Continuously optimize performance and promote best practices.

How to clear Redis data: Use the FLUSHALL command to clear all key values. Use the FLUSHDB command to clear the key value of the currently selected database. Use SELECT to switch databases, and then use FLUSHDB to clear multiple databases. Use the DEL command to delete a specific key. Use the redis-cli tool to clear the data.

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.

PHP remains important in modern web development, especially in content management and e-commerce platforms. 1) PHP has a rich ecosystem and strong framework support, such as Laravel and Symfony. 2) Performance optimization can be achieved through OPcache and Nginx. 3) PHP8.0 introduces JIT compiler to improve performance. 4) Cloud-native applications are deployed through Docker and Kubernetes to improve flexibility and scalability.

To read a queue from Redis, you need to get the queue name, read the elements using the LPOP command, and process the empty queue. The specific steps are as follows: Get the queue name: name it with the prefix of "queue:" such as "queue:my-queue". Use the LPOP command: Eject the element from the head of the queue and return its value, such as LPOP queue:my-queue. Processing empty queues: If the queue is empty, LPOP returns nil, and you can check whether the queue exists before reading the element.

The reasons why PHP is the preferred technology stack for many websites include its ease of use, strong community support, and widespread use. 1) Easy to learn and use, suitable for beginners. 2) Have a huge developer community and rich resources. 3) Widely used in WordPress, Drupal and other platforms. 4) Integrate tightly with web servers to simplify development deployment.
