@extends('layouts.admin') @section('title', '命令速查表') @section('content')

命令速查表

系统维护
启动全部 supervistorctl start all
启动 Web 节点 supervistorctl start lae-web 或者 art octane:start
启动 队列 supervistorctl start lae-queue
启动 计划任务 supervistorctl start lae-schedule
停止全部 supervistorctl stop all
停止 Web 节点 supervistorctl stop lae-web 或者 art octane:stop
停止 队列 supervistorctl stop lae-queue
停止 计划任务 supervistorctl stop lae-schedule
重启全部 supervistorctl restart all
重启 Web 节点 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
如果是非 Web 节点,需要重启全部或者对应服务,比如 队列,计划任务 supervisorctl restart all
如果是 Web 节点,需要简单重启即可 supervisorctl restart lae-web
用户相关
@endsection