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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b312c3-2bd56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b312c3-2bd56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?