├── Beego : Beego is not installed. Please do consider installing it first: https://github.com/beego/beego/v2. If you are using go mod, and you don't install the beego under $GOPATH/src/github.com/astaxie, just ignore this. ├── GoVersion : go1.15.11 ├── GOOS : windows ├── GOARCH : amd64 ├── NumCPU : 8 ├── GOPATH : C:\Users\toxin\go ├── GOROOT : C:/Users/toxin/sdk/go1.15.11 ├── Compiler : gc └── Date : Tuesday, 25 May 2021
2. What operating system and processor architecture are you using (`go env`)?
3. What did you do?
编译为exe文件后,如果直接双击或在命令行允许,无报错。
但如果以服务的方式运行,或者使用浏览器调用(通过注册表关联自定义协议类型)运行程序,则出现类似如下这样的错误:
2021/05/25 19:51:26.434 [W] init global config instance failed. If you donot use this, just ignore it. open conf/app.conf: The system cannot find the path specified.
logs.BeeLogger.SetLogger: open logs/nms-toxin.log: Access is denied.
目录给了everyone所有权限,beego1.x版本可以正常运行,但beego2无法运行。