+1 vote
51 views
asked by

Hello, when I reboot the server, Redis is not automatically started, and I have to enter this command manually everytime to start Redis:

sudo service redis-server start

Can you please tell me how to start Redis automatically on boot?

Thanks :)

2 Answers

0 votes
answered by
 
Best answer

Running sudo systemctl enable redis-server fixed the problem smiley

commented by Expert
Glad to see you've found a solution.

Regards.
0 votes
answered by Expert
We don't modify anything of Redis configuration, it supposed to start on boot as a normal behavior.

To be honest, I don't know what could be wrong.
commented by
But this has not happened since the last version I created 4 new servers for clients and I have seen that Redis and SWAP after restarting themselves do not work.
commented by Expert

Hi Sidney,

  • With the following command you can check which services are enabled to be restarted automatically after reboot: systemctl list-unit-files | grep enabled (See if Redis is there)
  • The SWAP space was created by Webinoly or you did it manually?

Regards.

commented by
Redis was able to resolve by manually starting, but the swap gera error was created by Webinoly automatically

[ERROR] SWAP Memory File not found!
commented by Expert

Ok, please tell me:

  • What is inside /etc/fstab
  • Check if /swapfile exist in your root folder
  • Use the command free -k and see if swap is present
I'm just trying to figure it out what is happening in your specific case.
Regards.
Welcome to the Community site for Webinoly.

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

News: Webinoly now have support for the newest PHP 7.3.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...