Home > php教程 > php手册 > 一、记一次失败的 CAS 搭建 之 环境配置

一、记一次失败的 CAS 搭建 之 环境配置

WBOY
Release: 2016-06-13 09:33:01
Original
906 people have browsed it

=========================================================================================================

Setp1:安装JDK、Tomcat、以及相关关联::参考:http://jingyan.baidu.com/article/8065f87fcc0f182330249841.html

=========================================================================================================

1、安装Tomcat 服务器

下载地址:http:<span>//</span><span>tomcat.apache.org/</span>
Copy after login

2、安装JDK1.7

下载地址:http:<span>//</span><span>www.oracle.com/technetwork/java/javase/downloads/index.html</span>
Copy after login

3、配置JDK跟Tomcat相关的环境变量以使JDK跟Tomcat进行关联

JDK:

1,JAVA_HOME,变量值:C:\Program Files\Java\jdk1.7.0
2,PATH:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
3,CLASSPATH:.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar

Tomcat:
1,CATALINA_BASE,变量值:Tomcat根目录
2,CATALINA_HOME,变量值:Tomcat根目录
3,PATH:%CATALINA_HOME%\lib;%CATALINA_HOME%\bin
Copy after login

4、开启Tomcat服务

<span>CMD开启tomcat服务命令:startup

PS:关闭服务命令默认为shutdown,似乎跟window下的shuwdown冲突了,可以到tomcat的bin目录下把shutdown.bat改名为别的就可以了</span>
Copy after login

5、检测JDK是否正常安装

检测命令:javac,java,javadoc
版本查看:java -version
以上均有值返回就是正常的了!
Copy after login

6、浏览器输入:http://localhost:8080,能看到启动页面就证明是安装成功了!

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template