vim /etc/rc.local #增加相应配置,增加时一定要增加到exit前
#启动nginx
/usr/local/nginx/sbin/nginx
#启动应用
java -jar /usr/local/jar/Eureka-1.0-SNAPSHOT.jar > /dev/null 2&
exit 0