한 명을 팔로우하고 있어요지도 시간MariaDB를 지원하는 Postfix를 설치합니다. 기본 /etc/yum.repos.d/CentOS-Base.repo
저장소는 MariaDB에서 Postfix를 지원하지 않으므로 exclude=postfix
및 행을 사용하여 enabled=1
파일을 수정했습니다.
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://mirrors.linode.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude=postfix
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://mirrors.linode.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
exclude=postfix
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=http://mirrors.linode.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://mirrors.linode.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
실행했지만 yum --enablerepo=centosplus install postfix
오류가 발생합니다.
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
http://mirrors.linode.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.linode.com; Unknown error"
Trying other mirror.
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=centosplus&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
http://mirrors.linode.com/centos/7/centosplus/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.linode.com; Unknown error"
Trying other mirror.
failure: repodata/repomd.xml from centosplus: [Errno 256] No more mirrors to try.
http://mirrors.linode.com/centos/7/centosplus/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.linode.com; Unknown error"
이 문제를 해결하기 위해 무엇을 할 수 있는지 아시나요?
답변1
"호스트를 확인할 수 없습니다: mirrors.linode.com, 알 수 없는 오류"
/etc/resolv.conf
다음 줄을 추가하여 편집하세요.
nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 127.0.0.1
Google DNS 네임서버를 추가하면 IP 주소와 호스트를 확인하는 유효한 DNS 서버가 resolv.conf
제공됩니다 .yum