![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tomcat
来杯java茶
这个作者很懒,什么都没留下…
展开
-
Linux系列之——tomcat 的开机自启动
每次开机都要启动tomcat,非常麻烦:通过直接修改系统文件,实现tomcat自启动:修改脚本文件rc.local:vim /etc/rc.d/rc.local这个脚本是使用者自定的开机启动程序,可以在里面添加想在系统启动之后执行的脚本或者脚本执行命令添加如下内容: export JAVA_HOME=/usr/local/jdk/jdk1.8.0_xxx /usr/local...转载 2020-01-20 14:32:36 · 141 阅读 · 0 评论 -
tomcat linux 远程访问
远程开启jvm监控tomcat/bin/catalina.sh文件添加如下内容JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.rmi.port=9004 -Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.ma...原创 2019-12-17 09:53:28 · 166 阅读 · 0 评论 -
修改tomcat端口
打开tomcat目录下conf目录下server.xml <Connector port="8066" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8019" protocol=...原创 2019-08-27 09:11:49 · 325 阅读 · 0 评论 -
HttpServletRequest request获取HTTPS配置
<?xml version="1.0" encoding="UTF-8"?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this...原创 2019-09-27 11:21:52 · 3364 阅读 · 0 评论 -
设置tomcat conf/web.xml配置跨域
<filter> <filter-name>CorsFilter</filter-name> <filter-class>org.apache.catalina.filters.CorsFilter</filter-class> <init-param> <param-name&...原创 2019-09-27 13:59:44 · 559 阅读 · 0 评论