在我的服务器上,我使用Plesk控制面板,我使用来自Hetzner的服务器。问题是,当我试图按照面板- https://ontwerps.nl/install-redis-with-plesk-onyx的说明安装redis时,最终会得到一个错误:
This systems seems to use systemd. Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!
在此之前,我得到错误/bin/sh:1:pkg-config: not found有时会出现,但是我使用命令apt-get install -y pkg-config纠正它,导致错误的原因是什么?我试着在Debian 9和Ubuntu18.04上安装,错误是一样的。我如何解决系统的问题并安装redis稳定?
发布于 2020-05-29 12:45:13
我遵循的
中运行
注释掉redis-stable/utils/instal_server.sh文件中的下列行
#bail if this system is managed by systemd
#_pid_1_exe="$(readlink -f /proc/1/exe)"
#if [ "${_pid_1_exe##*/}" = systemd ]
#then
# echo "This systems seems to use systemd."
# echo "Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!"
# exit 1
#fi之后,您需要安装tcl tk。
用于ubuntu:
sudo apt-get install -y tcl tkfor RedHat:sudo yum install tcl tk
然后在redis-stable/src内部运行sudo make install
如果它显示像Hint: It's a good idea to run 'make test' ;)那样的错误
回到redis稳定,运行make distclean,然后再运行sudo make install。
最后,通过运行redis-server运行服务器。
最后一次检查Redis是否有效:redis-cli ping
https://unix.stackexchange.com/questions/584198
复制相似问题