ERROR: Bash 4.4 or later is required (you are using Bash 4.2).Consider upgrading your distribution to get a more recent Bash version.
再安装Bashtop的过程中报错:
解决:
#查看自己bash的版本发现是4.2版本
/bin/bash --version
#下载bash5.0版本
wget http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
#解压
tar zxvf bash-5.0.tar.gz
#进入目录
cd bash-5.0
#编译
./configure && make && make install
#创建软连接
mv /bin/bash /bin/bash.bak
ln -s /usr/local/bin/bash /bin/bash
#最后重启服务器配置即可生效