[Record] centOS build logstash + docker build elasticsearch pseudo cluster + kibana link cluster node elasticsearch

    [Note] This article is mainly used for self-recording, annotation less.

 

 

Installation logstash 
 
1. logstash-6.4.3.tar.gz uploaded to the service 
2.tar -zxvf logstash-6.4.3.tar.gz 
3.cd logstash-6.4.3 
 
perform the following steps must first be installed the JDK 
4. bin / logstash-plugin-install logstash the INPUT-jdbc 
5. bin / logstash-plugin-install logstash the Output-elasticsearch 
 
/ usr / local / SQL stored mysql.conf # and mysql_1.conf 
 
CAT mysql.conf # view the file 
 
last_run_metadata_path: file synchronization point this file records the last synchronization point, reads this file when restart 
 
can be deleted, restart logstash automatically create 
 
index => "user" # index custom name 
 
/usr/local/logstash-6.4.3/config/pipelines .yml cluster configuration 
 
- pipeline.id: table1 
  path.config: "/usr/local/sql/mysql.conf" 
- pipeline.id: table2 
  path.config: "/usr/local/sql/mysql_1.conf" logstash cluster start ./bin/logstash -f
 
firewall-cmd --add-port = 9300 / tcp # open 9300 / TCP port 

firewall-cmd --permanent --add-port = 3690 / tcp # permanently open 3690 / TCP port 

start elasticsearch cluster 
 
docker run -e ES_JAVA_OPTS = " -Xms256m -Xmx256m "-d -p 9200: 9200 -p 9300: 9300 -p 5601: 5601 -v /usr/local/es/config/es1.yml:/usr/share/elasticsearch/config/elasticsearch.yml - v / usr / local / es / plugins1: / usr / share / elasticsearch / plugins -v / usr / local / es / data1: / usr / share / elasticsearch / data --name ES01 446946b24cdd 
 
 
given: 
java.nio.file. AccessDeniedException: / usr / share / elasticsearch / data / nodes 
 
resolve: 
chmod 777 / usr / local / es / data1 # read-write executables 

rm -i filename # remove the folder prompted 
rm filename # delete folders silent 

mkdir : If the situation does not exist in the presence of the parent directory, the directory will not be created subordinate, it will propose ERROR 

mkdir -p: recursively create directories, even if the parent directory does not exist, it will automatically create a directory by directory hierarchy

mkdir java # create folders in the current directory 

mv filename1 filename2 # filename1 move to the next folder filename2

 

  

 

Guess you like

Origin www.cnblogs.com/wbl001/p/11261695.html