Normally when you run linux command in shell, commands will stop once your close the terminal.
To keep it running, use nohup. The & will make it run in background.
$ nohup command &
$ disown
If the command will listen on certain port, check if it’s listening
netstat -ap | grep "LISTEN"
tcp 0 0 *:ssh *:* LISTEN -
tcp 0 0 *:9090 *:* LISTEN 22018/php
tcp 0 0 *:9191 *:* LISTEN 22023/php
tcp 0 0 localhost:mysql *:* LISTEN -
tcp6 0 0 [::]:http [::]:* LISTEN -
tcp6 0 0 [::]:ssh [::]:* LISTEN -