From b7b2d64bf5a12785d4aa238bda968c26c42a1995 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Tue, 9 Jun 2020 17:44:38 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/main/build.sh | 11 +++++++++++ src/HttpServer/main/ll.sh | 1 + src/HttpServer/main/run.sh | 3 +++ 3 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 src/HttpServer/main/build.sh create mode 100644 src/HttpServer/main/ll.sh create mode 100644 src/HttpServer/main/run.sh diff --git a/src/HttpServer/main/build.sh b/src/HttpServer/main/build.sh new file mode 100644 index 0000000..6bf4095 --- /dev/null +++ b/src/HttpServer/main/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin +export GOPATH=/home/luheng/happycat +echo "begin dos2unix..." +find ../ -name '*.go' | xargs dos2unix + +echo "begin build..." +go build +echo "end build..." +echo "start run..." +mv main HAPPYCATSRV +sh run.sh diff --git a/src/HttpServer/main/ll.sh b/src/HttpServer/main/ll.sh new file mode 100644 index 0000000..9cf0511 --- /dev/null +++ b/src/HttpServer/main/ll.sh @@ -0,0 +1 @@ +ps -ef|grep HAPPYCATSRV diff --git a/src/HttpServer/main/run.sh b/src/HttpServer/main/run.sh new file mode 100644 index 0000000..900515b --- /dev/null +++ b/src/HttpServer/main/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh +pkill HAPPYCATSRV +nohup ./HAPPYCATSRV -conf_path=../conf/world.xml -logpath=./log & -- libgit2 0.21.0