ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* [ ] 设置完成后启动项目 ``` 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', ); ```