1024programmer Blog Common configuration and commands V1.0_AmongDec’s blog

Common configuration and commands V1.0_AmongDec’s blog

class=”markdown_views prism-github-gist”>

Common configuration and commands V1.0

Common configuration and commands V1.0

docker install ElasticSearch|Kibana

# Download elasticsearch image file
 docker pull elasticsearch:7.4.2
 # Download kibana image file
 docker pull kibana:7.4.2

 #Create the folder that needs to be mounted
 # Put the folders required for the configuration file inside
 mkdir -p /mydata/elasticsearch/config
 # Folder required to put es data in it
 mkdir -p /mydata/elasticsearch/data
 # Put the folder required for the es plug-in inside
 mkdir -p /mydata/elasticsearch/plugins

 echo "http.host: 0.0.0.0">>/mydata/elasticsearch/config/elasticsearch.yml

 # Command to start the container
 docker run --name elasticsearch -p 9200:9200 -p 9300:9300 --privileged=true\
 -e "discovery.type=single-node" \
 -e ES_JAVA_OPTS="-Xms64m -Xmx128m" \
 -v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \
 -v /mydata/elasticsearch/data:/usr/share/elasticsearch/data \
 -v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins \
 -d elasticsearch:7.4.2

 #Authorize all files in this directory to 777
 chmod -R 777 /mydata/elasticsearch/

 # Restart docker
 systemctl restart docker
 docker start elasticsearch

 # Start kibana
 docker run --name kibana --privileged=true \
 -e ELASTICSEARCH_HOSTS=http://192.168.126.20:9200 -p 5601:5601 \
 -d kibana:7.4.2

 # ik tokenizer installation 1. Download the compressed package
 cd /mydata/elasticsearch/plugins/
 wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.4.2/elasticsearch-analysis-ik-7.4.2.zip
 # 2. Unzip
 unzip elasticsearch-analysis-ik-7.4.2.zip -d ik7.4.2
 # 4. Delete
 rm -rf ./*.zip
 # 5. Modify permissions
 chmod -R 777 ik7.4.2/
 #Restart 6, es
 docker restart elasticsearch


 # Enter inside the container
 docker exec -it containerID /bin/bash

 

Oracle command

drop user emp cascade</artifactId
         </dependency
         dependency
             groupIdorg.springframework.cloud</groupId
             artifactIdspring-cloud-starter-openfeign</artifactId  
         </dependency

         dependency
             groupIdorg.springframework.boot</groupId
             artifactIdspring-boot-starter-test</artifactId  
             scopetest</scope>
             exclusions
                 exclusion
                     groupIdorg.junit.vintage</groupId
                     artifactIdjunit-vintage-engine</artifactId
                 </exclusion
             </exclusions
         </dependency
         dependency
             groupIdjunit</groupId>
             artifactIdjunit</artifactId>
             version4.12</version>
             scopetest</scope>
         </dependency

     </dependencies

     dependencyManagement
         dependencies
             dependency
                 groupIdorg.springframework.cloud</groupId
                 artifactIdspring-cloud-dependencies</artifactId
                 version${spring-cloud.version}</version
                 typepom</type>
                 scopeimport</scope>
             </dependency
         </dependencies
     </dependencyManagement

     build
         plugins
             plugin
                 groupIdorg.springframework.boot</groupId
                 artifactIdspring-boot-maven-plugin</artifactId  
             </plugin
         </plugins
     </build

 </project

 

tag”>version4.12 </version
scopetest</scope>
</dependency

</dependencies

dependencyManagement
dependencies
dependency
groupIdorg.springframework.cloud</groupId
artifactIdspring-cloud-dependencies</artifactId
version${spring-cloud.version}</version
typepom</type>
scopeimport</scope>
</dependency
</dependencies
</dependencyManagement

build
plugins
plugin
groupIdorg.springframework.boot</groupId
artifactIdspring-boot-maven-plugin</artifactId
</plugin
</plugins
</build

</project


pan class=”token punctuation”>
</plugins
</build

</project


This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/common-configuration-and-commands-v1-0_amongdecs-blog/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索