Question one, -bash:vim: command not found
rpm -qa|grep vim
yum -y install vim -enhanced
Question 2: How to turn off the firewall and prohibit auto-start after booting
firewall-cmd -state #查看防火墙状态
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd -state #再查看防火墙状态