后台运行
nohup java -jar /home/script/tiebaSign.jar > output.file 2>&1 &
新建并编辑startSign.sh文件
# !/bin/sh
nohup java -jar /home/script/tiebaSign.jar > output.file 2>&1 &
给startSign.sh可执行权限
chmod a+x startSign.sh
s查看后台任务
ps -aux | grep "tiebaSign.jar"
关闭后台任务
kill 端口号