Linux查看Log文件
1. 建立工作目录
mkdir -p /usr/local/virus
2. 下载鸟哥写的Log分析脚本
cd /usr/local/virus
wget linux.vbird.org/download/vbird/logfile-0.1-4-2.tgz">https://linux.vbird.org/download/vbird/logfile-0.1-4-2.tgz
3. 解压缩
tar -zxvf logfile-0.1-4-2.tgz
目录下会出现logfile次目录
4. 修改logfile.sh
cd logfile
chown root:root logfile.sh
chmod 755 logfile.sh
vi logfile.sh
修改email的值成真实email地址
5. 试运行logfile.sh
sh logfile.sh
关键词标签:Linux