How do I test if a Tomcat server is running?
To start the Tomcat server, in the Tomcat installation directory, execute:
Windows
.\bin\startup.bat
Mac and Linux
./bin/startup.sh
You will see an output similar to:
Using CATALINA_BASE: $TomcatInstall
Using CATALINA_HOME: $TomcatInstall
Using CATALINA_TMPDIR: $TomcatInstall/temp
Using JRE_HOME: $JRE_HOME
Using CLASSPATH: $TomcatInstall/bin/bootstrap.jar:$TomcatInstall/bin/
tomcat-juli.jar
Tomcat started.
To verify the Tomcat server is running, open a web browser and submit “localhost:8080”. If Tomcat has been set up correctly, a page similar to the following one appears:
Common possible issues
Firewall is blocking requests to Tomcat
Tomcat, by default, runs on port 8080. Ensure that the port is open to accept tcp packets on the system running the Tomcat server.
Tomcat cannot locate Java’s installation directory
If you downloaded Java from Oracle’s website, the Tomcat server may not be able to find the Java installation. In such a case, set the system variable JAVA_HOME to Java’s installation directory.
Note: Restart your Command Prompt or Terminal after setting system environment variables.
Windows
Open Command Prompt as administrator and execute the following if your Java was installed in C:\Program Files\Java\jdk1.8.0_xxx
:
setx -m JAVA_HOME "C:\Program Files\Java\jdk1.8.0_xxx"
Mac
Execute the following on a bash command line or by adding these lines to .bashrc if your Java was installed in /Applications/jdk1.8.0
:
JAVA_HOME=/Applications/jdk1.8.0
export JAVA_HOME
Linux
Execute the following on a bash command line or by adding these lines to .bashrc if your Java was installed in /usr/local/jdk1.8.0
:
JAVA_HOME=/usr/local/jdk1.8.0
export JAVA_HOME
1-800-WOLFRAM (+1-217-398-0700 美国境外用户)
客服支持
周一至周五
8am–5pm 美国中部时区
- 产品注册或激活
- 预售信息和订单
- 安装帮助和首次启动
高级技术支持 (面向特定用户)
周一至周四
8am–7pm 美国中部时区
周五
8:30–10am & 11am–5pm 美国中部时区
- 优先技术支持
- Wolfram 专家助理专员
- Wolfram 语言编程帮助
- 高级安装支持