linux文件上传下载 , rz上传,sz 下载
yum install lrzsz
jar应用的部署脚本
echo "Application stop"
pid=`ps -ef | grep "bill-star-server-1.0" | grep -v grep | awk '{print $2}'`
if [ -n "$pid" ]
then
kill -9 $pid
fi
nohup java -jar bill-star-server-1.0.jar >log.log &
echo "Application started"
按时间格式备份文件
cp -i YOUR_FILE TARGET_PATH/FILE_NAME-$(date +%Y%m%d-%H%M%S).jar
阿里云出现Read Only System
mount -o remount rw /
启动jenkins
service jenkins start