Using idea to package spring cloud project and deploy it under tomcat

Note: there are three projects, One provides eureka Service -- EHL eureka Server1, A data interface service -- apps is, A web service - appsweb Use idea to make war package: Build - > build artifacts -- > select all or single Find the war package in the workspace, for example: E:\workspace-mars\mps\mps-apps-is\target Deploy to tomcat Fr ...

Posted by santhosh_89 on Sun, 15 Dec 2019 11:40:32 -0800

SaltStack automatic deployment keepalived to achieve high availability of haproxy

Experimental environment rhel6.5 serevr1 salt-master,salt-minion keepalived+haproxy ip:172.25.254.100 server4 salt-minion keepalived+haproxy ip :172.25.254.104 server2 salt-minion ip:172.25.254.102 server3 salt-minion ip:172.25.254.103 Virtual IP 172.25.254.200 See https://blog.csdn.net/weixin_/article/details/834 ...

Posted by varzosu on Sat, 14 Dec 2019 12:55:02 -0800

9. User defined FileOutputFormat classification output

1, demand The output path of MR's map and reduce is the path specified by FileOutPutFormat.setOutPutPath(), but sometimes the code needs to output the results by classification, such as the error information output to one file, and the correct output to another file. In this way, you need to customize to override a FileOutPutFormat class to cla ...

Posted by jonathanellis on Sat, 14 Dec 2019 12:29:26 -0800

Real time log analysis by Flume+Kafka+SparkStreaming+Redis+Mysql ip access times

Novice learning, if there are mistakes, please correct, thank you! 1. Start zookeeper and kafka, and set a topic as test fkss. For the convenience of observation, I added it through kafka manager 2. Configure Flume and start it. The listening file is / home / czh / docker-public-file/testplume.log, which is sent to kafka a ...

Posted by ksduded on Sat, 14 Dec 2019 10:51:38 -0800

SpringCloud Distributed Microservice Cloud Architecture Part 5: Routing Gateway (zuul)(Finchley version)

SpringCloud Distributed Microservice Cloud Architecture Part 5: Routing Gateway (zuul)(Finchley version)In the micro-service architecture, several basic service governance components are needed, including service registration and discovery, service consumption, load balancing, circuit breaker, intelligent routing, configuration management, etc ...

Posted by wpsa on Fri, 13 Dec 2019 10:31:35 -0800

Theory+Practice: apache's Virtual web Host Configuration

@[toc]Common apache features, virtual hosts One: Virtual Web Host Run multiple Web sites on the same server, each of which does not occupy a real computer independently 1.1 Types of virtual hosts supported by httpd (three) Type based on domain name IP Address Based Virtual Host Port-based virtual hostFor example:www.kgc.omwww.accp.comIP Same ...

Posted by mdgalib on Thu, 12 Dec 2019 19:16:14 -0800

Apache Maven from Getting Started to Ascending

If you like, order a compliment! GitHub Project JavaHouse Synchronized recording 1 Introduction Maven should be an essential tool in everyday Java development, and of course Gradle is used.So what exactly is Maven?Isn't it just a dependent import tool?I believe many people feel the same way as me.But in general, what you feel is often unrelia ...

Posted by dennissanche on Thu, 12 Dec 2019 18:03:12 -0800

Lucene note 26 - using Lucene - Custom QueryParser to solve some query performance problems

I. reasons for using custom QueryParser For some query parsers (fuzzy query, wild card query) the performance will be reduced when querying, so consider canceling these queries. In the specific query, there is probably a requirement: the obtained query range is a number, so the original QueryParser must be expanded to carry ...

Posted by CorkyMcDoogle on Thu, 12 Dec 2019 13:46:11 -0800

Everything is a map: the essence of code

Dynamic execution of a simple code, using the generation of java files, call javac compilation, reflection of the way of execution. Use the I / O stream (or what you might say is to use reflection to get the program results to parse) to parse *. Java files. You can then use runtime to call the java compile command under Dos to comp ...

Posted by olko on Thu, 12 Dec 2019 10:17:19 -0800

Lucene note25 - use of Lucene - scoring settings by domain

I. demand Set scoring rules according to the file name, or double the score of the latest year according to the modification time of the document, reduce the score beyond one year, etc. II. Specific implementation Here, the scoring rule is modified according to the file name. The scores containing "JRE" and "S ...

Posted by darkshine on Thu, 12 Dec 2019 08:55:10 -0800