【问题标题】:Where do I put the $enable_serial_logging flag in vagrant?我在哪里将 $enable_serial_logging 标志放在 vagrant 中?
【发布时间】:2018-12-19 18:51:25
【问题描述】:

虚拟机不断超频我的处理器。我读到我可以添加$enable_serial_logging = false 标志来防止这个问题,但我应该把它放在哪个文件中?

【问题讨论】:

标签: logging vagrant virtual-machine cpu homestead


【解决方案1】:

在 config.rb 中你可以设置$enable_serial_logging=false

# Log the serial consoles of CoreOS VMs to log/
# Enable by setting value to true, disable with false
# WARNING: Serial logging is known to result in extremely high CPU usage with
# VirtualBox, so should only be used in debugging situations
$enable_serial_logging=false

请看这里:https://gist.github.com/dalekurt/5c0dbaf26b96f4504011#file-config-rb-L49

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-11-07
    • 2021-08-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-05
    相关资源
    最近更新 更多