@extends('layouts.admin') @section('title', '命令速查表') @section('content')
supervistorctl start all
supervistorctl start lae-web
或者
art octane:start
supervistorctl start lae-queue
supervistorctl start lae-schedule
supervistorctl stop all
supervistorctl stop lae-web
或者
art octane:stop
supervistorctl stop lae-queue
supervistorctl stop lae-schedule
supervistorctl restart all
supervistorctl restart lae-web
或者
art octane:restart
*重载art octane:reload
supervistorctl restart lae-queue
supervistorctl restart lae-schedule
art down
art up
*如果是大更新,需要启动维护模式。
首先,拉取最新代码sudo -u www git pull
composer install --no-dev
art migrate
art optimize
supervisorctl restart all
supervisorctl restart lae-web
在这之前,我们推荐你创建一个 Password-Based 的认证,选 Built-in Database ,账号类型选择 username。
创建一个 HTTP Server 的数据源,请求方式为 POST。
URL 填 {{ route('applications.mqtt.authentication') }}{ "client_id": "${clientid}", "password": "${password}", "username": "${username}" }
如果 EMQX 启用了 TLS,则你需要勾选 "TLS 配置" 下面的 "启用 TLS",并且关闭 "验证服务器证书"。
之后,保存即可。接着,将你添加的认证设置放在 Built-in Database 下面。此操作将判断客户端是否有指定的权限。
在这之前,我们推荐你创建一个 Built-in Database 的授权,之后关闭 File 授权。
创建一个 Password-Based 的认证,服务选择 HTTP Server,请求方式为 POST。
URL 填 {{ route('applications.mqtt.authorization') }}{ "action": "${action}", "client_id": "${clientid}", "topic": "${topic}", "username": "${username}" }
如果 EMQX 启用了 TLS,则你需要勾选 "TLS 配置" 下面的 "启用 TLS",并且关闭 "验证服务器证书"。
之后,保存即可。接着,将你添加的认证设置放在 Built-in Database 之前(确保 Built-in Database 在 HTTP Server 下面)。接下来,在授权页面,点击右上角的“设置”,将“未匹配时执行”调整为“deny”,再配置大概 5 分钟左右的缓存。然后保存。