Project to the Linux server, the server environment or data may be different from our local, this time we may need a remote breakpoint to debug, to see the value of each variable in the request process. Here our application server uses the tomcat5.5.17This time you need to know the concept of JPDA.Simply summarize the following JPDA:The Java Platform Debugger Architecture (Jpda:java Platform Debug architecture) consists of a
Introduction to JavaJava is an object-oriented programming language, not only absorbs the various advantages of the C + + language, but also rejects the difficult to understand C + + inheritance, pointers and other concepts, so the Java language has a powerful and easy to use two features. As the representative of static object-oriented programming language, the Java language implements the object-oriented
need to send the key to the production environment host2. Upgrade and RollbackUpgradeAnsible-playbook/home/app/api.yml-vRolling backAnsible-playbook/home/app/api-rollback.yml-vAnsible-playbook followed by the Yml file path written earlier,-V is to display detailed execution information3. AttentionIf you perform an upgrade and rollback of the yml file in Jenkins, be sure to send the public key of the Jenkins user to the production environment host and the test environment host, otherwise the per
1. Java DockerfileCreate the project directory Java, upload the required Java version of the compressed package in the directory, and create the Dockerfile file, the project structure is as follows:Java-dockerfile-jdk-8u111-linux-x64.gzDockerfile content:# java# Version 1.8.0_111# source_imagefrom centos# maintainer_in
I recently learned about Java and tomcat configurations, which are summarized as follows:
1. If you use the original command line (CMD) to compile the. Java file with javac and execute the file with the Java command, you must configure the environment variable as follows:
Method 1:
Click "my computer"-(right-click)
Tomcat is a servlet container developed by the Apache Software Foundation Jakarta Project, which implements the servlet and Javeserver Page (JSP) according to the technical specifications provided by Sun Microsystems Support, Tomcat itself is also an HTTP server, mainly used to parse the JSP language.Deployment of the TOMCAT serverInstallation Environment:JDK + T
code is as follows
Copy Code
[Root@e ~]# Java-versionJava Version "1.6.0_33"OpenJDK Runtime Environment (IcedTea6 1.13.5) (rhel-1.13.5.0.el6_6-x86_64)OpenJDK 64-bit Server VM (build 23.25-b01, Mixed mode)
Install Tomcat6
[Root@e ~]# yum install Tomcat6 Tomcat6-webapps
Installation started successfully
[Root@e ~]# Service Tomcat6 start
Other commands: Service Tomcat6 {start|stop|restart|condrestart|try-restart|r
I. Upload the apache-tomcat-7.0.64.tar.gz andjdk-7u79-linux-x64.tar.gz to the directory/home/zwl/tomcat/command using the FTP toolBecause the Tomcat runtime requires a Java environment, the Java environment must be configured first. One. Building a
First, the installation and configuration of JDK1, download the JDK from the official website, note that JDK is not the JRE. The JDK package contains the JRE. It is best to download it from official website. Portal: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html2. After downloading, install the JDK, install it directly according to the Installation Wizard, you can choose the installation path, my installation path
If you encounter an error when tomcat is started in the Java Web project
14:39:32, 657 INFO (org. springframework. web. context. ContextLoader: 296)-Root WebApplicationContext: initialization completed in 3735 MS14:39:32, 740 INFO (com. opensymphony. xwork2.config. providers. XmlConfiGurationProvider: 42)-Parsing configuration file [struts-default.xml]14:39:44, 805 ERROR (org. apache. struts2.dispatcher. Di
installation directory and create two different home filesMkdir-p/usr/local/tomcat/aa/root/Mkdir-p/usr/local/tomcat/bb/root/echo "www.aa.com" >/usr/local/tomcat/aa/root/index.jspecho "www.bb.com" >/usr/local/tomcat/bb/root/index.jsp3. Restart Service, test4, the path of the site to jump. When accessing www.aa.com:8080
1. Create a new virtual machine to install Tomcat(1) Install JDK website download jdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html download jdk8, put to/ Under the usr/local/src/directory [[Emailprotected]~]#tar-zxvfjdk-8u151-linux-x64.tar.gz[[email protected]~]#mvjdk1.8.0_151/usr/local/jdk1.8[[emailprotected]~]# vim/etc/profile Add the following content: java_home=/us
Environment:Win 7 + JDK 1.7 + Eclipse IDE for Java EE developers 3.7 +tomcat 6.0First, prepare the software: Jdk: Ide:Server: (i) Installing and configuring the JDKThe JDK comes with a JRE and does not need to be downloaded separately.Open the JDK installation,Select the installation directory, next, install the JDK, ask whether to install the JRE, choose Next,Finally ask if you want to install
1, a simple picture of the layout of the Docker, it is virtual, Docker is divided into a VPN, mirror, container three modulesGenerally from the server pull image, image run a container, we put the container as a virtual service, which can be run independently of the process has a separate intranet IP,Usually the Tomcat, the project is hung in the container to run2. Fast installation of Docker (not much difference on CentOS, Ubuntu)sudo apt-get updates
we need to build tomcat before we build the opencms. Mysql Database
Install the JDK First anddownload the JDK and apache-tomcat packages.
(1) unpack the package first during the JDK installation command:tar–zxvf jdk–c/usr/local (JDK installation path )
(2) you will then need to add in the environment variable fileExportjava_home=/usr/local/jdk1.6.0_45Exportjre_home=/usr/local/jdk1.6.0_45/
Article category: Java programmingKeywords: Linux Java Runtime Environment configuration MySQL JDK Tomcat
To enable Web applications, that is, websites, the first task is to install the running environment and configure the environment accordingly.
This article describes in detail how to build and configure a Java Web
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.