Giter VIP home page Giter VIP logo

Comments (5)

williamnie avatar williamnie commented on August 29, 2024

[root@VM-16-12-centos ~]# ./go-message-linux-amd64
2022/04/02 16:37:42 Can not find config file. Generating default config.
2022/04/02 16:37:42 Config loaded.

2022/04/02 16:37:42 D:/projects/go-message/model/util.go:12
[error] failed to initialize database, got error Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
panic: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

goroutine 1 [running]:
main.main()
D:/projects/go-message/main.go:35 +0x51c

centos运行会报如上的错误,是为什么呢

from go-message.

williamnie avatar williamnie commented on August 29, 2024

[root@VM-16-12-centos go-message-main]# ./go-message
2022/04/02 16:45:18 Can not find config file. Generating default config.
2022/04/02 16:45:18 Config loaded.
2022/04/02 16:45:18 Database initialized.
2022/04/02 16:45:18 Cache initialized.
2022/04/02 16:45:18 Router set.
2022/04/02 16:45:18 Scheduler set.
2022/04/02 16:45:18 Server started.
panic: listen tcp :80: bind: address already in use

goroutine 1 [running]:
main.main()
/root/go-message-main/main.go:71 +0x72f

自己编译完了以后,启动会提示80端口被占用,建议更换或者可以指定端口运行

from go-message.

LeeJiangWei avatar LeeJiangWei commented on August 29, 2024

初次运行后应该会生成一个配置文件 config.yaml,里面可以修改
稍后我更新下 release,可能是自己打包的时候忘记设参数了

from go-message.

williamnie avatar williamnie commented on August 29, 2024

初次运行后应该会生成一个配置文件 config.yaml,里面可以修改 稍后我更新下 release,可能是自己打包的时候忘记设参数了

直接改了源码,重新build的,哈哈,还有个问题,就是程序一直能注册,会不会有安全问题呢,被恶意注册?

from go-message.

LeeJiangWei avatar LeeJiangWei commented on August 29, 2024

确实有可能,后面再想想怎么改吧

from go-message.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.