log-pilot:k8s Log Collection Artifact

There are two common solutions for pod log collection in k8s. Solution 1: Use fluentd as daemonset to collect all logs in stdout and / var/lib/containers directories (because fluentd is not familiar with, so it is troublesome); Solution 2: Use filebeat as sidecar (which is too cumbersome and requires adding this container to each pod) Accide ...

Posted by artacus on Sat, 12 Oct 2019 08:30:52 -0700

Centos configuration Nginx+tomcat

1. installation 1.1 Install gcc gcc-c++ (If new environment is not installed, please install first) $ yum install -y gcc gcc-c++ 1.2 Installation of the PCR E Library $ cd /usr/local/ $ wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz $ tar -zxvf pcre-8.36.tar.gz $ cd ...

Posted by reub77 on Fri, 11 Oct 2019 12:05:42 -0700

Wechat Public Number Development Notes

Development This project is based on the java web project, using tomcat as the web container. (Conditionally, you can use your own server and domain name to operate) First, we use natapp intranet penetration (or ngrok, personally recommended natapp) Intranet penetration tutorial Baidu By running natapp -authtoken ***** (***** represents ...

Posted by superhoops on Fri, 11 Oct 2019 01:41:44 -0700

Tomcat Source Analysis I: Compiling Tomcat Source Code

Tomcat Source Analysis I: Compiling Tomcat Source Code 1 Content Introduction In the previous "Servlet and Tomcat Running Example" article, we will show you how to deploy Servlet application in Tomcat. This article will start Tomcat source code analysis journey on the basis of the above, I will analyze the starting process and operati ...

Posted by [JayZ] on Fri, 11 Oct 2019 01:01:54 -0700

Verification Code Picture Generation and Solution to the Problem of Unable to Display

IntelliJ IDEA implements verification code related module for web page generation: import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGImageEncoder; import java.awt.*; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; ...

Posted by lanjoky on Tue, 08 Oct 2019 23:00:22 -0700

[SpringBoot 2.x] - Thymeleaf, Web, Tomcat and Faicon in SpringBoot Web development

Web development is a very important part of development. The core content of Web development mainly includes embedded Servlet container and Spring MVC. More importantly, Spring Boot ``provides a quick and convenient way to develop web. It provides Tomcat and Spring MVC dependencies of embedded server using dependency jar: spring-boot-starter-w ...

Posted by begeiste on Tue, 08 Oct 2019 22:45:30 -0700

Microprojects: Step by step, take you to the beginning of SpringBoot

Today, let's use JPA to do paging projects and explain them. If you are a new friend, please return to the last one.Last article: Microprojects (I) maven integration Import the following dependencies into the dependencies dependencies dependencies of the pom file <dependency> <groupId>org.springframework.boot< ...

Posted by mwilson2 on Tue, 08 Oct 2019 11:48:13 -0700

Automatic Configuration Principle of SpringBoot Embedded Tomcat

If you read this article before you read it Analysis of SpringBoot Automatic Assembly Principle It should be easier. Preparation We know that the secret of SpringBoot's automatic assembly is in the spring.factories file under the package org. spring framework. boot. autoconfigure, and the principle of embedding Tomcat is a configuration class ...

Posted by farkewie on Tue, 08 Oct 2019 09:18:00 -0700

[SpringBoot 2.x] - Thymeleaf, Web, Tomcat and Favicon in SpringBoot Web Development

github: https://github.com/Ccww-lx/Sp... Module: spring-boot-starter-base-web Web development is a very important part of development. The core content of Web development mainly includes embedded Servlet container and Spring MVC. More importantly, Spring Boot `provides a quick and convenient way for web development. It uses dependency jar: sp ...

Posted by virva on Sat, 05 Oct 2019 20:47:38 -0700

The era of source code JAVA dry goods sharing! Use NIO simulation to realize Tomcat container!

What is NIO?New IO, which started in Java 1.4, provides a new non-blocking Java IO operation API.Non-Blocking IOInstead of the old version of Blocking IO, it is mostly used for network-related API s. Why use NIO?After using NIO, the performance of WEB network program can be further improved.Simulate Tomcat 7, block IO to process Http requests: ...

Posted by spellbinder on Sat, 05 Oct 2019 20:20:43 -0700