Linux install Redis 6.0.5 ./install_server.sh error

Reprinted from:
https://www.cnblogs.com/strive-for-life/p/13194306.html

When installing Redis6.0.5 on linux, an ./install_server.sherror was reported when it came time:

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!

solution

vi ./install_server.sh

Just comment the code below:

#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

Guess you like

Origin blog.csdn.net/tuzongxun/article/details/108461618