Skip to content

Commit

Permalink
start_for_win.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed May 21, 2015
1 parent 4d7a77e commit d8a8038
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ demo
5、命令行运行php start.php start -d


在windows系统运行
=======
(windows系统仅作为开发测试环境)
首先windows系统需要先下载windows版本workerman,替换Workerman目录。

步骤:
1、删除Workerman目录包括文件
2、下载或者clone windows版本workerman,zip地址 https://github.com/walkor/workerman-for-win/archive/master.zip
3、解压到原Worekrman目录所在位置,同时目录workerman-for-win-master重命名为Workerman(注意第一个字母W为大写)
4、双击start_for_win.bat启动(系统已经装好php,并设置好环境变量,要求版本php>=5.3.3)

注意:windows系统下无法使用 stop reload status 等命令



workerman相关参见 [www.workerman.net](http://www.workerman.net/)
=================
Expand Down
5 changes: 5 additions & 0 deletions start.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
ini_set('display_errors', 'on');
use Workerman\Worker;

if(strpos(strtolower(PHP_OS), 'win') === 0)
{
exit("start.php not support windows, please use start_for_win.bat\n");
}

// 检查扩展
if(!extension_loaded('pcntl'))
{
Expand Down
1 change: 1 addition & 0 deletions start_for_win.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
php Applications\Sender\start_web.php Applications\Sender\start_gateway.php Applications\Sender\start_businessworker.php

0 comments on commit d8a8038

Please sign in to comment.