1:下载 CAS服务器http://www.jasig.org/cas cas-server-3.4.2-release
2: 解压文件;将 cas-server-3.4.2-release/cas-server-3.4.2/modules 下面 的cas-server-webapp-3.4.2.war
发布到 Tomcat webapps 目录下:
3: 配置 tomcat
一下摘自官网文档 :
-------------------------------------------------
Edit the file "c:/tomcat-cas/conf/server.xml" and change the following: In the beginning, change <Server port="8005" shutdown="SHUTDOWN"> to a different value, lets say port="8555". This will avoid conflicts, when using multiple tomcats Do comment out the <Connector port="8080" protocol="HTTP/1.1" .... We don't need HTTP connector, so comment out. Do comment out the <Connector port="8009" protocol="AJP/1.3" ... We don't need AJP connector, so comment out. Uncomment the SSL connector, cause we really need it <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" ... Save the file and (re)start the server. I assume, that the "certstore" and "truststore" is accessible by this Tomcat (see above, creating certs). You should now be able to connect to "https://localhost/cas" with your browser.
修改 8005 端口 --> 8555
注释掉:HTTP/1.1 AJP/1.3 协议 <!--Connector ....-->
修改HTTPS服务Connector port="443" 端口
===============================================================
然后 启动 tomcat 输入 https://localhost:8080/cas/ 进入到登录页面
随便输入任意字符, 但是需要注意 用户名==密码
登录成功