when I Execute the command ./install_server.sh
an error has occurred. error message as follow:
This system seems to use systemd.
Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!
I don’t know how to solve this problem, please help me
% cd utils
% ./install_server.sh
error message
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!
5
Answers
you can install redis-release-6.0 below and try again. try 5.0.5 it was effectived on my computer.I don’t know the exact reasons.
comment it
Steps I followed to make it run in my system
Comment out following lines in
redis-stable/utils/instal_server.sh
fileAfter this, you need to install
tcl tk
then inside
redis-stable/src
run
sudo make install
if it shows error like
Hint: It's a good idea to run 'make test' ;)
go back to redis-stable and run
make distclean
and againsudo make install
Finally, run the server by running
redis-server
Atlast to check if Redis is working:
redis-cli ping
I assume your question is, "What the heck does this error message mean, and how might I install redis successfully?"
Error message interpretation
It sounds like the
./install_server.sh
is not meant to be used for installation on Linux distributions using systemd. What is systemd? For your purpose, you just need to think of it as, "the mother of all processes." Credit to opensource.com for that one.When you are installing redis on a machine that uses systemd, redis seems to want you to install redis as a "service" managed by systemd.
To do that, my personal experience with other systemd services has taught me that one can try to preparing a "service unit file" for systemd. And then:
systemctl daemon-reload
systemctl enable something
systemctl start something
I’ve used Debian so my service unit file went under
/etc/systemd
.Comment out following lines and run (./install_server.sh) with root.