1 Star 0 Fork 26

gasgas / thinkphp-layim

forked from cshaptx4869 / thinkphp-layim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
start_for_linux.php 872 Bytes
一键复制 编辑 原始数据 按行查看 历史
cshaptx4869 提交于 2021-10-25 11:54 . Mod: 调整目录结构
<?php
/**
* run with command
* php start_for_linux.php start
*/
ini_set('display_errors', 'on');
use Workerman\Worker;
if (strpos(strtolower(PHP_OS), 'win') === 0) {
exit("start.php not support windows, please use start_for_win.bat\n");
}
// 检查扩展
if (!extension_loaded('pcntl')) {
exit("Please install pcntl extension. See http://doc3.workerman.net/appendices/install-extension.html\n");
}
if (!extension_loaded('posix')) {
exit("Please install posix extension. See http://doc3.workerman.net/appendices/install-extension.html\n");
}
// 标记是全局启动
define('GLOBAL_START', 1);
require_once __DIR__ . '/vendor/autoload.php';
// 加载所有Applications/*/start.php,以便启动所有服务
foreach (glob(__DIR__ . '/Applications/*/start*.php') as $startFile) {
require_once $startFile;
}
// 运行所有服务
Worker::runAll();
PHP
1
https://gitee.com/gasgas/thinkphp-layim.git
git@gitee.com:gasgas/thinkphp-layim.git
gasgas
thinkphp-layim
thinkphp-layim
master

搜索帮助