Error al instalar Redis 6.0.5 ./install_server.sh en Linux

Reimpreso de:
https://www.cnblogs.com/strive-for-life/p/13194306.html

Al instalar Redis6.0.5 en Linux, ./install_server.shse informó un error cuando llegó el momento:

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!

solución

vi ./install_server.sh

Simplemente comente el código a continuación:

#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

Supongo que te gusta

Origin blog.csdn.net/tuzongxun/article/details/108461618
Recomendado
Clasificación