我应该在哪里将$ enable_serial_logging标志放到流浪汉中?

时间:2018-12-19 18:51:26

标签: logging vagrant virtual-machine cpu homestead

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

standard Vagrant file structure

1 个答案:

答案 0 :(得分: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