Comments (7)
我的问题已经解决了,安装说明中少写了一步,需要go build编译产生启动文件,原来的启动文件是无法使用的,导致启动报这个错误
1.go get github.com/lisijie/webcron
2.cd /root/go/src/github.com/lisijie/webcron
go build
from webcron.
我的也是这样,求怎么解决的
from webcron.
时间长了,记不清当时是怎么解决的了,但应该还是配置写的不对导致的。
看了下现在的配置如下,正常工作,希望有帮助。
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.
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.
有大佬解决这个问题吗?
./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.
github.com/lisijie/webcron/app/mail
app/mail/mail.go:38:6: undefined: beego.Error
请问go build 报这个错误是什么原因?
from webcron.
是由于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)
- 无法添加定时脚本
- 邮件发送报错
- go的版本能升级到最新的么?推荐最稳定版本为哪个?
- 修改任务之后默认不起效,需要“暂停”再“激活”之后修改的内容才起效
- 请教:怎么将beego的项目部署在服务器上对外
- 能提供编译成exe的入口文件吧,要安装GO语言好不方便 HOT 1
- 一个这样的工具还要数据库吗? HOT 1
- 没有发现启动文件./webcron HOT 2
- 脚本运行超时不发邮件通知
- 数据库配置正常运行不起来
- 说明文档少了这一句吧,编译
- 启动以后配置无法发送邮件,请问怎么回事
- windows一直执行失败 HOT 1
- translation
- 能帮忙提供支持ldap登入嘛
- 项目的开源协议是?
- 执行脚本样例
- 添加task即刻添加job,为啥job里没有激活 HOT 1
- windows下可以启动使用吗
- 请问修改了cron表达式需要重启整个程序吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcron.