Can’t open the log file Read-only file system

报错:

1
Can’t open the log file: Read-only file system

解决

1
2
3
vim /etc/systemd/system/redis.service
ReadOnlyDirectories=/
ReadWriteDirectories=-/usr/local/redis/var