Shell Programming case Multi-Branch Statement, Loop Statement (for, while, etc.), Shell Function, Shell Array

case multi-branch statement The structure of case statement: Execute different command lines for different values of variables case variable value in Mode 1) Command Sequence 1 ;; Mode 2) Command Sequence 2 ;; ..... *) Default command sequence esac Example: Character type recognition: Prompt the user to enter a character ...

Posted by merrydown on Sun, 13 Oct 2019 18:14:14 -0700

Tomcat Virtual Host or Secondary Domain Name Configuration

Project Host Configuration Based on Virtual Directory In Tomcat, the default virtual directory is webapps, but for the project location, we can also set up Context to achieve, a Host can set up more than one Context; <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xm ...

Posted by Wldrumstcs on Sun, 13 Oct 2019 11:27:47 -0700

JDBC Realm of Apache shiro's built-in Realm

Realm Profile: Again, data domains, Shiro, and connectors for secure data are like jdbc connecting to databases; getting information about authentication and authorization through realm realm effect: Shiro retrieves security data from Realm The default home realm: idae looks at realm inheritance relationships with default implementations a ...

Posted by Gappa on Sun, 13 Oct 2019 11:11:33 -0700

Pod containers share Volume

Project background In the following example, Pod contains two containers: tomcat and busybox. Volume "app-logs" is set at the Pod level for tomcat to write log files to and busybox to read log files. # cat pod-volume-applogs.yaml  apiVersion: v1 kind: Pod metadata:   name: volume-pod spec:   containers:   - name: tomcat    image: tom ...

Posted by kshyju on Sun, 13 Oct 2019 10:33:33 -0700

Hive Homework - Return the name of the student with the highest score for each course

Assignment: Return the name of the student who scored the highest mark for each course. t_score_data.txt zhangsan math:90,english:60 lisi chinese:80,math:66,english:77 wangwu chinese:66,math:55,english:80 Return the names of the students for each course and for the highest score chinese ...

Posted by nephish on Sun, 13 Oct 2019 10:23:26 -0700

[JavaWeb] JSTL tag library

JSTL tag library JSTL Standard Label Library; JSTL is used to simplify JSP development and improve code readability and maintainability. JSTL is defined by SUN(Oracle) and implemented by Apache Tomcat team. Reference to JSTL Core Library Core is the most important tag library of JSTL, which provides the basic functions of JSTL. <%@ taglib ...

Posted by farel on Sat, 12 Oct 2019 12:10:36 -0700

Maven's Core Concept

Maven's Core Concept 1. coordinates Maven coordinates consist of main components (GAV) to determine the location of a jar package groupId: Defines the current Maven organization name artifactId: Define the actual project name Version: Defines the current version of the current project 2. Finding coordinates Visit http://www.mvnrepository.co ...

Posted by Killswitch on Sat, 12 Oct 2019 10:36:01 -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

Storm series: Create Maven project packages and submit wordcount to Storm cluster

Links to the original text: http://www.cnblogs.com/NewIdea/p/deploy-wordcount-topology.html In the last blog, we passed Storm.Net.Adapter Create a Storm Topology - word count written in Csharp. This article describes how to write Java-s ...

Posted by phynias on Fri, 11 Oct 2019 10:46:43 -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