In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to divide shell under Linux", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to divide shell under Linux" article.
The script is as follows:
#! / bin/bash#function:cut nginx log files for lnmp v0.5 and v0.6#author: http://lnmp.org# sets the directory where your logs are stored log_files_path= "/ home/wwwlogs/" # logs store log_files_dir=$ {log_files_path} $(date-d "yesterday" + "% y") / $(date-d "log" + "% m") # set the name of the log file that requires log segmentation Multiple log_files_name= separated by spaces (access www.abc3210.com) # set the installation path of nginx nginx_sbin= "/ usr/local/nginx/sbin/nginx" # set how long you want to savesave_days=30#please do not modify the following script # # # mkdir-p $log_files_dirlog_files_num=$ {# log_files_name [@]} # cut nginx log filesfor ((iTun0) I
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.