- Need to install MySQL and git
Yum-y Install git mysql-server
- Download and install Go
Official website: https://golang.org/dl/
wget https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-amd64.tar.gz
Tar-c/usr/local-xzf go1.9.2.linux-amd64.tar.gz
Modify the environment variable/etc/profile, add the following 1 lines
Export path= $PATH:/usr/local/go/bin
- Installing the MySQL driver for Go
Go get-u github.com/go-sql-driver/mysql
- Download WebCron Project
Go get Github.com/lisijie/webcron
The completed project directory is:/root/go/src/github.com/lisijie/webcron
- Generating an executable program
Execution of Go build in project directory generates WebCron execution program
- Create a database, import data
Create Database WebCron;
Mysql-u Username-p-D WebCron < Install.sql
- Configuration modifications
Open configuration file conf/app.conf, modify related configuration
- Start
Execute project under Run.sh to start running
Web platform Default account: admin Password: admin888
Setting up a Web timed task management platform