Kaynağa Gözat

add:服务启动命令

zoie 1 ay önce
ebeveyn
işleme
bb87a22be4
2 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 8 0
      README.md
  2. 1 1
      controllers/TaskData.go

+ 8 - 0
README.md

@@ -22,3 +22,11 @@ make build-linux
 
 ### 3、启动服务
 ./run.sh start
+
+## 服务器
+sudo systemctl start   ColdVerify_local.service   # 启动服务
+sudo systemctl stop    ColdVerify_local.service   # 停止服务
+sudo systemctl restart ColdVerify_local.service   # 重启服务
+sudo systemctl status  ColdVerify_local.service   # 检查服务状态
+
+journalctl -u ColdVerify_local.service -f 查看日志

+ 1 - 1
controllers/TaskData.go

@@ -544,7 +544,7 @@ func (c *TaskDataController) TaskDataClass_Edit() {
 		return
 	}
 
-	System.Add_UserLogs_T(T_uuid, "本地版-任务分", "修改分类数据"+Task_r.T_name, Task_r.T_task_id+"|"+T_sn+"|"+T_id)
+	System.Add_UserLogs_T(T_uuid, "本地版-任务分", "修改分类数据"+Task_r.T_name, Task_r.T_task_id+"|"+T_sn+"|"+T_id)
 
 	c.Data["json"] = lib.JSONS{Code: 200, Msg: "ok!"}
 	c.ServeJSON()