iredmail 0.9 Centos 國內安裝報錯解決

[root@mx iRedMail-0.9.4]# bash iRedMail.sh 
[ INFO ] Install package: dialog
[ INFO ] Installing package(s): dialog
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.skyshe.cn
 * extras: mirrors.pubyun.com
 * updates: mirrors.btte.net
http://iredmail.org/yum/rpms/6/repodata/repomd.xml: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: iRedMail. Please verify its path and try again
[ INFO ] Checking configuration file: /root/iRedMail-0.9.4/config ...[ INFO ] Found, but not finished.
/root/iRedMail-0.9.4/dialog/config_via_dialog.sh: line 42: dialog: command not found
[ INFO ] Exit.

報錯信息如上

安裝參考官方路徑:

http://www.iredmail.com/docs/install.iredmail.on.rhel.html#install-iredmail-on-red-hat-enterprise-linux-centos



安裝到此處時,無法按官方繼續安裝

Start iRedMail installer

It's now ready to start iRedMail installer, it will ask you several simple questions, that's all required to setup a full-featured mail server.

# cd /root/iRedMail-x.y.z/
# bash iRedMail.sh

Note to Chinese Users

Our domain name iredmail.org has been blocked in mainland China for years (since Jun 04, 2011), please run command below to finish the installation:

IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh

Additional variables are:

  • EPEL repo: IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'

  • SOGo repo: SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'




經過苦苦尋覓,解決方法爲:

編輯 vi /etc/yum.repos.d/iRedMail.repo 文件,將org改爲com,如下

[root@mx iRedMail-0.9.4]# vi /etc/yum.repos.d/iRedMail.repo 
[iRedMail]
name=iRedMail
baseurl=http://iredmail.com/yum/rpms/6/
enabled=1
gpgcheck=0
#exclude=postfix*
exclude=postfix*



baseurl=  改爲 baseurl=http://iredmail.com/yum/rpms/6/




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章