当前位置: 首页 > 工具软件 > script-server > 使用案例 >

devstack安装出现rabbitmq-server安装错误

越文康
2023-12-01
devstack 安装openstack出现rabbitmq-server安装错误,因为修改过hostsname后,重新安装才导致这个错误,下面是解决办法.
问题:
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_log, _err  
rabbitmq-server.  
invoke-rc.d: initscript rabbitmq-server, action "start" failed.  
dpkg: error processing rabbitmq-server (--configure):  
 subprocess installed post-installation script returned error exit status 1  
Errors were encountered while processing:  
 rabbitmq-server  
E: Sub-process /usr/bin/dpkg returned an error code (1)  
解决办法:
1.确保hostname -f 正确,不正确编辑/etc/hosts和/etc/hostname两个文件确保一致
2.重启,reboot
3.删除rabbitmq-server, sudo apt-get remove rabbitmq-server 
4.删除rabbitmq-server配置文件,sudo rm -Rf /var/lib/rabbitmq&sudo rm -rf /etc/rabbitmq
5.重新运行./stack.sh
 类似资料: