Skip to main content

2026 年 8 月 18 日

创建租户

此过程将从引导节点创建租户。

过程:

  1. 运行相应命令以创建租户。例如:

    wso access create-tenant
    
    # OUTPUT
    # wso access create-tenant
    Starting first tenant creation
    First tenant created successfully
    Waiting for saas restart signal...
    saas still responding, waiting for restart...
    saas still responding, waiting for restart...
    saas still responding, waiting for restart...
    saas stopped responding, restart detected.
    Waiting for SAAS service to be ready...
    Waiting for saas to become ready (timeout: 600s, interval: 5s)...
    [0s elapsed] saas: Not ready, retrying in 5s...
    [5s elapsed] saas: Not ready, retrying in 5s...
    [10s elapsed] saas: Not ready, retrying in 5s...
    [15s elapsed] saas: Not ready, retrying in 5s...
    [20s elapsed] saas: Not ready, retrying in 5s...
    [25s elapsed] saas: Not ready, retrying in 5s...
    [307s elapsed] saas: Not ready, retrying in 5s...
    [312s elapsed] saas: Not ready, retrying in 5s...
    [317s elapsed] saas: Not ready, retrying in 5s...
    [322s elapsed] saas: Not ready, retrying in 5s...
    [327s elapsed] saas: Not ready, retrying in 5s...
    Service saas is ready (after 332s)
    Clearing GreenBox service token cache
    sample tenant creation in progress...
    Tenant Login URL: https://sample.example.com/auth/login
    TenantName: sample
    Username: admin
    Reset Password Link: https://sample.example.com/SAAS/auth/reset?token=eyJ1c2VybmFtZSI6ImFkbWluIiwiZG9tYWluIjoiU3lzdGVtIERvbWFpbiIsImNvZGUiOiIlSWpMZEszLlprJG5CVUE4aGxpV0d0LFY0bUQ8VFRAKHVmcitFW09NIn0
    

    **注意:**重置密码链接将在 24 小时后过期。

    **结果:**创建租户后,您会收到以下信息:

    • 租户 URL
    • 管理员用户名
  2. 使用命令输出中的重置链接设置管理员密码。

    密码策略要求密码满足以下条件:

    • 长度至少为 15 个字符。
    • 至少包含一个数字 (0-9)。
    • 至少包含一个大写字母 (A-Z)。
    • 至少包含一个特殊字符。
  3. 通过从引导节点运行以下命令,初始化租户的 SMTP 配置:

    wso access smtp init
    # Output
    Enter SMTP Password:
    Validating SMTP configuration...
    SMTP configuration to validate: xxxxxxxxxx
    SMTP configuration validated successfully
    SMTP configuration: True
    Successfully initialized SMTP configuration
    

此页面对您有帮助吗?

对本主题提供反馈

本主题对您有帮助吗?

请勿填写任何个人信息或机密信息。

正在生成链接…