0

I have setup a redis server and I see a redis-server running in daemon mode. I thought the following stops the redis server

service redis-server stop

However, when i run that command, the website crashes and it throws up the below error enter image description here

To avoid that I restart redis with

service redis-server start

or with

src/redis-server

I am not able to understand the difference between the above two restart options.

Also, why does the magento site go down when i stop the redis-server ?

Trying to get a hang of redis and any help/resources greatly appreciated. Many Thanks.

1 Answer 1

2

I am not able to understand the difference between the above two restart options.

The first one is the service command of your operating system. The second one is the binary of the Redis daemon when you compile it from source.

You find the first command documented with your operating system. The second one is documented with the Redis project. Please relate to those resources for in-depth details.

Also, why does the Magento site go down when I stop the redis-server ?

Because a component expected to work wasn't available. This exceptional situation must have caused an exception. See the report (as numbered) and check the other logs for the exact error description. You could also enable the developer mode but then take care if you're debugging AJAX requests.

2
  • lot of good pointers in there. Thanks will check and revert
    – Vinu D
    Commented Aug 5, 2015 at 6:08
  • note, you canusually do sudo service redis-server restart Commented Aug 10, 2018 at 19:59

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.