This prompt appears when Linux starts the jar package
Scenario:
The server host is transferred from building a to building B, the IP is changed, and the server content is unchanged
Start service prompt nohup: failed to run command ‘Java’: no such file or directory
Solution:
1. View JDK version
java – version
2. Echo $Java_ Home
view the installation directory
3. Execute startup jar
nohup previous result/bin/Java – jar XX. Jar