摘要: package controllers import ( "github.com/astaxie/beego" "service/doc_admin/models" ) type PublicController struct { beego.Controller } func (this *PublicController) SendResponse(code i... 阅读全文
posted @ 2018-09-19 11:09 不做大哥很多年 阅读(938) 评论(0) 推荐(0) 编辑
摘要: package utils import ( "bytes" "log" "os/exec" ) func ExecuteCommand(dir, command string, command_args ...string) (string, error) { cmd := exec.Command(command, command_args...) ... 阅读全文
posted @ 2018-09-19 10:01 不做大哥很多年 阅读(729) 评论(0) 推荐(0) 编辑
摘要: package gzip import ( "compress/gzip" "errors" "fmt" "io" "log" "os" "path/filepath" "strings" "time" "utils" ) func fileToDecompress(gzfile, file string) string { ... 阅读全文
posted @ 2018-09-19 09:59 不做大哥很多年 阅读(3181) 评论(0) 推荐(0) 编辑
摘要: package utils import ( "bytes" "crypto/sha1" "encoding/json" "encoding/xml" "errors" "fmt" "io" "io/ioutil" "log" "net/url" "os" "os/exec" "path/filepath" "... 阅读全文
posted @ 2018-09-19 09:54 不做大哥很多年 阅读(943) 评论(0) 推荐(0) 编辑
摘要: import ( "log" ) func ShowError(err error) bool { if err != nil { log.Println(err) } return err != nil } func NoneError(err error) { if ShowError(err) { panic(err) } }... 阅读全文
posted @ 2018-09-19 09:53 不做大哥很多年 阅读(137) 评论(0) 推荐(0) 编辑
摘要: // yum -y install gcc gcc-c++ autoconf automake // yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel (安装依赖zlib、openssl和pcre) // yum 阅读全文
posted @ 2016-11-08 11:35 不做大哥很多年 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 安装$ git 查看 $ sudo apt-get install git 安装 $ sudo apt-get install git-core 安装(老版本系统) $ git config --global user.name "Your Name" 设置用户名 $ git config --gl 阅读全文
posted @ 2016-10-12 16:57 不做大哥很多年 阅读(135) 评论(0) 推荐(1) 编辑
摘要: 下载安装 直接通过网络安装 [root@localhost ]#yum -y install httpd 采用该方式进行安装配置文件的默认路径为:/etc/httpd/conf/httpd.conf [root@localhost ]rpm -qa | grep httpd 启动/停止/重新启动/状 阅读全文
posted @ 2016-09-29 17:07 不做大哥很多年 阅读(500) 评论(0) 推荐(0) 编辑