init
- 框架初始化 - 安装插件 - 修复PHP8.4报错
This commit is contained in:
23
vendor/workerman/channel/test/start_channel.php
vendored
Normal file
23
vendor/workerman/channel/test/start_channel.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Administrator
|
||||
* Date: 2022/2/20
|
||||
* Time: 12:00
|
||||
*/
|
||||
|
||||
include_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
use Workerman\Worker;
|
||||
|
||||
$processName = "ChannelServerTest";
|
||||
Worker::$pidFile = "var/{$processName}.pid";
|
||||
Worker::$logFile = "var/{$processName}_logFile.log";
|
||||
Worker::$stdoutFile = "var/{$processName}_stdout.log";
|
||||
|
||||
$channel_server = new Channel\Server('0.0.0.0', 2206);
|
||||
|
||||
if(!defined('GLOBAL_START'))
|
||||
{
|
||||
Worker::runAll();
|
||||
}
|
||||
Reference in New Issue
Block a user