ThingsPanel PHP Core
- 操作命令:
php bin/laravels {start|stop|restart|reload|info|help}
- xxxx
- xxxx
- xxxx
- xxxx
- xxxx
{
"code": 200,
"message": "message content",
"data": {
"field1": 1,
"field2": 2
}
}
Code | Note |
---|---|
200 | Success |
401 | Unauthorized |
500 | System error |
/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