Starting Appium Sever in background

I am running a script to run appium server in background on github runner. I am getting following error. The error also comes when i use -p.
Earlier I was running it in foreground but the problem was, the next command was not executing because the first server was running.

Better start Appium server in test code instead of terminal with CI.

But if it still needed try https://stackoverflow.com/questions/44222883/run-a-shell-script-and-immediately-background-it-however-keep-the-ability-to-in