code: function loop(){
    child = spawn(process.argv[0], ['server.js'], {
      detached: true,
      cwd:__dirname,
      stdio: 'inherit'
    });
  
    child.on('close', (code) => {
      if(code !== 0){
        execSync('cat ' + ERROR_LOG_PATH + ' > ' + ERROR_LOG_PATH + '.bak'); //error 备份.
        execSync('cat /dev/null > ' + ERROR_LOG_PATH); //清空 error log.
        handleChildCrash();
      }else{
        _colorLog('green', `[Watcher] Child exit success! Watcher exit. \t ${new Date()}`);
        execSync('rm -rf ' + PORT);
        execSync('rm -rf  ' + ERROR_LOG_PATH); //清空 error log.
        execSync('rm -rf  ' + ERROR_LOG_PATH + '.bak'); //清空 error log 备份.
        process.exit(); // 正常退出
      }
    });
  }
docs: NODE_ENV=development PORT=/opt/linux-remote/session/a9jt2OL63LVIev42wsvliqEWwWgSlcb1+dw.sock nodemon -L watcher.js