准备代码:
const res = []
const arr = [1, 2, 3, 4, 5]
function t(num) {
return new Promise((resolve, reject) => {
setTimeout(() => {
console.log('定时器', num)
resolve()
}, 1000)
})
}
function t2(item) {
console.log('进入res')
res.push(item)
}
1 2 |
kill -9 $(ps -ef | grep xxxx.jar | grep -v grep | awk '{print $2}') nohup java -jar -Dlog4j2.formatMsgNoLookups=true xxxx.jar > xxxx.log & |
View Details