Giter Club home page Giter Club logo

Comments (7)

Gongruixiao avatar Gongruixiao commented on August 22, 2024 1

我的问题已经解决了,安装说明中少写了一步,需要go build编译产生启动文件,原来的启动文件是无法使用的,导致启动报这个错误

1.go get github.com/lisijie/webcron
2.cd /root/go/src/github.com/lisijie/webcron
   go build

from webcron.

xiaodingchen avatar xiaodingchen commented on August 22, 2024

我的也是这样,求怎么解决的

from webcron.

s016374 avatar s016374 commented on August 22, 2024

时间长了,记不清当时是怎么解决的了,但应该还是配置写的不对导致的。
看了下现在的配置如下,正常工作,希望有帮助。
appname = webcron
httpport = 8000
runmode = dev
jobs.pool = 50
site.name = schedule_manager
db.host = 192.168.x.x
db.user = xxx
db.password = xxx
db.port = 3306
db.name = dataserver
db.prefix = t_
db.timezone = Asia/Shanghai
mail.queue_size = 100
mail.from = [email protected]
mail.host = smtp.example.com
mail.port = 25
mail.user = username
mail.password = your password

from webcron.

Gongruixiao avatar Gongruixiao commented on August 22, 2024

mysql配置确认没有问题,但是启动也报这个错误

./webcron 
[ORM]2017/11/15 06:38:14 register db Ping `default`, dial tcp :3306: getsockopt: connection refused
must have one register DataBase alias named `default`

from webcron.

fortyhub avatar fortyhub commented on August 22, 2024

有大佬解决这个问题吗?
./webcron
[ORM]2017/11/16 16:43:10 register db Ping default, Error 1045: Access denied for user ''@'127.0.0.1' (using password: NO)
must have one register DataBase alias named default

from webcron.

xjiaon avatar xjiaon commented on August 22, 2024

github.com/lisijie/webcron/app/mail

app/mail/mail.go:38:6: undefined: beego.Error

请问go build 报这个错误是什么原因?

from webcron.

Git-wyf avatar Git-wyf commented on August 22, 2024

是由于mysql server 默认连接的是127.0.0.1,
如果是Ubuntu环境可以建议你修改 sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf这个文件,
具体可以参考以下:
https://www.cnblogs.com/LazyAngel/p/11656762.html

from webcron.

Related Issues (20)

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.