代码之家  ›  专栏  ›  技术社区  ›  Robo Robok

如何在Homestead中禁用串行日志记录?

  •  0
  • Robo Robok  · 技术社区  · 7 年前

    我有一个进程占用了我100%的CPU,这是非常恼人的几天。过程是 VBoxHeadless

    $enable_serial_logging = false
    

    还有,我应该把这条线放在哪里?

    0 回复  |  直到 7 年前
        1
  •  0
  •   beech    7 年前

    我也有同样的问题。

    # -*- mode: ruby -*-
    # vi: set ft=ruby :
    
    require 'json'
    require 'yaml'
    
    VAGRANTFILE_API_VERSION ||= "2"
    confDir = $confDir ||= File.expand_path(File.dirname(__FILE__))
    
    homesteadYamlPath = confDir + "/Homestead.yaml"
    homesteadJsonPath = confDir + "/Homestead.json"
    afterScriptPath = confDir + "/after.sh"
    customizationScriptPath = confDir + "/user-customizations.sh"
    aliasesPath = confDir + "/aliases"
    
    $enable_serial_logging = false
    
    ...
    

    只需确保编辑后你运行 vagrant destroy 和 vagrant up