1、打包java项目成jar,注意是否有main方法 2、编写sh脚本runE.sh 给此文件赋权限 3、crontab -e 输入 * * * * * /home/use/ec/bin/runE.sh >> /home/use/ec/logs/ec.log