简体   繁体   中英

Run Redis or Memcached as root or non-root?

Does it matter if I run Redis or Memcached as root or non-root?

I'm thinking of creating a non-sudo Redis/Memcached user, and running the cache as that user. I would make all files owned by that non-sudo user. What would be the pros and cons of such a setup?

Redis is able to write file ! Running him as root is a BIG security issue. More info on https://github.com/antirez/redis/issues/3594

只要Redis使用的目录和文件都可以由非root用户访问,就不会有任何后果。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM