add script

This commit is contained in:
2020-12-28 11:30:56 +08:00
parent f72b300563
commit 26ba5d79b6
+10
View File
@@ -0,0 +1,10 @@
pid=`ps -ef | grep "hugo server" | grep -v grep | awk '{print $2}'`
if [ -n "$pid" ]; then
echo "$pid will be killed"
kill -9 $pid
fi
nohup hugo server -w -D --port 80 --bind 0.0.0.0 --baseURL=http://182.18.1.4:80/ &