3

I installed Redis server on ubuntu 20.04 with this article step by step. After setting password and other configuration, I run sudo systemctl restart redis.service but changes not be applied. Also, while Redis server was running, I got status with this command sudo systemctl status redis and It said me below message: enter image description here

What's the problem?!

1 Answer 1

7

I searched a lot and found that I should use below commands (using systemctl or service):

  1. with systemctl:
  • sudo systemctl start redis-server.service to start Redis server
  • sudo systemctl status redis-server.service to get status of Redis server
  • sudo systemctl stop redis-server.service to stop Redis server
  • sudo systemctl restart redis-server.service to apply the changes of config file (sudo nano /etc/redis/redis.conf)
  1. with service:
  • sudo service redis-server start to start Redis server

  • sudo service redis-server status to get status

  • active status: enter image description here

  • stop status: enter image description here

  • sudo service redis-server stop to stop Redis server

  • sudo service redis-server restart to apply the changes of config file (sudo nano /etc/redis/redis.conf)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.