Tomcat : Web server software
download : http: //tomcat.apache.org/
Installation : unzip the archive to.
Uninstall : Delete the directory on the line
to start:
Windows, double-click to run bin / startup.bat the file to
access: Enter the browser: http: // localhost: 8080 Enter access their own; http: // others ip: 8080 people visit
possible problems encountered:
- Black window flashed:
Cause: not configured correctly JAVA_HOME environment variable
configuration jdk installation path is named JAVA_HOME
will be added to the PATH JAVA_HOME
- Start being given:
1, find the port number occupied, and find the corresponding process, kill the process
using the netstat -aon | findstr port number, see what is taking up port 1099
using taskkill / pid 7792 / f command to end the process
2, modify its port number
server.xml file in the conf directory
<Connector port="8888" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8445" />
* 一般会将tomcat的默认端口号修改为80。80端口号是http协议的默认端口号。
* 好处:在访问时,就不用输入端口号
shut down:
- Normal Close:
Click shutdown.bat bin directory or Ctrl + c - Forced Off:
click on the window to close