-bash: git: command not found的解决
1、启用 EPEL 存储库
2、安装 git 命令
启用EPEL存储库
RHEL/CentOS 7 64位:- wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- rpm -ivh epel-release-latest-7.noarch.rpm
复制代码 RHEL/CentOS 6 32位:- get http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
- rpm -ivh epel-release-6-8.noarch.rpm
复制代码 注:CentOS 7 不支持 32位 EPEL 存储库,所以用RHEL/CentOS 6 32位的。
安装 git 命令 |