1 Star 0 Fork 56

lqyangking/nop-printer

forked from nop/nop-printer 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
printer-stop.bat 553 Bytes
一键复制 编辑 原始数据 按行查看 历史
nop 提交于 2021-02-19 01:32 . add async job
@echo off
set SCRIPT_PATH=%~dp0
cd %SCRIPT_PATH%
set PHP_PATH=%SCRIPT_PATH%archive\php7.3.4nts
set PATH=%PHP_PATH%;%PATH%
::
:: stop the api service
::
php -r "$content = shell_exec('netstat -ano');$lines = explode(chr(10),$content);$match = array_filter($lines,function($line){return strpos($line,':8077') > 0;});$info = trim(empty($match)?'':array_values($match)[0]);$fields = preg_split('/\s+/',$info);$pid = intval($fields[4]??'');if($pid !== 0){ system('taskkill /f /pid ' . $pid);}else{echo 'service already stop';}";
php artisan queue:restart
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/lqyangking/nop-printer.git
git@gitee.com:lqyangking/nop-printer.git
lqyangking
nop-printer
nop-printer
master

搜索帮助