Linux installation Redis

Source: Internet
Author: User
Tags download redis zts zend

Download Redis

Redis Port 6379 Netstat-ln | grep 6379 View Port process command,

wget http://download.redis.io/releases/redis-2.6.16.tar.gz

Tar zxvf redis-2.6.16.tar.gz

CD redis-2.6.16.tar.gz

Make Test

Yum Install Tcl

Make Test

Make Prefix=/usr/local/redis Install

Cd/use/local/redis

cp/usr/local/src/redis-2.6.16/redis.conf./

./bin/redis-server./redis.conf

Vim redis.conf Change daemonize to Yes, set auto-start, restart Redis

(Look for characters when editing:/daemonize command to find characters, press N to build the next bar)

Cd/use/local/redis

./bin/redis-server./redis.conf (starting Redis by Profile)

[Email protected] redis]# Netstat-ln |grep 6379

TCP 0 0 0.0.0.0:6379 0.0.0.0:* on behalf of Redis boot success

Install PHP extension compilation

Enter Pecl.php.net:

Cd/usr/local/src

wget http://pecl.php.net/get/redis-2.2.4.tgz

Tar zxvf redis-2.2.4.tgz

CD redis-2.2.4.tgz

LS found no configure

/usr/local/php/bin/phpize

LS found to appear configure

./configure--with-php-config=/usr/local/php/bin/php-config

Make && make install

---------/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/--Copy extension directory

Error:

[Email protected] redis-2.2.4]#/usr/local/php/bin/phpize

Configuring for:

PHP Api version:20131106

Zend Module Api no:20131226

Zend Extension Api no:220131226

Cannot find autoconf. Please check your autoconf installation and the

$PHP _autoconf environment variable. Then, rerun the this script.

Yum Install autoconf

Then run the/usr/local/php/bin/phpize

Introduction of compiled Redis.so

ls/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/found an extra redis.so.

Cd/usr/local/php/lib

Vim php.ini

Add below the Extension=php_shmop.dll

Extension =/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/redis.so

I'll restart it.

Linux installation Redis

Related Article

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.