服务器出现此错误:
PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: zend_wrong_parameter_error), /usr/lib/php/20190902/memcached.so.so (/usr/lib/php/20190902/memcached.so.so: cannot open shared object file: No such file or directory)) at Unknown#0
但状态是:
● memcached.service - memcached daemon
Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-12-28 10:50:49 CET; 2min 5s ago
Docs: man:memcached(1)
Main PID: 235657 (memcached)
Tasks: 10 (limit: 11879)
Memory: 2.0M
CGroup: /system.slice/memcached.service
└─235657 /usr/bin/memcached -m 2560 -p 11211 -u memcache -l 0.0.0.0 -P /var/run/memcached/memcached.pid
Dez 28 10:50:49 nextcloudserver systemd[1]: memcached.service: Succeeded.
Dez 28 10:50:49 nextcloudserver systemd-memcached-wrapper[118166]: Signal handled: Terminated.
Dez 28 10:50:49 nextcloudserver systemd[1]: Stopped memcached daemon.
Dez 28 10:50:49 nextcloudserver systemd[1]: Started memcached daemon.
答案1
您的 PHP 安装具有不兼容的 PHP 模块版本memcached
。
您需要确保主 PHP 及其 PHP memcache 模块是从同一源安装的。
memcached
服务是存储数据的实际守护进程。PHPmemcached
模块是促进与守护进程连接的适配器memcached
。