'请configuration一个完全合格的域名'错误

我在一个虚拟主机上运行一个nginx网站,我试图设置iRedMail,但这是运行bash iRedMail.sh时得到的错误。

<ERROR>在我们继续之前,请在/ etc / hosts中configuration完全限定的域名(FQDN)。


etc/sysconfig/network文件

 NETWORKING=yes HOSTNAME=mail.website1.com 

etc/hosts文件 (xxx.xx.xxx.xxx是我真实的服务器ip地址)

 127.0.0.1 mail.website1.com mail localhost ::1 localhost xxx.xx.xxx.xxx website1.com xxx.xx.xxx.xxx website2.com 

我究竟做错了什么? 谢谢!

编辑:仍然出现这个错误。

<ERROR>在我们继续之前,请在/ etc / hosts中configuration完全限定的域名(FQDN)。

例:

mail.iredmail.org邮件本地主机

这是我的新configuration文件:

 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 xxx.xx.xxx.xxx website1.com xxx.xx.xxx.xxx mail.website1.com mail xxx.xx.xxx.xxx website2.com 

你的/etc/hosts文件应该有一个单独的行,在同一行上定义系统的IP和完全限定的域名和简称。 从127.0.0.1行删除“mail.website1.com”和“邮件”。

 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.2.0.6 mail.website1.com mail 

进行此更改并再次尝试。

另请参阅: 设置主机名:FQDN或短名称?