我在 Ubuntu 18 上有一个新安装的系统。安装 memcached 软件包后,我无法通过以下方式启动服务:
service memcached start
或者
systemctl start memcached.service
系统日志显示
memcached.service: Failed to run 'start' task: No such file or directory
memcached.service: Failed with result 'resources'.
Failed to start memcached daemon.
奇怪的是:当我直接使用 memcached 启动时,一切正常
/usr/bin/memcached -u memcache -d
或者
/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached.conf
(后者配置ExecStart
如下/etc/systemd/system/multi-user.target.wants/memcached.service
)
strace on service
orsystemctl
并没有真正揭示缺少哪个文件/资源。