I would like to ask GatewayWorker how to restart smoothly under windows.

problem description

in the development of the mobile client (H5 page), the access control device is controlled by the cloud server. The device communicates through the pure tcp protocol as the tcp client, and the tcp server is set up with GatewayWorker to interact with it. In the process of modifying the code, I hope to update automatically through a smooth restart, but after reading the official manual, I only say the smooth restart command php start.php reload, but start.php does not support windows,. What should I do?

the environmental background of the problems and what methods you have tried

tried to reload, via start_gateway.php but found no effect

related codes

/ / Please paste the code text below (do not replace the code with pictures)
reload:php ApplicationsYourAppstart_gateway.php reload via start_gateway.php

start.php files do not support windows
if (strpos (strtolower (PHP_OS), "win") = 0)
{

exit("start.php not support windows, please use start_for_win.bat\n");

}

what result do you expect? What is the error message actually seen?

I would like to know how to restart smoothly under windows. As I am not familiar with linux, please give me some advice.

clipboard.png


  1. read more manuals. Official documents make it very clear: widows supports the start stop reload restart status command [ http://www.workerman.net/windows]
  2. The reason why
  3. does not support is that instruction implementations such as reload rely on multi-process or signal programming such as PHP extensions pcntl_ , posix_ , while windows does not support these extensions
Menu