Tomcat8 restricts specified domain name or IP access

Environmental Science:  Tomcat8.0.53Objectives:Set to use the specified domain name or IP access 1. SET domain name access 1.1 open the server.xml file of the conf directory under Tomcat and find the following information Modify Engineengine specifies the default host name to process the request, which is at least the same as the name at ...

Posted by weemee500 on Fri, 06 Dec 2019 20:26:20 -0800

Docker builds Java Web + Mysql running environment

Precondition An Ubuntu machine with Docker installed. If you don't know how to install Docker, Please poke here.. I. pull the basic image of ubuntu and mysql 1. Get mysql image docker pull mysql:latest 2. Get ubuntu image docker pull ubuntu 2. Check whether the image is pulled to root@gancy:/# docker images REPOSITORY ...

Posted by luked23 on Fri, 06 Dec 2019 19:47:39 -0800

jenkins triggers the automatic construction of docker image, uploads it to harbor and publishes it

I. making Dockerfile file 1. Deploy on 172.19.2.51 mkdir -pv /opt/git git clone http://172.19.2.140:18080/lvqingshan/gcgj.git cd /opt/git/gcgj scp app@172.19.2.1:/home/app/portal-tomcat/webapps/portal.war ./ scp app@192.168.37.34:/home/app/portal-tomcat/conf/server.xml ./ vim Dockerfile FROM tomcat:7.0.77-jre8 ADD server.xml /usr/local/tomcat ...

Posted by Valect on Fri, 06 Dec 2019 15:07:19 -0800

How to configure multiple JDK environment variables under Linux(CentOS7)

I. Linux version 2. Copy and paste multiple jdks, as follows cp -R jdk1.7.0_80/ jdk1.7.0_80-2 cp -R jdk1.7.0_80/ jdk1.7.0_80-3 3. Configure multiple JDK environment variables Add the following after the / etc/profile file # JDK1 environment configuration export JAVA_HOME=/usr/local/program/jdk1.7.0_80 export JRE_HOME=$JAVA_HOME/jre export ...

Posted by lasse48 on Fri, 06 Dec 2019 02:21:17 -0800

Multiple domain name binding of the same Tomcat

Requirement: the same Tomcat Objectives: 1. Access the project under the webapp of Tomcat through the localhost / project name 2. Through www.aaa.com and www.bbb.com, visit the virtual hosts with different domain names under Tomcat I. modify the port number under the server.xml file II. Project location 3. Multi domain configu ...

Posted by genics on Wed, 04 Dec 2019 07:05:45 -0800

FTP file upload and download

During the development of uploading and downloading files on FTP, you can log in to the FTP server, but the upload and download always report an error. After that, the FTPClient.enterLocalPassiveMode() method is added before the operation. Success.Note: call ftp client. Enterlocalpassivemode(); this method means that before each data connectio ...

Posted by kidsleep on Tue, 03 Dec 2019 03:34:32 -0800

Tomcat server of Centos 7 system

I. The Origin of tomcat Name origin: tomcat was originally developed by sun's software architect James Duncan Davidson. Later he helped turn it into an open source project, which Sun contributed to the Apache Software Foundation. Because O'Reilly, the majority of open source projects, will produce a related book and design its cover as a sketc ...

Posted by qartis on Mon, 02 Dec 2019 22:30:28 -0800

Spring Boot implements file upload server and echo

Directory Express 1. Import dependency package: 2. Use the mullitypart in spring MVC 1) get the stream of picture file through MultipartFile img 2) use IOUtils to save pictures locally 3. Map local file to URL by configuring WebMvcConfigurerAdapter 4. Test whether the upload is successful through PostMan 1. Import depen ...

Posted by cocell on Mon, 02 Dec 2019 05:29:19 -0800

springboot 2.0.8 jump to jsp page

Spring boot project creation tutorial https://blog.csdn.net/q18771811872/article/details/88126835 springboot 2.0 jump to html tutorial https://blog.csdn.net/q18771811872/article/details/88312862 jsp+html jump integration https://blog.csdn.net/q18771811872/article/details/88343672 This is a tutorial to jump to jsp page separately. I will intr ...

Posted by PickledOnion on Sun, 01 Dec 2019 05:36:45 -0800

Supervisor's installation and management of tomcat process under CentOS7

Before installation, please ensure that your server can access the Internet normally, and the firewall is closed. Turn off selinux 1. Supervisor installation yum install python-setuptools //Installation dependency easy_install supervisor mkdir /etc/supervisord.d/ //Create directory cd /etc/supervisord.d/ echo_supervisord_con ...

Posted by sunnypal on Sat, 30 Nov 2019 08:53:55 -0800