public function onWorkerStart($serv, $worker_id)
{
$this->processRename($serv, $worker_id);
// 初始化目录
umask(0);
$statistic_dir = Config::$dataPath . $this->statisticDir;
if (!is_dir($statistic_dir)) {
mkdir($statistic_dir, 0777, true);
}
$log_dir = Config::$dataPath . $this->logDir;
if (!is_dir($log_dir)) {
mkdir($log_dir, 0777, true);
}
}