临时保存

临时保存
v1.8.2
swllhf 7 years ago committed by GitHub
parent 8691fbd4dc
commit ea501a4475

@ -124,4 +124,72 @@ Source repository address | Release Download
- Tomcat8.5.x/Jetty9.2.x
- Spring-boot1.5.x/Spring4.x
- Mysql5.6+
- Maven3+
- Maven3+
## 2. Quick Start
### 2.1 Init database
Please download project source codeget db scripts and execute, it will generate 16 tables if succeed.
The relative path of db scripts is as follows:
/xxl-job/doc/db/tables_xxl_job.sql
The xxl-job-admin can be deployed as a cluster,all nodes of the cluster must connect to the same mysql instance.
If mysql instances is deployed in master-slave mode,all nodes of the cluster must connect to master instace.
### 2.2 Compile
Source code is organized by maven,unzip it and structure is as follows:
xxl-job-adminschedule admin center
xxl-job-corepublic common dependent library
xxl-job-executorexecutor Sample(Select appropriate version of executor,Can be used directly,You can also refer to it and transform existing projects into executors
       xxl-job-executor-sample-springSpring versionexecutors managed by Springgeneral and recommend;
xxl-job-executor-sample-springbootSpringboot versionexecutors managed by Springboot;
xxl-job-executor-sample-jfinalJFinal versionexecutors managed by JFinal;
### 2.3 Configure and delploy "Schedule Center"
schedule center project:xxl-job-admin
target:Centralized management、Schedule and trigger task
#### Step 1:Configure Schedule Center
Configure files path of schedule center is as follows:
/xxl-job/xxl-job-admin/src/main/resources/xxl-job-admin.properties
The concrete contet describe as follows:
### JDBC connection info of schedule centerkeep Consistent with chapter 2.1
xxl.job.db.driverClass=com.mysql.jdbc.Driver
xxl.job.db.url=jdbc:mysql://localhost:3306/xxl-job?useUnicode=true&characterEncoding=UTF-8
xxl.job.db.user=root
xxl.job.db.password=root_pwd
### Alarm mailbox
xxl.job.mail.host=smtp.163.com
xxl.job.mail.port=25
xxl.job.mail.username=ovono802302@163.com
xxl.job.mail.password=asdfzxcv
xxl.job.mail.sendFrom=ovono802302@163.com
xxl.job.mail.sendNick=《任务调度平台XXL-JOB》
### Login account
xxl.job.login.username=admin
xxl.job.login.password=123456
### TOKEN used for communication between the executor and schedule center, enabled if its not null
xxl.job.accessToken=
#### Step 2:Deploy:
If you has finished step 1,then you can compile the project in maven and deploy the war package to tomcat.
the url to visit is :http://localhost:8080/xxl-job-admin (this address will be used by executor and use it as callback url),the index page after login in is as follow
![index page after login in](https://static.oschina.net/uploads/img/201705/08194505_6yC0.png "index page after login in")
Now,the “xxl-job-admin” project is deployed success.
#### Step3:schedule center Cluster(Option):

Loading…
Cancel
Save