配置 HTTP 服务

workerman 提供的 Workerman\Worker 类用于实现端口的监听,模块的 http 服务启动正是通过它:

new Worker('协议://ip:端口', '其他配置(套接字上下文选项)');