日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

linux系统清除日志,如何清除Linux系统日志

發布時間:2024/10/12 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux系统清除日志,如何清除Linux系统日志 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

把下面的文件根據需要做一下修改,然后保存為clear_logs.sh,然后執行即可。

#!/bin/sh

cat /dev/null > /var/log/syslog

cat /dev/null > /var/adm/sylog

cat /dev/null > /var/log/wtmp

cat /dev/null > /var/log/maillog

cat /dev/null > /var/log/messages

cat /dev/null > /var/log/openwebmail.log

cat /dev/null > /var/log/maillog

cat /dev/null > /var/log/secure

cat /dev/null > /var/log/httpd/error_log

cat /dev/null > /var/log/httpd/ssl_error_log

cat /dev/null > /var/log/httpd/ssl_request_log

cat /dev/null > /var/log/httpd/ssl_access_log

億恩科技地址(ADD):鄭州市黃河路129號天一大廈608室 郵編(ZIP):450008 傳真(FAX):0371-60123888

聯系:億恩小凡

QQ:89317007

電話:0371-63322206

本文出自:億恩科技【www.enkj.com】

總結

以上是生活随笔為你收集整理的linux系统清除日志,如何清除Linux系统日志的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。