💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
* [ ] 设置完成后启动项目 ``` Run($Port = null, $Listen = null, $Context = []); ``` Port (string|array):监听端口(array分开设置Worker和Swoole端口) Listen(string|null|array):监听地址|array参数设置 Context(array) :参数设置 ***** ``` //写法1 $Obj->Run(['Worker'=>'2244','Swoole'=>'2344'],'0.0.0.0',[ 'ssl_cert_file' => '/etc/nginx/conf.d/ssl/server.pem', // 也可以是crt文件 'ssl_key_file' => '/etc/nginx/conf.d/ssl/server.key', ); //写法2 $Obj->Run('8080','0.0.0.0',[ 'ssl_cert_file' => '/etc/nginx/conf.d/ssl/server.pem', // 也可以是crt文件 'ssl_key_file' => '/etc/nginx/conf.d/ssl/server.key', ); //写法3 $Obj->Run('8080',[ 'ssl_cert_file' => '/etc/nginx/conf.d/ssl/server.pem', // 也可以是crt文件 'ssl_key_file' => '/etc/nginx/conf.d/ssl/server.key', ); ```