lnmp1.7安装memcached 失败
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/
Copy Memcached PHP Test file...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpmdone
iptables v1.4.7: option `-C' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
Starting Memcached...
Starting memcached: /etc/init.d/memcached: line 32: /usr/local/memcached/bin/memcached: No such file or directory
failed
Memcached install failed!
在phpinfo里也检测不到memcached 模块,劳烦军哥看看什么原因。
安装失败肯定phpinfo里没有php memcached的模块
需要提供完整的安装日志才能确定,只有个结尾无法确定什么原因 licess 发表于 2020-7-8 10:34
安装失败肯定phpinfo里没有php memcached的模块
需要提供完整的安装日志才能确定,只有个结尾无法确定什么 ...
好的,谢谢。我把日志多复制几行看看
(cd .libs && rm -f memcached.la && ln -s ../memcached.la memcached.la)
/bin/sh /root/lnmp1.7/src/memcached-3.1.5/libtool --mode=install cp ./memcached.la /root/lnmp1.7/src/memcached-3.1.5/modules
cp ./.libs/memcached.so /root/lnmp1.7/src/memcached-3.1.5/modules/memcached.so
cp ./.libs/memcached.lai /root/lnmp1.7/src/memcached-3.1.5/modules/memcached.la
PATH="$PATH:/sbin" ldconfig -n /root/lnmp1.7/src/memcached-3.1.5/modules
----------------------------------------------------------------------
Libraries have been installed in:
/root/lnmp1.7/src/memcached-3.1.5/modules
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-20170718/
Copy Memcached PHP Test file...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpmdone
iptables v1.4.7: option `-C' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
Starting Memcached...
Starting memcached: /etc/init.d/memcached: line 32: /usr/local/memcached/bin/memcached: No such file or directory
failed
Memcached install failed!
你多复制这两行也没用,错误信息还在前面很多,提供完整的完整的日志!
页:
[1]