重新启动我的服务器后,我无法启动redis.从日志中我发现了这条消息"Short read or OOM loading DB. Unrecoverable error, aborting now.".我是redis的新手,不知道如何解决这个问题.此外,我无法找到任何可靠的解决方案.请帮忙
我想在系统关闭电子邮件ID时发送电子邮件.我有CentOS 6.4.以下是我的脚本.
cat /ect/init.d/sendshtmail
#!/bin/bash
EMAIL="example@example.com"
SHUTDOWNSUBJECT="["`hostname`"] - System Shutdown"
SHUTDOWNBODY="This is an automated message to notify you that "`hostname`" is shutting down.
LOCKFILE=/var/lock/subsys/SystemEmail
echo "${SHUTDOWNBODY}" | mutt -s "${SHUTDOWNSUBJECT}" ${EMAIL}
Run Code Online (Sandbox Code Playgroud)
它有适当的许可.手动运行时,它运行良好.我刚将它符号链接到/etc/rc0.d/文件夹.通过发出以下命令.
ln -s /etc/init.d/sendshtmail /etc/rc0.d/K00sendshtmail
Run Code Online (Sandbox Code Playgroud)
但是脚本在关机期间没有发送任何电子邮件.提前致谢.