Startup and management

Execute the following command in the project directory to see the tcp server management command. It is consistent with the http server management command.

 $ php bin/swoft tcp
Description:
  There some commands for manage the tcp server

Usage:
  tcp:{command} [arguments] [options]

Commands:
  start    Start the tcp server
  stop     Stop the running server
  restart  Restart the running server

Options:
  -h, --help  Show help of the command group or specified command action 

start up

  • Front desk operation
 $ php bin/swoft tcp:start 

Notice: tcp server default port is 18309

  • Background process
 $ php bin/swoft tcp:start -d 
  • Restart
 $ php bin/swoft tcp:restart 
/docs/2.x/en/tcp-server/manage.html
progress-bar