摘要:
from multiprocessing import Pool import os,time def Foo(i): time.sleep(2) print("in process",os.getpid()) return i +100 def Bar(arg): print('-->exec done',arg,os.getpid()) if __na... 阅读全文
摘要:
#!/bin/bash # This script run at 00:00 # The Nginx logs path logs_path="/data0/logs/nginx"#nginx存放日志路径 cd $logs_path#进入到nginx日志下面 mkdir -p ${logs_path}/$(date -d "yesterday" +"%Y%m")#创建日志日期目录 for l... 阅读全文