CentOS 6安装方法： ```csharp rpm -Uvh https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm ``` ```csharp rpm -Uvh https://dl.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm ``` CentOS 7以上版本安装方法1： ```csharp yum update yum -y install epel-release yum repolist yum install pkg1 ``` 方法2： ```csharp rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ```