openstack 相关服务常用命令整理

1、 数据库:
  # systemctl start mysqld
  # systemctl enable mysqld
  # systemctl status mysqld
  #mysql> show status like 'wsrep_%'; # 查看集群状态

2、Haproxy:
  # systemctl start haproxy.service
  # systemctl stop haproxy.service
  # systemctl restart haproxy.service
  # systemctl enable haproxy.service

3、Pacemker:
  # systemctl start pcsd.service
  # systemctl enable pcsd.service
  # systemctl status pcsd.service
  # pcs status
  # pcs cluster standby node
  # pcs cluster unstandby node
  # pcs resource restart haproxy #重启haproxy 资源
  # pcs resource cleanup #清除错误日志后重启所有资源

4、时间服务 chrony:
  # systemctl restart chronyd.service
  # chronyc sources #同步时间

5、ceph:
  # ceph -s
  # ceph health detail
  # ceph osd pool create pool_name gp_num pgp_num #创建池

6、http、Keystone:
  # systemctl start httpd
  # systemctl enable httpd
  # systemctl status httpd

7、rabbitmq:
  # systemctl enable rabbitmq-server.service
  # systemctl start rabbitmq-server.service
  # systemctl status rabbitmq-server.service -l
  # rabbitmqctl cluster_status
  # http://rabbitmq-server-IP:15672 #web访问

8、Memcache:
  # systemctl enable memcached.service
  # systemctl start memcached.service


9、openstack 查看命令:
  # openstack catalog list
  # openstack endpoint list
  # openstack service list
  # openstack domain list
  # openstack image list
  # openstack host list


10、Glance:
  # systemctl enable openstack-glance-api.service openstack-glance-registry.service
  # systemctl start openstack-glance-api.service openstack-glance-registry.service
  # openstack image delete image-ID #删除镜像


11、nova-controller:
  # systemctl enable openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
  # systemctl start openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
  # systemctl status openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service

12、nova-computer:
  # systemctl enable libvirtd.service openstack-nova-compute.service
  # systemctl start libvirtd.service openstack-nova-compute.service

13、neutron-controller:
  # systemctl enable neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
  # systemctl start neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service
  # systemctl status neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service

14、neutron-computer:
  # systemctl enable neutron-linuxbridge-agent.service
  # systemctl start neutron-linuxbridge-agent.service

15、dashboard:
  # systemctl restart httpd.service memcached.service


__EOF__

本文作者语 默
本文链接https://www.cnblogs.com/weijie0717/p/8641515.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   语~默  阅读(8195)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示
点击右上角即可分享
微信分享提示