注意

本文档适用于 Ceph 开发版本。

Windows基本配置

本页面描述了在Windows上使用客户端组件所需的最低Ceph配置。

ceph.conf

Windows上该文件的默认位置是ceph.conf,通常展开为%ProgramData%\ceph\ceph.conf,通常展开为C:\ProgramData\ceph\ceph.conf.

下面是一个示例。请根据实际情况填写监控器地址。

[global]
    log to stderr = true
    ; Uncomment the following in order to use the Windows Event Log
    ; log to syslog = true

    run dir = C:/ProgramData/ceph/out
    crash dir = C:/ProgramData/ceph/out

    ; Use the following to change the cephfs client log level
    ; debug client = 2
[client]
    keyring = C:/ProgramData/ceph/keyring
    ; log file = C:/ProgramData/ceph/out/$name.$pid.log
    admin socket = C:/ProgramData/ceph/out/$name.$pid.asok

    ; client_permissions = true
    ; client_mount_uid = 1000
    ; client_mount_gid = 1000
[global]
    mon host = <ceph_monitor_addresses>

别忘了也将您的密钥环文件复制到指定位置,并确保配置的目录存在(例如C:\ProgramData\ceph\out).

请使用斜杠/而不是反斜杠\作为路径分隔符ceph.conf.

由 Ceph 基金会带给您

Ceph 文档是一个社区资源,由非盈利的 Ceph 基金会资助和托管Ceph Foundation. 如果您想支持这一点和我们的其他工作,请考虑加入现在加入.