Skip to content

在安装dashboard之前需要安装mgr,这个在第一步就安装了

  1. 安装ceph-mgr-dashboard

    shell
    [root@ceph-0 /etc/ceph]# apt install ceph-mgr-dashboard
  2. 启动dashboard

    shell
    [root@ceph-0 /etc/ceph]# ceph mgr module enable dashboard
  3. 关闭dashboard的ssl功能(非必须,如果不关闭,需要自签证书)

    shell
    ceph config set mgr mgr/dashboard/ssl false
  4. 设置dashboard端口

    shell
    ceph config set mgr mgr/dashboard/$name/server_addr 10.0.0.80
    ceph config set mgr mgr/dashboard/$name/server_port 8080
  5. 为dashboard创建用户

    shell
    ceph dashboard ac-user-create admin admin administrator --force-password

image-20240413001838742