设为首页 加入收藏

TOP

centos环境tomcat配置SSL(四)
2023-08-06 07:49:33 】 浏览:114
Tags:centos 环境 tomcat 配置 SSL
/SSLHostConfig> </Connector> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <!--<Connector protocol="AJP/1.3" address="::1" port="8009" redirectPort="443" maxParameterCount="1000" /> --> <!-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html --> <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> --> <Engine name="Catalina" defaultHost="localhost"> <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) --> <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> --> <!-- Use the LockOutRealm to prevent attempts to guess user passwords via a brute-force attack --> <Realm className="org.apache.catalina.realm.LockOutRealm"> <!-- This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" /> <Context path="" docBase="/usr/local/tomcat/apache-tomcat-9/webapps/blog"/> </Host> </Engine> </Service> </Server>

二.下载安装JDK,yum安装后面依赖缺少时还要重新配置环境变量

(1)查看是否已安装jdk JDK1.8 验证6BA16928.png mx1f

rpm -qa | grep jdk

(2)查看jdk版本

java -version

(3)删除所有旧版本jdk
  1. 删除java的安装目录
#卸载所有openjdk相关文件输入
yum -y remove java-1.8.0-openjdk*

#卸载tzdata-java
yum -y remove tzdata-java.noarch  
  1. vi /etc/profile 删除关于java的配置
  2. source /etc/profile 立刻生效; java -version 此时查不到
  3. 下载后解压 配置jdk 环境 在 /etc/ 下修改profile 将如下粘贴到最后
export JAVA_HOME=/usr/local/java/jdk8
export JRE_HOME=/usr/local/java/jdk8/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin

一些问题

1.Failed to initialize component [Connector[HTTP/1.1-443]] ;

  • 检查上述文件的por是
首页 上一页 1 2 3 4 下一页 尾页 4/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇application.yml文件中开启mybati.. 下一篇69.9K Star,最强开源内网穿透工..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目