This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# VMware Fusion Latest Version Downloader, Installer, and Updater | |
# This script automatically finds, downloads, and optionally installs the highest version available | |
# | |
# Inspired by this gist: https://gist.github.com/jetfir3/6b28fd279bbcadbae70980bd711a844f | |
# | |
# Usage: $0 [-y] [-i] [-d] [-f] [-t <dmg_path>] | |
# -y: Skip download confirmation prompt | |
# -i: Automatically install after download (implies -y) |
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
如果正常执行之后没有报错的话,需要重启一下系统,让配置生效。
重启之后,执行如下命令查看配置是否成功生效:
lsmod | grep bbr