欧美日韩999,伊人天天久久大香线蕉av色,久久99久国产精品黄毛片入口 http://m.0794baidu.com/manage/cut-nginx-log-files.html 致力于VPS主機推薦、VPS管理維護、VPS優惠信息及VPS相關的信息共享平臺 Mon, 09 Feb 2015 02:15:44 +0000 hourly 1 https://wordpress.org/?v=6.0.1 評論者:quqiu http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-63367 Fri, 02 Aug 2013 10:15:03 +0000 http://m.0794baidu.com/?p=2017#comment-63367 因為經常會建新站
每建一個新站都要編輯一下腳本文件很麻煩
所以想問如何設置可以自動切割"/home/wwwlogs/"下所有日志

]]>
評論者:VPSer http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-49077 Thu, 28 Feb 2013 14:01:43 +0000 http://m.0794baidu.com/?p=2017#comment-49077 回復給美劇排行榜

@美劇排行榜, 用戶可以僅修改log_files_name后面的要切割的日志文件名就直接使用。

#設置要切割的日志的名字,如果日志目錄下面的日志文件名為vpser.net.log,則填寫vpser.net,每個日志名用空格分隔

請仔細查看解釋說明

]]>
評論者:美劇排行榜 http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-49043 Thu, 28 Feb 2013 08:25:43 +0000 http://m.0794baidu.com/?p=2017#comment-49043 lnmp0.9日志分割怎么實現!!!!上面說的,,都不知道怎么改!!是命令。。還是文件,,,迷茫!!

]]>
評論者:VPSer http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-41606 Fri, 21 Dec 2012 04:34:02 +0000 http://m.0794baidu.com/?p=2017#comment-41606 回復給mengzc

@mengzc, 看一下系統時間

]]>
評論者:mengzc http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-41537 Thu, 20 Dec 2012 11:32:34 +0000 http://m.0794baidu.com/?p=2017#comment-41537 我剛安裝好,已經在分割的日志文件日期怎么是昨天的?

]]>
評論者:VPSer http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-22137 Sat, 26 May 2012 04:16:35 +0000 http://m.0794baidu.com/?p=2017#comment-22137 回復給看電影的網站

@看電影的網站, 最正規的方法就是crontab -e添加

]]>
評論者:看電影的網站 http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-22089 Fri, 25 May 2012 13:48:34 +0000 http://m.0794baidu.com/?p=2017#comment-22089 在網上看到很多人都說使用/etc/crontab來執行計劃任務但是我沒有成功,使用crontab -e就可以了,不知道為什么。

]]>
評論者:露水 http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-17846 Tue, 28 Feb 2012 07:09:51 +0000 http://m.0794baidu.com/?p=2017#comment-17846 #!/bin/bash
#自動版日志切割 無需設置
#function:cut nginx log files for lnmp v0.5 and v0.6
#author: http://lnmp.org

#set the path to nginx log files
log_files_path="/home/wwwlogs/"
log_files_dir=${log_files_path}$(date -d "yesterday" +"%Y")/$(date -d "yesterday" +"%m")

#set the path to nginx.
nginx_sbin="/usr/local/nginx/sbin/nginx"
#Set how long you want to save
save_days=30

############################################
#Please do not modify the following script #
############################################
mkdir -p $log_files_dir

cd $log_files_path
#cut nginx log files
for d in `ls -f *.log`;do
mv ${log_files_path}$b0dnipz ${log_files_dir}/$(date -d "yesterday" +"%Y%m%d")_$d
done

#delete 30 days ago nginx log files
find $log_files_path -mtime +$save_days -exec rm -rf {} \;

$nginx_sbin -s reload

]]>
評論者:VPSer http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-13533 Wed, 06 Jul 2011 23:42:39 +0000 http://m.0794baidu.com/?p=2017#comment-13533 回復給sevensky

@sevensky, 你只需要按要求填好日志文件的名字就行了。
哪個語句是數組。

]]>
評論者:sevensky http://m.0794baidu.com/manage/cut-nginx-log-files.html/comment-page-1#comment-13530 Wed, 06 Jul 2011 17:40:03 +0000 http://m.0794baidu.com/?p=2017#comment-13530 每個日志名用空格分隔
log_files_name=(access vpser.net licess) 這里怎么填啊
log_files_name=vpser.net 2.vpser.net 3.vpser.net 不行..

log_files_num=${#log_files_name[@]} 這句怎么理解的:roll:

]]>
主站蜘蛛池模板: 日本一区二区高清视频| 国产精品久久97| 日韩中文字幕在线视频播放| 手机在线观看国产精品| 激情五月开心婷婷| 亚洲图片在线观看| 国产精品流白浆视频| 久久精品国产sm调教网站演员| 日韩wumaV| 97国产suv精品一区二区62| 精品网站在线看| 日韩美女在线观看一区| 久久精品国产亚洲精品2020| 日本精品久久久| 97成人在线观看视频| 亚洲欧洲精品一区二区三区波多野1战4| 国产精品福利在线观看| 国产一区视频免费观看| 蜜臀久久99精品久久久酒店新书| 91精品国自产在线观看| 国产超碰91| 丁香六月激情网| 一区二区在线高清视频| 亚洲精品蜜桃久久久久久| 欧美亚洲色图视频| 国产系列第一页| 亚洲午夜精品国产| 亚洲精品免费av| 国产精品极品在线| 欧美日韩高清免费| 久久精品午夜一区二区福利| 亚洲一区二区三区乱码aⅴ| 一区二区三区日韩视频| 亚洲精品免费av| 日韩中文字幕在线看| 日韩av中文字幕第一页| 久久最新免费视频| 久久久久亚洲精品国产| 国产精品一区av| 99精品一级欧美片免费播放| 亚洲精品成人久久久998|