Basic knowledge of PHP ———— PHP5-CLI installation and installation of Phpredis

Source: Internet
Author: User

After the system is installed, it is best to perform the following commands to update the software

sudo apt-get update

Installing PHP5-CLI

Apt-get Install PHP5-CLI

Download Phpredis

wget https://github.com/nicolasff/phpredis/zipball/master-o php-redis.zip

Extract

Unzip Php-redis. zip apt-get install unzipunzip php

Go to unzip directory, execute Phpize

CD phpredis-phpredis-b718ce0/phpize

Prompt error:

Command ' Phpize5 ' from the package ' Php5-dev ' (main)

Install this: Php5-dev

Apt-get Install Php5-dev

To find the configuration file:

Find/-name  php-config
./configure--with-php-config=/usr/bin/php-config

Generate shared libraries (such as redis.so)

Makemake test

Installation:

Make install

Check whether the installation was successful:

[Email protected]:/home/www/php_test# php-m | grep Redis
Redis

Installation Complete

Learn from the documentation:

Http://doc3.workerman.net/appendices/install-extension.html

Basic knowledge of PHP ———— PHP5-CLI installation and installation of Phpredis

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.