Browse Source

青涩知夏->修改启动脚本以及README

青涩知夏 4 years ago
parent
commit
d60e3bbbd9
2 changed files with 12 additions and 7 deletions
  1. 10 1
      README.md
  2. 2 6
      nosum-gateway.sh

+ 10 - 1
README.md

@@ -15,9 +15,18 @@ java -jar nosum-gateway-v1-jar-with-dependencies.jar
 ```
 
 > `linux`环境下,将`nosum-gateway-v1-jar-with-dependencies.jar`与`nosum-gateway.sh`上传到同一目录中,进入到文件所在目录,执行如下命令
+>
+> > `nosum-gateway.sh`在项目根目录之中,如果无法执行,可以使用 `chmod`进行授权
 
 ```bash
-sh nosum-gateway.sh
+# 启动
+sh nosum-gateway.sh start
+# 停止
+sh nosum-gateway.sh stop
+# 查看服务信息
+sh nosum-gateway.sh status
+# 查看日志信息
+sh nosum-gateway.sh logs
 ```
 
 ## 下载地址

+ 2 - 6
nosum-gateway.sh

@@ -27,13 +27,9 @@ status
 ;;
 logs)  
 logs  
-;;       
-restart)  
-stop  
-start  
-;;  
+;;
 *)  
-printf 'Usage: %s {start|stop|restart|status|logs}\n' "$prog"  
+printf 'Usage: %s {start|stop|status|logs}\n' "$prog"
 exit 1  
 ;;  
 esac