Centos7 installation solr and configuration

Install Centos7 slightly Configure IP https://blog.csdn.net/fenglailea/article/details/12191607 Configure IP and DNS according to the above case vim /etc/sysconfig/network-scripts/ifcfg-eth0 Part of the content is changed to the following BOOTPROTO=static IPV6INIT=no ONBOOT=yes IPADDR=192.168.125.131 GATEWAY=192.16 ...

Posted on Thu, 02 Jan 2020 01:57:11 -0800 by fatfrank

Install two or more tomcat under linux

(1) Edit environment variable: vi /etc/profile Add the following code (tomcat path to configure your own actual tomcat installation directory) ##########first tomcat########### CATALINA_BASE=/usr/local/tomcat CATALINA_HOME=/usr/local/tomcat TOMCAT_HOME=/usr/local/tomcat export CATALINA_BASE CATALINA_HOME TOMCAT_HOME ######### ...

Posted on Wed, 01 Jan 2020 20:04:14 -0800 by pufferz

JAVA implementation of QQ code scanning of third-party website login Demo

Because the company needs to use JAVA to realize QQ code scanning and login, after three days of hard work, it finally realizes this function. This is a Demo implemented by Servlet, which is easy to migrate into the project, not to mention much. Next, paste the code ConstantManager.java package com.qq.common; import java.net ...

Posted on Wed, 01 Jan 2020 04:39:09 -0800 by DangerousDave86

Install tomcat7 under CentOS 6.5

Before installation, make sure that the java jdk has been installed correctly. Please Refer to install jdk1.8 under CentOS 6.5 If Tomcat 7.0 is used, make sure that jdk is 1.6 or above. Tomcat version selection and download are detailed on the official website: http://tomcat.apache.org/index.html 1. Decompress after downloading Copy apache-t ...

Posted on Tue, 31 Dec 2019 08:41:27 -0800 by nalleyp23

Elk elkstack using message queuing

The logs are collected from the logstash to redis, and then read data from the logstash to the ES       1. Use redis test for logstash Input to redis through standard   logstash configuration and startup 1 [yun@mini03 config]$ pwd 2 /app/logstash/config 3 [yun@mini03 config]$ cat redis_test.conf 4 input{ 5 stdin{} 6 } 7 8 filter{ ...

Posted on Tue, 31 Dec 2019 01:48:51 -0800 by shush

js and java determine whether a string or array contains an element

1, js determines whether a string contains an element 1. The indexof method is used to check whether an element is included. The method returns the first occurrence of a specified string value in the string. If the string value to retrieve does not appear, the method returns - 1. var str = "123"; if(str.indexOf("3") != -1){/ ...

Posted on Tue, 31 Dec 2019 00:26:48 -0800 by atzi

Setting up maven private server Nexus in Linux Environment

1: Setting up environment and installation 1:Linux environment (centos7) Linux VM_0_10_centos 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Environment ->Tencent cloud 2:Java environment installation 1: Download jdk1.8: http://www.oracle.com/technetwork/java/javase/do ...

Posted on Mon, 30 Dec 2019 23:18:01 -0800 by kristo5747

httpd configuration service

1. Compile and install httpd-2.4 1. Installation and development environment [root@localhost ~]# yum groups mark install "Development Tools" install development tools [root@localhost ~]# groupadd -r kongcheng [root@localhost ~]# Useradd - R - G Kong Cheng Kong Cheng create users and groups [root@localhost ~]# id ko ...

Posted on Mon, 30 Dec 2019 08:44:52 -0800 by allenskd

Introduction to Java Logs - Log4j

Log4j is an open source project for Apache at http://logging.apache.org/log4j/1.2/index.html.By using Log4j, you can control the output of log information to consoles, files, databases, and so on. You can control the output format of each log. By defining the level of each log information, you can control the generation of the log in more detai ...

Posted on Sun, 29 Dec 2019 23:17:18 -0800 by x2fusion

SpingBoot -- configuration of RestTemplate

Background: in recent work, an intermediate system has been built, which uses the resttemplate framework to call the restful interface of the third system, and the caller uses polling to call the relevant interfaces of the system. During this period, heap memory overflows and the system is suspended for many times. The dump file generated by th ...

Posted on Sun, 29 Dec 2019 08:32:30 -0800 by foxfirediego