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
    

此頁面對您有幫助嗎?

針對本主題提供意見回饋

本主題對您有幫助嗎?

請勿填寫任何個人或機密資訊。

正在產生連結…