Docker中出现bash: vim: command not found解决方案

Linux系统分为两种:

  1. RedHat系列:Redhat、Centos、Fedora等
  2. Debian系列:Debian、Ubuntu等

RedHat系列的包管理工具是yum

Debian系列的包管理工具是apt-get

问题:

bash: vim: command not found

解决步骤:

  • Debian系列
1.第一步
apt-get update

2.第二步
apt-get install -y vim

  • RedHat系列
1.第一步
yum update

2.第二步
yum install -y vim

猜你喜欢

转载自blog.csdn.net/tangsiqi130/article/details/133396433