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