千家信息网

如何重启openstack的服务

发表于:2025-01-23 作者:千家信息网编辑
千家信息网最后更新 2025年01月23日,这篇文章主要介绍如何重启openstack的服务,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!实际生产环境是juno版本,参考了官网的文档《openstack-ops-manu
千家信息网最后更新 2025年01月23日如何重启openstack的服务

这篇文章主要介绍如何重启openstack的服务,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

实际生产环境是juno版本,参考了官网的文档《openstack-ops-manual》,文档上是先servcie stop,后start,挺麻烦的,直接restart,整理后的重启命令如下:

1

service rabbitmq-server restart

补充:rabbitmq服务状态查看命令:rabbitmqctl status

OpenStack Identity:

1

service openstack-keystone restart

OpenStack Image Service:

1

2

service openstack-glance-api restart

service openstack-glance-registry restart

OpenStack Compute:

1

2

3

4

5

6

# service openstack-nova-api restart

# service openstack-nova-scheduler restart

# service openstack-nova-conductor restart

# service openstack-nova-cert restart

# service openstack-nova-consoleauth restart

# service openstack-nova-novncproxy restart

OpenStack Block Storage:

1

2

# service openstack-cinder-api restart

# service openstack-cinder-scheduler restart

Restart compute services:

1

2

3

# service openstack-nova-compute restart

# service openstack-nova-network restart

# service openstack-nova-metadata-api restart

Restart ceilometer services:

1

# service ceilometer-api restart

neutron部分参照下面列出的服务名:

[root@node-9 ~]# chkconfig --list|grep neutron

neutron-dhcp-agent0:off1:off2:on3:on4:on5:on6:off

neutron-l3-agent0:off1:off2:on3:on4:on5:on6:off

neutron-lbaas-agent0:off1:off2:off3:off4:off5:off6:off

neutron-metadata-agent0:off1:off2:on3:on4:on5:on6:off

neutron-openvswitch-agent0:off1:off2:on3:on4:on5:on6:off

neutron-ovs-cleanup0:off1:off2:on3:on4:on5:on6:off

neutron-server 0:off1:off2:on3:on4:on5:on6:off

具体命令就是service + 上面的服务名 + restart ,这里就不重复了。

最后,可以通过下面的命令检查一下是不是有遗漏的服务没有重启,一般来说,上面的重启命令应该就足够了,有一些不是关键进程,可以不重启,具体需要看你的需求了。

[root@node-9 ~]# chkconfig --list|grep openstack

openstack-cinder-api0:off1:off2:on3:on4:on5:on6:off

openstack-cinder-backup0:off1:off2:off3:off4:off5:off6:off

openstack-cinder-scheduler0:off1:off2:on3:on4:on5:on6:off

openstack-cinder-volume0:off1:off2:off3:off4:off5:off6:off

openstack-glance-api0:off1:off2:on3:on4:on5:on6:off

openstack-glance-registry0:off1:off2:on3:on4:on5:on6:off

openstack-glance-scrubber0:off1:off2:off3:off4:off5:off6:off

openstack-heat-api0:off1:off2:on3:on4:on5:on6:off

openstack-heat-api-cfn0:off1:off2:on3:on4:on5:on6:off

openstack-heat-api-cloudwatch0:off1:off2:on3:on4:on5:on6:off

openstack-heat-engine0:off1:off2:on3:on4:on5:on6:off

openstack-keystone0:off1:off2:on3:on4:on5:on6:off

openstack-nova-api0:off1:off2:on3:on4:on5:on6:off

openstack-nova-cert0:off1:off2:on3:on4:on5:on6:off

openstack-nova-conductor0:off1:off2:on3:on4:on5:on6:off

openstack-nova-console0:off1:off2:off3:off4:off5:off6:off

openstack-nova-consoleauth0:off1:off2:on3:on4:on5:on6:off

openstack-nova-metadata-api0:off1:off2:off3:off4:off5:off6:off

openstack-nova-novncproxy0:off1:off2:on3:on4:on5:on6:off

openstack-nova-objectstore0:off1:off2:on3:on4:on5:on6:off

openstack-nova-scheduler0:off1:off2:on3:on4:on5:on6:off

openstack-nova-xvpvncproxy0:off1:off2:off3:off4:off5:off6:off

以上是"如何重启openstack的服务"这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!

0