centos7 installation docker, docker-compose, es7.3.0, kibana7.3.0

First, install docker

1. yum update package

sudo yum update

2. Uninstall the old version (if an old version installed)

sudo yum remove docker docker-common docker-selinux docker-engine

3. Install package needs, yum-util provide yum-config-manager function, the other two are driven dependent devicemapper

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

4. Set the source yum

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

5. Installation docker-ce

sudo yum install docker-ce

6. Start and join the boot

sudo systemctl start docker sudo systemctl enable docker

7. Verify the installation

sudo docker version

Second, the installation docker-compose

1. Install the specified version (1.23.2 to replace the need to install their own version)

https://github.com/docker/compose/releases/ view the version that is installed on the available commands.

curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

2. Run, empowerment

sudo chmod +x /usr/local/bin/docker-compose

3. Verify the installation

docker-compose version

Three, docker installation elasticsearch, kibana

1. Pull specified image file version elasticsearch

docker pull elasticsearch:7.3.0

2. Pull the specified image file version kibana

docker pull kibana:7.3.0

3. Verify that the mirror

docker images

Four, docker-compose start elasticsearch, kibana

1. Create app in the root directory of the root directory of linux (with your mind), and create what in the app directory structure directory

/app/
- docker-compose.ymlDocker Compose boot-file
- es/Elastic profile directory
--- es.ymles startup file
--- data/store data es
--- logs/storage es log
--- plugins/storage es plug
------- ik/IK word plug
- kibana/kibana the profile directory
--- kibana.ymlkibana startup files

1.1 download ik branch plugin, extract to / app / es / plugins / ik / directory

elasticsearch-analysis-ik-7.3.0.zip

unzip elasticsearch-analysis-ik-7.3.0.zip

2. Profiles

2.1 es.yml

cluster.name: my-elasticsearch

node.name: master

node.master: true

node.data: true

bootstrap.memory_lock: false

network.host: 0.0.0.0

discovery.zen.ping.unicast.hosts: ["192.168.125.5:9200"]

discovery.zen.minimum_master_nodes: 1

http.cors.enabled: true

http.cors.allow-origin: "*"

cluster.initial_master_nodes:
  - master

2.2 kibana.yml

2.3 Docker-compose.yml

version: "2"
services:
  elastic:
    image: elasticsearch:7.3.0
    container_name: es
    environment:
      - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
    volumes:
      - /etc/localtime:/etc/localtime
      - /app/es/data:/usr/share/elasticsearch/data
      - /app/es/logs:/usr/share/elasticsearch/logs
      - /app/es/plugins/ik:/usr/share/elasticsearch/plugins/ik
      - /app/es/es.yml:/usr/share/elasticsearch/config/elasticsearch.yml
    ports:
      - 9200:9200
      - 9300:9300

gentlelions personal space

centos7 installation docker, docker-compose, es7.3.0, kibana7.3.0 (unfinished) Original

gentlelions gentlelions

510 words

Read 2.1K

Collection 2

Like 0 points

Comments 0

Kibana[Docker Compose](https://my.oschina.net/gentlelions?q=Docker Compose)CentOSDockerElasticSearch

In March, jump no? >>>img

First, install docker

1. yum update package

sudo yum update

2. Uninstall the old version (if an old version installed)

sudo yum remove docker docker-common docker-selinux docker-engine

3. Install package needs, yum-util provide yum-config-manager function, the other two are driven dependent devicemapper

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

4. Set the source yum

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

5. Installation docker-ce

sudo yum install docker-ce

6. Start and join the boot

sudo systemctl start docker

sudo systemctl enable docker

7. Verify the installation

sudo docker version

Second, the installation docker-compose

1. Install the specified version (1.23.2 to replace the need to install their own version)

https://github.com/docker/compose/releases/ Find the available versions, and a command is executed

sudo curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-\((uname -s)-\)(uname -m)" -o /usr/local/bin/docker-compose

2. Run, empowerment

sudo chmod +x /usr/local/bin/docker-compose

3. Verify the installation

docker-compose version

Three, docker installation elasticsearch, kibana

1. Pull specified image file version elasticsearch

docker pull elasticsearch:7.3.0

2. Pull the specified image file version kibana

docker pull kibana:7.3.0

3. Verify that the mirror

docker images

Four, docker-compose start elasticsearch, kibana

1. Create app in the root directory of the root directory of linux (with your mind), and create what in the app directory structure directory

/app/
- docker-compose.ymlDocker Compose boot-file
- es/Elastic profile directory
--- es.ymles startup file
--- data/store data es
--- logs/storage es log
--- plugins/storage es plug
------- ik/IK word plug
- kibana/kibana the profile directory
--- kibana.ymlkibana startup files

1.1 download ik branch plugin, extract to / app / es / plugins / ik / directory

elasticsearch-analysis-ik-7.3.0.zip

unzip elasticsearch-analysis-ik-7.3.0.zip

2. Profiles

2.1 es.yml

cluster.name: my-elasticsearch

node.name: master

node.master: true

node.data: true

bootstrap.memory_lock: false

network.host: 0.0.0.0

discovery.zen.ping.unicast.hosts: ["192.168.125.5:9200"]

discovery.zen.minimum_master_nodes: 1

http.cors.enabled: true

http.cors.allow-origin: "*"

cluster.initial_master_nodes:
  - master

2.2 kibana.yml

2.3 Docker-compose.yml

version: "2"
services:
  elastic:
    image: elasticsearch:7.3.0
    container_name: es
    environment:
      - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
    volumes:
      - /etc/localtime:/etc/localtime
      - /app/es/data:/usr/share/elasticsearch/data
      - /app/es/logs:/usr/share/elasticsearch/logs
      - /app/es/plugins/ik:/usr/share/elasticsearch/plugins/ik
      - /app/es/es.yml:/usr/share/elasticsearch/config/elasticsearch.yml
    ports:
      - 9200:9200
      - 9300:9300

3. Start docker-compose

docker-compose up -d

4. Stop docker-compose

docker-compose down

Guess you like

Origin www.cnblogs.com/geoffreygao/p/12610027.html