# goblog **Repository Path**: cnpscy/goblog ## Basic Information - **Project Name**: goblog - **Description**: goblog - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-29 - **Last Updated**: 2022-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # goblog #### 介绍 goblog #### 软件架构 - 打包 `go build -o goblog` - 运行 `./goblog` #### 安装教程 1.Windows SET CGO_ENABLED=0 SET GOOS=linux SET GOARCH=amd64 go build -o goblog - 命令详解 CGO_ENABLED :设置是否在 Go 代码中调用 C 代码。0 为关闭,采用纯静态编译; GOOS : 目标操作系统 GOARCH : 目标操作系统的架构 -o 是产出的目标文件名称 2.Mac 或 Linux 系统 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o goblog #### 使用说明 1.守护进程运行 - nohup —— Linux 系统内置,直接使用 nohup ./goblog & 命令即可; - systemctl —— Linux 系统内置,很多常见的服务都有使用 systemctl 管理,比如 MySQL、Nginx; - supervisor —— 是用 Python 实现的一套通用进程管理程序,能将一个普通的命令行进程变为后台 daemon,并监控进程状态,异常退出时能自动重启。(推荐) - go-supervisor —— Go 语言实现的 supervisor,好处是不需要安装 Python 环境。(推荐) #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)