If you are going to run apps as jar file in command environment, just type "SERVER_PORT=*** " as prefix. The full command to execute will look like below:
SERVER_PORT=8080 java -jar ***.jar
If you wanna run app in background in Linux, command with 'nohup' will look like below:
SERVER_PORT=8080 nohup java -jar ***.jar &