There are 3 ways of writing
First Kind
Yum Install Php-pecl-memcache
The second Kind
Tar vxzf memcache-2.2.1.tgz
CD memcache-2.2.1
/usr/local/php/bin/phpize
./configure--enable-memcache--with-php-config=/usr/local/php/bin/php-config--with-zlib-dir
Make
Make install
Third Kind
Enter the directory after LNMP decompression, execute:./memcached.sh
The memcache PHP extension and memcached are automatically installed when you enter the confirmation.
These 3 kinds are all the same??? There's no difference, I'm dizzy.
Reply to discussion (solution)
The first requires you to install Yum to install Php-memcache in this way
The second is to download the Memcache installation package, in this machine decompression, compile and install, the most basic installation method.
Third, INMP inside the memcached.sh already contains the second kind of all execution statements, directly executed./memcached.sh is the second way to install
Three kinds are the same, if you are not familiar with the use of Yum that is better.
The first requires you to install Yum to install Php-memcache in this way
The second is to download the Memcache installation package, in this machine decompression, compile and install, the most basic installation method.
Third, INMP inside the memcached.sh already contains the second kind of all execution statements, directly executed./memcached.sh is the second way to install
Three kinds are the same, if you are not familiar with the use of Yum that is better.
There's a difference in my third way of installing with Php-m | grep Memcach can't find it.
Then use a kind of can. There may be something wrong with what is written in memcached.sh.
In the process of fertilization, you may be doing a lot of poses
So
If you need
So choose this posture.
Yum Install Php-pecl-memcache
Recommended 2nd way to install, so late setup, more convenient.