简体   繁体   中英

Running jar file of Spring batch application in background in centos with input arguments

Iam trying to run a spring batch application jar file in background in centos with input arguments. nohup java -Dserver.port=8881 -Dspring.profiles.active=dev -jar Batch-0.0.1-SNAPSHOT.jar​ &. Iam getting nohup: ignoring input and appending out to nohup.out and my application is not running. someone please provide a solution

The problem is, nohup: ignoring input and appending out to nohup.out is saying that, it had started the service and printing the terminal message to nohout file. If I open the nohup.out file, it was saying a code level issue. After Fixing that, i could see my service running. To check active running jar, type jps -m. To kill the process Kill $PID {{PID}}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM