温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何重启openstack的服务

发布时间:2021-11-08 15:20:59 来源:亿速云 阅读:333 作者:小新 栏目:云计算

这篇文章主要介绍如何重启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的服务”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI