評等結果
點擊便能為這篇文章進行評等!
[評等總次數: 0,平均評等: 0]
上網找到一個用 perl 寫的清除apache log檔的程式 註1,但是是用perl寫的,本來想改寫成shell script但又不太想花時間,不就是裝perl就可以執行。
指令:
sudo apt-get install perl-base
註1:清apache log https://www.phpini.com/apache/perl-script-apache-log-rotate
用以上perl程式,請將
my $access_substr = “access-“; # access log 檔名開始字串
my $error_substr = “error-“; # error log 檔名開始字串
改成
my $access_substr = “access.”; # access log 檔名開始字串
my $error_substr = “error.”; # error log 檔名開始字串
評等結果
點擊便能為這篇文章進行評等!
[評等總次數: 0,平均評等: 0]
維力 素飄香 野菜多 素排骨雞 素紅燒牛肉 麻辣燙 麻油當歸枸杞 蔘湯麵 素食 泡麵 單包
垃圾桶 家用 客廳 臥室 辦公室 衛生間 大容量 高顏值 創意 收納 垃圾
平衡豬 獨輪車小豬 平衡玩具 不倒翁平衡豬
我最牛-綜合牛角酥餅乾