50% off 所有套餐限时优惠,起价 $2.48/mo
Zy

Zy

Zy 是专为 Cloudzy 基础设施打造的 CLI 工具,原生支持 AI。它实现了 Model Context Protocol (MCP),让 Claude、GPT、Copilot 或任何兼容 MCP 的 Agent 都能通过自然对话部署 VPS、启动 WordPress 站点并管理云资源。开源项目,使用 Rust 编写。

Version

1.0.1

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

1 GB

IP Types

IPV4,IPV6

Web Access

URL: https://<IP>/

HTTP port 80 redirects to HTTPS 443.

Default account:

  • Username: owner
  • Password: owner123

重要提示:请立即在 Web 界面中修改默认密码。

Environment Configuration

File: /opt/zy/.env

如需更新环境变量,请编辑 .env 并重启服务:

systemctl restart zy.service

重要文件与目录

  • Zy binary: /opt/zy/zy
  • 环境变量(API token、公开 URL): /opt/zy/.env
  • Systemd unit: /etc/systemd/system/zy.service
  • Nginx 站点配置: /etc/nginx/sites-available/zy
  • Nginx 站点已启用: /etc/nginx/sites-enabled/zy
  • 自签名 SSL 证书: /etc/nginx/ssl/

Systemd 服务管理

# Restart the Zy service
systemctl restart zy.service

# Check Zy status
systemctl status zy.service

# Restart the Nginx service
systemctl restart nginx.service

# Check Nginx status
systemctl status nginx.service

通过域名启用 SSL

1. 将你的域名指向服务器 IP。

2. 编辑 Nginx 配置,替换以下两处 server_name <IP>; 使用您的域名(<your-domain>) 适用于 HTTP(端口 80)和 HTTPS(端口 443)的规则块:

vim /etc/nginx/sites-available/zy

3. Install Certbot:

apt install -y certbot python3-certbot-nginx

4. 运行以下命令,生成有效的 Let's Encrypt 证书:

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. 在 Nginx 配置中替换 SSL 路径:

vim /etc/apache2/sites-available/zy
# Before:
    # ssl_certificate /etc/nginx/ssl/fullchain.pem;
    # ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
    # ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
    # ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;

6. 重启 Nginx 以应用更改:

systemctl restart nginx

7. Update PUBLIC_BASE_URL in /opt/zy/env:

PUBLIC_BASE_URL=https://yourdomain.com

8. 重启 Zy 以应用更改:

systemctl restart zy

9. 打开浏览器,访问: https://yourdomain.com

更多开发工具

Related apps.

Deploy Zy now. From $2.48/mo.