Windows 7 JDK 1.8.171 + Tomcat 9.0.8 Environment configuration

Source: Internet
Author: User

Windows environment
C:\>systeminfo|find "OS"OS 名称:          Microsoft Windows 7 专业版OS 版本:          6.1.7601 Service Pack 1 Build 7601OS 制造商:        Microsoft CorporationOS 配置:          独立工作站OS 构件类型:      Multiprocessor FreeBIOS 版本:        American Megatrends Inc. F6, 2017/7/6
Download
jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.htmltomcat:https://tomcat.apache.org/download-90.cgi
Installing the JDK
安装jdk-8u171-nb-8_2-windows-x64.exe 一路nextC:\> java -versionjava version "1.8.0_171"Java(TM) SE Runtime Environment (build 1.8.0_171-b11)Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
environment variable Settings
我的电脑—属性—高级系统设置—环境变量-系统变量新建变量(如有,刚根据实际路径修改)变量名:JAVA_HOME变量值:C:\Program Files\Java\jdk1.8.0_171变量名:CATALINA_HOME变量值:E:\software\apache-tomcat-9.0.8-windows-x64\apache-tomcat-9.0.8变量名:CLASSPATH变量值:%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar最后没有分号在“系统变量”中找到Path变量,双击打开Path变量,在“变量值”的最后面添加%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%CATALINA_HOME%\bin最后没有分号重启电脑
Start Tomcat
E:\software\apache-tomcat-9.0.8-windows-x64\apache-tomcat-9.0.8\bin\startup.bat
Stop Tomcat
直接关闭启动时打开的cmd命令窗口
View ports, Process usage
netstat -ano|findstr "8080"C:\>netstat -ano|find "8080"  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       4884  TCP    [::]:8080              [::]:0                 LISTENING       4884查看进程PID和占用内存情况C:\>tasklist -v | find "4884"java.exe                      4884 Console                    1    109,112 K Running         ZSWD04\Administrator                                    0:00:03 Tomcat
To install Tomcat as a Windows service
语法:Usage: service.bat install/remove [service_name] [/user username]C:\>E:\software\apache-tomcat-9.0.8-windows-x64\apache-tomcat-9.0.8\bin\service.bat install tomcat9Installing the service ‘tomcat9‘ ...Using CATALINA_HOME:    "E:\software\apache-tomcat-9.0.8-windows-x64\apache-tomcat-9.0.8"Using CATALINA_BASE:    "E:\software\apache-tomcat-9.0.8-windows-x64\apache-tomcat-9.0.8"Using JAVA_HOME:        "C:\Program Files\Java\jdk1.8.0_171"Using JRE_HOME:         "C:\Program Files\Java\jdk1.8.0_171\jre"Using JVM:              "C:\Program Files\Java\jdk1.8.0_171\jre\bin\server\jvm.dll"The service ‘tomcat9‘ has been installed.运行> services.msc会发现名为Apache Tomcat 9.0 tomcat9 的服务项目。手动方式。

Windows 7 JDK 1.8.171 + Tomcat 9.0.8 Environment configuration

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.