CPU | 1 Core |
Memory | 1G |
Disk | 128G |
Operating System | Linux 64-bit |
Can be expanded on demand according to business needs
CPU | 2 cores |
Memory | 2G |
Disk | 128G |
Operating System | Linux 64-bit |
Method 1: Run the installation script
curl -fsSL https://website.yaoapps.com/install.sh | bash
Method 2: Manually download the product
Download the product whose Linux architecture is amd64 and copy it to the bin directory. Download address
cp yao-0.10.1-linux-amd64 /usr/bin/yaochmod +x /usr/bin/yaoyao version
Method 3: Source code compilation
Refer to the source code compilation document to compile the product. Copy the artifact to the /usr/bin/ directory and add executable permissions.
Add user
useradd yao
Create application folder
mkdir /yaoapps
Copy the app code to the app directory, e.g.
git clone https://github.com/YaoApp/demo-crm.git /yaoapps/demo-crm
Use pm2
, supervisor
and other service process management tools.
Supervisor configuration example:
[program:demo-crm-server]directory=/yaoapps/demo-crmcommand=/usr/local/bin/yao startprocess_name=demo-crm-servernumprocs=1autostart=trueautorestart=trueuser=yaogroup=yaoredirect_stderr=truestdout_logfile=/yaoapps/demo-crm/supervisor.log
Start the service:
supervisor start
Check service status:
curl http://127.0.0.1:<Port>/api/xiang/ping
If you need to use HTTPS or if you have multiple applications installed on one machine, you can use a proxy server such as Nginx
, traefik
.
traefik
configuration example
[[tls.certificates]]certFile = "/data/certs/star.yaoapps.com.crt"keyFile = "/data/certs/star.yaoapps.com.key"[http.routers.demo-crm]tls=truerule = "Host(`demo-crm.yaoapps.com`)"service = "demo-crm@file"[http.services][http.services.demo-crm.loadBalancer][[http.services.demo-crm.loadBalancer.servers]]url = "http://127.0.0.1:<port>/"
CPU | 1 Core |
Memory | 1G |
Disk | 128G |
Operating System | Linux 64-bit |
Can be expanded on demand according to business needs
CPU | 2 cores |
Memory | 2G |
Disk | 128G |
Operating System | Linux 64-bit |
Method 1: Run the installation script
curl -fsSL https://website.yaoapps.com/install.sh | bash
Method 2: Manually download the product
Download the product whose Linux architecture is amd64 and copy it to the bin directory. Download address
cp yao-0.10.1-linux-amd64 /usr/bin/yaochmod +x /usr/bin/yaoyao version
Method 3: Source code compilation
Refer to the source code compilation document to compile the product. Copy the artifact to the /usr/bin/ directory and add executable permissions.
Add user
useradd yao
Create application folder
mkdir /yaoapps
Copy the app code to the app directory, e.g.
git clone https://github.com/YaoApp/demo-crm.git /yaoapps/demo-crm
Use pm2
, supervisor
and other service process management tools.
Supervisor configuration example:
[program:demo-crm-server]directory=/yaoapps/demo-crmcommand=/usr/local/bin/yao startprocess_name=demo-crm-servernumprocs=1autostart=trueautorestart=trueuser=yaogroup=yaoredirect_stderr=truestdout_logfile=/yaoapps/demo-crm/supervisor.log
Start the service:
supervisor start
Check service status:
curl http://127.0.0.1:<Port>/api/xiang/ping
If you need to use HTTPS or if you have multiple applications installed on one machine, you can use a proxy server such as Nginx
, traefik
.
traefik
configuration example
[[tls.certificates]]certFile = "/data/certs/star.yaoapps.com.crt"keyFile = "/data/certs/star.yaoapps.com.key"[http.routers.demo-crm]tls=truerule = "Host(`demo-crm.yaoapps.com`)"service = "demo-crm@file"[http.services][http.services.demo-crm.loadBalancer][[http.services.demo-crm.loadBalancer.servers]]url = "http://127.0.0.1:<port>/"