#!/bin/bash
# author:Peisen
ps -ef | grep -v grep | grep app-center | awk '{system("kill "$2)}'
nohup java -jar storage-center-1.0.jar --spring.cloud.nacos.discovery.server-addr=192.168.100.201:8848 --spring.cloud.nacos.config.server-addr=192.168.100.201:8848 --spring.datasource.url="jdbc:mysql://10.2.76.201:3307/ywdata_0201?serverTimezone=GMT%2b8&useSSL=false&failOverReadOnly=false&useUnicode=true&characterEncoding=UTF-8" --spring.datasource.username=root --spring.datasource.password=sen123456 &> app.log &
Spring boot Jar包一键重启脚本, 外部修改数据库端口等配置
#!/bin/bash # author:Peisen ps -ef | grep -v grep | gre…
本文来自网络,不代表培森的Blog立场,转载请注明出处:https://blog.xupeisen.com/archives/144