'Close CMD windows when execute PHP websocket

I am developing a websocket in PHP. To run it I do it through CMD. The problem is that this CMD window cannot be closed, otherwise the server will be closed. I would like to know how I can do so that it is not necessary to have a CMD window open while the service is active. Thank you very much.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source