ลด 50% ทุกแพ็กเกจ เวลาจำกัด เริ่มต้นที่ $2.48/mo
Zy

Zy

Zy คือ CLI ที่ออกแบบมาสำหรับ AI โดยเฉพาะ สำหรับโครงสร้างพื้นฐานของ Cloudzy รองรับ Model Context Protocol (MCP) ทำให้ Claude, GPT, Copilot หรือ agent ที่รองรับ MCP สามารถ deploy VPS เปิด WordPress sites และจัดการ cloud resource ผ่านการสนทนาได้เลย เป็น open-source เขียนด้วย Rust

เวอร์ชัน

1.0.1

ระบบปฏิบัติการ

Ubuntu Server 24.04 LTS

ขั้นต่ำของ RAM

1 GB

ประเภท IP

IPV4,IPV6

การเข้าถึงเว็บ

URL: https://<IP>/

พอร์ต HTTP 80 เปลี่ยนเส้นทางไปยัง HTTPS 443.

บัญชีเริ่มต้น:

  • ชื่อผู้ใช้: owner
  • รหัสผ่าน: owner123

สำคัญ: เปลี่ยนรหัสผ่านเริ่มต้นทันทีในหน้า web interface

การตั้งค่าสภาพแวดล้อม

ไฟล์: /opt/zy/.env

หากต้องการอัปเดต environment variable ให้แก้ไขไฟล์ .env แล้ว restart service:

systemctl restart zy.service

ไฟล์และไดเรกทอรีสำคัญ

  • Zy ไบนารี: /opt/zy/zy
  • Environment variable (API token, public URL): /opt/zy/.env
  • Systemd unit: หน่วย Systemd /etc/systemd/system/zy.service
  • การตั้งค่าไซต์ Nginx: /etc/nginx/sites-available/zy
  • เปิดใช้งาน Nginx site แล้ว: /etc/nginx/sites-enabled/zy
  • ใบรับรอง SSL แบบ self-signed: /etc/nginx/ssl/

การจัดการ Systemd Service

# 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 (port 80) และ HTTPS (port 443):

vim /etc/nginx/sites-available/zy

3. ติดตั้ง Certbot:

apt install -y certbot python3-certbot-nginx

4. รันคำสั่งต่อไปนี้เพื่อสร้างใบรับรอง Lets Encrypt ที่ถูกต้อง:

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

5. แทนที่พาธ SSL ในไฟล์คอนฟิก Nginx:

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. อัปเดต PUBLIC_BASE_URL in /opt/zy/env:

PUBLIC_BASE_URL=https://yourdomain.com

8. Restart Zy เพื่อนำการเปลี่ยนแปลงไปใช้งาน:

systemctl restart zy

9. เปิดเบราว์เซอร์และเข้าไปที่: https://yourdomain.com

เพิ่มเติมใน Development Tools

แอปพลิเคชันที่เกี่ยวข้อง

ปรับใช้ Zy ตอนนี้ เริ่มต้นที่ $2.48/เดือน