aka134652 发表于 2021-12-6 16:36:52

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

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-fpmdone
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也是一样,请问是安装有问题吗


licess 发表于 2021-12-7 08:54:23

大概率是你系统上还通过yum或apt-get方式安装了另外一个php,使用全路径查看 /usr/local/php/bin/php -m
页: [1]
查看完整版本: 安装了lnmp环境之后,安装redis插件,没有显示已装列表里