Record of solutions to problems encountered by Centos 7

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                        #再查看防火墙状态

Guess you like

Origin blog.csdn.net/qq_39689711/article/details/107679804