Skip to content
官方QQ交流群
技术交流1:87208295   点此加入
技术交流2:787747122   点此加入
官网
云控制台
开放平台
关注微信公众号
代码仓库: 码云

HttpServer进程

简要

  • 常驻web服务,替代常规php-fpm

启动

sh
php think worker
php think worker

然后就可以通过浏览器直接访问当前应用

  • http://localhost:2346

linux下面可以支持下面指令操作

sh
# 启动
php think worker
php think worker start
# 重载
php think worker reload
# 重起
php think worker restart
# 停止
php think worker stop
# 状态
php think worker status
# 启动
php think worker
php think worker start
# 重载
php think worker reload
# 重起
php think worker restart
# 停止
php think worker stop
# 状态
php think worker status

workerman的参数可以在应用配置目录下的worker.php里面配置。

由于onWorkerStart运行的时候没有HTTP_HOST,因此最好在应用配置文件中设置app_host

Copyright © 2017 10yun.com | 十云提供计算服务-IPV6 | ctocode组开发