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