memcached.so 显示已经安装

memcached.so 显示已经安装

但是用 -m 还是没有,php.ini 也添加到最后一行了。为什么

[root@localhost ~]# ll /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/
total 2304
-rwxr-xr-x. 1 root root  386256 Sep 20 05:37 memcached.so
-rwxr-xr-x. 1 root root 1970128 Aug  6 05:43 opcache.so
[root@localhost ~]# /usr/local/php/bin/php -m |grep memcached
[root@localhost ~]# 
[root@localhost ~]# vim /usr/local/php/etc/php.ini
[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
;openssl.cafile=

; If openssl.cafile is not specified or if the CA file is not found, the
; directory pointed to by openssl.capath is searched for a suitable
; certificate. This value must be a correctly hashed certificate directory.
; Most users should not specify a value for this directive as PHP will
; attempt to use the OS-managed cert stores in its absence. If specified,
; this value may still be overridden on a per-stream basis via the "capath"
; SSL stream context option.
;openssl.capath=

; Local Variables:
; tab-width: 4
; End:
extension = memcached.so


正在回答

登陆购买课程后可参与讨论,去登陆

2回答

您好,建议根据环境找到对应的教辅,参考教辅进行安装。另memcached版本与PHP版本有关,下载时请注意。祝学习愉快!

  • 托儿所 提问者 #1
    我就是跟着教辅安装的,不行又换了版本,还是不行
    2018-09-20 10:39:49
  • 好帮手慕查理 回复 提问者 托儿所 #2
    您好,使用phpinfo检查一下是否有扩展。祝学习愉快!
    2018-09-20 13:45:18
  • 托儿所 提问者 #3
    解决问题了, 时因为我的php.ini路径是 /usr/local/php/lib/php.ini , 而讲师的是 /usr/local/php/etc/php.ini , 我按照视频的操作所以没安装成功, 我想问一下 php.ini路径是由什么决定的,我当时源码编译安装时, 把 php.ini-development 复制到 /usr/local/php/lib/ 这个路径的
    2018-09-20 21:07:49
提问者 托儿所 2018-09-20 08:50:49

memcached是在pecl.php下载的3.0 stable版本,难道是不支持php7?

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师