如何配置的memcached在Linux AMI EC2实例 [英] How to configure memcached on linux ami ec2 instance

查看:228
本文介绍了如何配置的memcached在Linux AMI EC2实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在EC2实例上运行的Linux的朋友,我想安装memcached的,但它失败了 在的phpinfo)(显示,这是我迄今所做的。

I have linux ami running on ec2 instance, I am trying to install memcached but it failed display in "phpinfo()", here is what i have done so far.

装memcached的方式:

installed memcached by :

yum install memcached

在我的php.ini添加以下行

Added following line in my php.ini

extension=memcached.so

开始memcached的:

started memcached:

service memcached start

重启apache的

restarted apache

service httpd restart

当我这样做的phpinfo(),memcached的没有列出。 请大家帮忙。

When i do phpinfo(), memcached is not listed. please help.

推荐答案

您已经安装守护程序,而不是PHP扩展。你有两个选择。

You have installed the daemon, but not the php extension. You have two options.

  1. 通过包管理器安装(如果可用)百胜安装PHP-PECL-memcached的
  2. 通过PECL安装 PECL安装memcached的。您可能需要安装gcc和php-devel包这个选项奏效。
  1. Install via package manager if available yum install php-pecl-memcached.
  2. Install via pecl pecl install memcached. You may need to install gcc and php-devel packages for this option to work.

这篇关于如何配置的memcached在Linux AMI EC2实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆