您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

38 行
657 B

  1. cd cmd/business
  2. rm -f business
  3. go build -o business main.go
  4. echo "打包business成功"
  5. pkill business
  6. echo "停止business服务"
  7. nohup ./business &
  8. echo "启动business服务"
  9. cd ../logic
  10. rm -f logic
  11. go build -o logic main.go
  12. echo "打包logic成功"
  13. pkill logic
  14. echo "停止logic服务"
  15. nohup ./logic &
  16. echo "启动logic服务"
  17. cd ../connect
  18. rm -f connect
  19. go build -o connect main.go
  20. echo "打包connect成功"
  21. pkill connect
  22. echo "停止connect服务"
  23. sleep 2
  24. nohup ./connect &
  25. echo "启动connect服务"
  26. cd ../file
  27. rm -f file
  28. go build -o file main.go
  29. echo "打包file成功"
  30. pkill file
  31. echo "停止file服务"
  32. nohup ./file &
  33. echo "启动file服务"