报错内容:
ly@ubuntu:/usr/local/redis/utils$ sudo ./install_server.sh
Welcome to the redis service installer
This script will help you easily set up a running redis server
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!
解决方案:
输入命令
gedit install_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
注释后保存即可解决问题。
重新运行
sudo ./install_server.sh
---------------------------------------------------------------------------------------------------------------------------------
记录一下自己的配置