How can I start a java application with parameters using a pm2 config file?
问题 I'm trying to start graphhopper using pm2 ... graphhopper is a java application and the way I initiate it on the terminal is by going to its folder and entering the following command: java -jar matching-web/target/graphhopper-map-matching-web-1.0-SNAPSHOT.jar server config.yml This application works fine running from the command line, but I haven't succeeded on running it as a service with pm2 . The config file I'm using is this one ( pm2 start config.json ): { "apps":[ { "name":"graphhopper"