← 返回
未分类 中文

Standalone Setup

Deploy a self-hosted Mobazha store on any Linux VPS using Docker. Use when the user wants to set up a standalone store on a server.
使用 Docker 在任意 Linux VPS 上部署自托管的 Mobazha 商店。适用于用户想在服务器上搭建独立商店的场景。
fengzie fengzie 来源
未分类 clawhub v0.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 388
下载
💾 0
安装
1
版本
#latest

概述

Standalone Store Setup

Deploy a fully independent Mobazha store on any Linux VPS with a single command. Docker-based with automatic updates.

Official guide:

Prerequisites

  • A Linux VPS (Ubuntu 22.04+ or Debian 12+) with 2+ CPU cores, 2+ GB RAM, 20+ GB SSD
  • Root or sudo access
  • (Optional) A domain name pointed to the VPS IP

Recommended VPS Providers

ProviderSpecPrice
-----------------------
Hetzner2 vCPU / 4 GB / 40 GB SSD~€4.5/mo
Contabo4 vCPU / 8 GB / 50 GB SSD~€6/mo
DigitalOcean2 vCPU / 4 GB / 80 GB SSD~$24/mo
Vultr2 vCPU / 4 GB / 80 GB SSD~$24/mo

Step-by-Step Deployment

Step 1: Connect to Your VPS

If the user provides an IP and password, connect via SSH:

ssh root@<IP_ADDRESS>

If the user provides an SSH key, use:

ssh -i <KEY_PATH> root@<IP_ADDRESS>

Step 2: Install the Standalone Store

For a full list of installer flags and post-install file locations, see references/install-flags.md.

> Security note: The commands below download and execute a shell script from get.mobazha.org. Before running, you can review the script by opening the URL in a browser or running curl -sSL https://get.mobazha.org/standalone | less. Only proceed if the user confirms they trust the source.

Zero-config (most common):

curl -sSL https://get.mobazha.org/standalone | sudo bash

With a pre-configured domain (enables auto-TLS via Let's Encrypt):

curl -sSL https://get.mobazha.org/standalone | sudo bash -s -- --domain shop.example.com

Privacy mode with Tor:

curl -sSL https://get.mobazha.org/standalone | sudo bash -s -- --overlay tor

Using testnets (for trying things out without real money):

curl -sSL https://get.mobazha.org/standalone | sudo bash -s -- --testnet

Flags can be combined:

curl -sSL https://get.mobazha.org/standalone | sudo bash -s -- --domain shop.example.com --overlay tor --testnet

Step 3: What Happens During Installation

The installer automatically:

  1. Installs Docker if not already present
  2. Downloads the Docker Compose configuration to /opt/mobazha/
  3. Generates a unique API key
  4. Starts the Mobazha services (node, frontend, reverse proxy)
  5. Sets up a systemd timer for hourly auto-updates
  6. Installs the mobazha-ctl management CLI to /usr/local/bin/

Step 4: Complete the Store Onboarding

Open the store admin panel in a browser:

  • With domain: https://shop.example.com/admin
  • Without domain: http:///admin

On first visit, a Setup Wizard appears with 4 steps:

  1. Set admin password — required before anything else
  2. Store profile — name, description, avatar
  3. Region and currency — country and display currency
  4. Done — dashboard unlocked, next steps suggested

For the full onboarding walkthrough (including API-based setup by AI agents), see the store-onboarding skill.

After onboarding, consider connecting your AI agent to the store for hands-free management — see the store-mcp-connect skill.

Step 5: Verify the Installation

mobazha-ctl status

Or check the health endpoint:

curl -sS http://localhost/healthz

Management Commands

CommandDescription
----------------------
mobazha-ctl statusShow service status
mobazha-ctl logsView service logs
mobazha-ctl set-domain Add or change the store domain
cd /opt/mobazha && docker compose downStop all services
cd /opt/mobazha && docker compose up -dStart all services
cd /opt/mobazha && docker compose pull && docker compose up -dManual update

Adding a Domain Later

If you installed without a domain and want to add one:

  1. Point your domain's DNS A record to the VPS IP
  2. Run: mobazha-ctl set-domain shop.example.com
  3. The store will automatically obtain a TLS certificate

Enabling Privacy Overlay Later

You can enable Tor or Lokinet after installation from Admin → System → Network in the store dashboard, without re-installing.

Backup and Restore

Store data lives in /opt/mobazha/data/. To back up:

cd /opt/mobazha && docker compose down
tar czf ~/mobazha-backup-$(date +%Y%m%d).tar.gz data/
docker compose up -d

Troubleshooting

Port 80/443 already in use

Stop existing web servers (Apache, Nginx) before installing:

systemctl stop nginx apache2 2>/dev/null; true

Firewall blocking ports

Allow HTTP/HTTPS traffic:

ufw allow 80/tcp && ufw allow 443/tcp

Or with firewalld:

firewall-cmd --permanent --add-service=http --add-service=https && firewall-cmd --reload

Check container logs

cd /opt/mobazha && docker compose logs -f

Credential Handling

If the user provides a VPS IP and root password:

  1. Ask for explicit confirmation before connecting to the VPS via SSH
  2. Use SSH to connect to the VPS
  3. Run the installation command
  4. Report the store URL back to the user
  5. Remind the user to change the default SSH password for security

Never store or log credentials. After the session, credentials are not retained. The agent must not transmit credentials to any third party or persist them beyond the immediate command execution.

版本历史

共 1 个版本

  • v0.2.0 当前
    2026-05-03 11:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Mobazha Product Image Prompt

fengzie
为产品摄影、品牌形象和营销视觉创作有效的AI图像生成提示。适用于需要产品图、生活场景等。
★ 0 📥 530
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 31,045
it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 471 📥 78,414