VPS侦探论坛

 找回密码
 注册
查看: 2216|回复: 1

安装了lnmp环境之后,安装redis插件,没有显示已装列表里

[复制链接]
发表于 2021-12-6 16:36:52 | 显示全部楼层 |阅读模式

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
Add to auto startup...
Add redis service at system startup...
Created symlink from /etc/systemd/system/multi-user.target.wants/redis.service to /etc/systemd/system/redis.service.
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm  done
Starting Redis server...4884:C 06 Dec 2021 11:24:21.198 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
4884:C 06 Dec 2021 11:24:21.198 # Redis version=5.0.9, bits=64, commit=00000000, modified=0, pid=4884, just started
4884:C 06 Dec 2021 11:24:21.198 # Configuration loaded
done
====== Redis install completed ======
Redis installed successfully, enjoy it!

安装完lnmp环境之后,再执行安装./addons.sh install redis安装redis扩展插件,提示安装完成了,但是php -m没有看到插件列表里面有redis,同理image也是一样,请问是安装有问题吗


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-12-7 08:54:23 | 显示全部楼层


大概率是你系统上还通过yum或apt-get方式安装了另外一个php,使用全路径查看 /usr/local/php/bin/php -m
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-6 07:30 , Processed in 0.025352 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表