Redis-backgroud Saving Error

Source: Internet
Author: User
Tags redis

You can refer to this connection when you encounter this error

You are should check your redis.conf file to the permissions in Dir and Dbfilename. If the file named in the Dbfilename which are located in the path specified into the Dir path exists and the permission is Al So right. Then the problem should be fixed.

Hope this'll help someone.

P.S.

To find the redis.conf file location, your can use the #ps ax | grep Redis to check. Usually it is passed to the Redis-server as input file.

For the Dir permissions:it should is 755, for the dbfilename, it should is 644 sometimes you also need to use top

comm And to check whether the user:group of the Redis-server and the owner of Dir are consistent. i.e. the redis-server is running by Redis:redis, but the "dir is under Root:root." In the case of need to Chown redis:redis-r dir.

This passage means very clear, first look at the redis.conf inside dir and Dbfilename permissions, if the right of the normal words will be no problem.
That's the mistake because of the permission issue. The permissions for Dir should be the 755,dbfilename permission should be 644.
The last paragraph confirms that the owner of Dir and the group owner and Redis-server are consistent.

Based on the description above I directly modify the owner and group owner of Dir to be OK for the current user, because both the previous owner and group owner are root.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.