This commit is contained in:
aozhiwei 2022-03-02 14:18:36 +08:00
parent 881a707faf
commit d61512f253

View File

@ -1,9 +1,9 @@
#!/bin/bash
ps -ef|grep node|grep web3server|grep -v grep
ps -ef|grep node|grep web3service|grep -v grep
if [ $? -eq 0 ]; then
ps -ef|grep node|grep web3server|grep -v grep|awk '{print $2}'|xargs kill -9
ps -ef|grep node|grep web3service|grep -v grep|awk '{print $2}'|xargs kill -9
fi
cd bin
nohup node ../web3server/app.js >> web3server.out 2>&1 &
nohup node ../web3service/app.js >> web3service.out 2>&1 &