创建一个maven项目后想启动tomcat测试一下新建的maven项目,结果一直报The JRE_HOME environment variable is not defined correctly,然后就会导致报出Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099等错误,分析了一大通,根据网上查到的一些说法,启动To…
开机自启动,将要执行的语句写入/etc/rc.local. #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this…