Code Monkey home page Code Monkey logo

crawler's Introduction

Java多线程爬虫和ES数据分析实战

MySQL(Windows)

docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -v D://JAVAproject/crawlerAndES/crawler/mysql-data:/var/lib/mysql -d mysql:5.7.33

Elasticsearch(Windows)

 docker run -d -v D://JAVAproject/crawlerAndES/crawler/esdata:/usr/share/elasticsearch/data --name elasticsearch  -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.10.1

用flyway初始化数据库命令:

mvn flyway:clean && mvn flyway:migrate

注意:

1.使用MySQL时要在数据库中运行

create database news
use news

2.用MySQL向Elasticsearch灌数据时

要同时在docker里开启MySQL和Elasticsearc

crawler's People

Contributors

xu-kai-quan avatar

Watchers

 avatar

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.