今天装openStack环境过程中出现如下错误:
Errors were encountered while processing:
rabbitmq-serverE: Sub-process /usr/bin/dpkg returned an error code (1)
原因是因为/etc/hosts 文件中的IP与<hostname>映射不正确
解决办法:
$ hostname
$ sudo vim /etc/hosts
127.0.0.1 localhost
ip <hostname>
#ip网上ip,<hostname>-机器名
在安装openStack环境中,遇到dpkg错误代码(1),原因是/etc/hosts文件中的IP与hostname映射不正确。解决方案是对hosts文件进行修正。
2447

被折叠的 条评论
为什么被折叠?



