Linux Install PHP memcache module problem

Source: Internet
Author: User
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.

  • 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.