Skip to content

zjhong/core

Repository files navigation

thingspanel-php

介绍

ThingsPanel PHP Core

软件架构

Structure

安装教程

  1. 操作命令:php bin/laravels {start|stop|restart|reload|info|help}
  2. xxxx
  3. xxxx

生产环境

查看

使用说明

  1. xxxx
  2. xxxx
  3. xxxx

技术标准

1. 编码 UTF-8
2. 数据格式 json
3. API Response structure
{
  "code": 200,
  "message": "message content",
  "data": {
    "field1": 1,
    "field2": 2
  }
}

4. Code list

Code Note
200 Success
401 Unauthorized
500 System error

supervisor configuration

/etc/supervisord.d/thingspanel.ini

[program:thingspanel]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/backend/artisan telemetry:consumer
autostart=true
autorestart=true
user=apache
numprocs=4
redirect_stderr=true
stderr_logfile=/var/log/supervisor/thingspanel.log
stdout_logfile=/var/log/supervisor/thingspanel.log

/etc/supervisord.d/tcp_server.ini

[program:tcp_server]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/backend/artisan telemetry:tcp_server
autostart=true
autorestart=true
user=apache
numprocs=1
redirect_stderr=true
stderr_logfile=/var/log/supervisor/tcp_server.log
stdout_logfile=/var/log/supervisor/tcp_server.log

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages