Install Redis in php in Linux and redis in linuxphp

Source: Internet
Author: User
Tags download redis vc9 install redis

Install Redis in php in Linux and redis in linuxphp

1. Download redis-2.4.14.tar.gz

2. Decompress tar-zxvf redis-2.4.14.tar.gz

3. cd redis-2.4.14

4. make

 

 

Note: Error

1. CC adlist.0

Solution: yum install gcc-c ++ kernel-devel

Install gcc

 

2. If the make statement fails

Solution: use make MALLOC = libc

 

3. ~] # Redis-cli
Cocould not connect to Redis at 127.0.0.1: 6379: Connection refused

Solution:

1. Copy an object
Configuration File started by redis when cp redis. conf/etc/is used

Note: by defaultRedis. confFileDaemonizeThe parameter isNo, change to yes

 


An error occurred while installing redis extension in php.

Your php is compiled by VC6.

Your php_redis.dll is compiled by VC9.
This causes incompatibility.
Find php_redis.dll of VC6.
Or
Reinstall php of VC9
Yes.

Add redis extension in php

Check the error log ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.