我的 Apache2 有安裝 mod_evasive 來阻擋 DDoS 攻擊,當疑似攻擊發生時,這個 module 會 block 該訪客 IP 並且發信給使用者。
最近在清理 Error Log 的時候,發現一行訊息…
sh: /bin/mail: No such file or directory
才發現我沒安裝 Mail User Agent 。
在 Debian 安裝很簡單…
sudo apt-get install bsd-mailx
cd /bin
ln -s /usr/bin/mail mail
只要安裝好套件,建個 symbol link 即可。