最近想要研究一下Tomcat源码,并把它导到IDE中,以方便调试。参考了网上的一些资料,再结合自己的实际操作,总结了一下。 准备工作 下载Tomcat7.0源码,这里选择apache-tomcat-7.0.59-src版本。 下载安装maven工具,用于管理项目和依赖。这里直接下载二进制...
Intellij IDEA 创建Web项目并在Tomcat中部署运行 一.创建Web项目 1、File - New Module,进入创建项目窗口 2.选择Java类型,在 Module name 处输入项目名,点击Next 3.勾选 Web Application,勾选 Create web.xml选项,点击Finish 4.在项目的WEB-INF目录下点...
坑...
原文:How to remotely debug application running on tomcat within Intelli Idea 本文摘取了原文多种配置中得一种并检验成功: 一下配置均针对Linux系统 tomcat版本:7.0.41 远程调试分为两个主要步骤: 1.启动远端Tomcat并开启一个远程调试端口 2.本地IDE...
摘要: 使用 IDEA 调试生产环境上的 Tomcat 出错的方法 刚刚生产环境上部署了个新版本应用之后出现错误了,按照以往的调试方式就是 log 输出,看看那个地方出的问题,这次终于觉得难以忍受了,决定试试 Tomcat 的远程调试效果咋样。 网上搜索了一圈之后基本有...
2 3 4 5 6 wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz tar zxvf LuaJIT-2.0.2.tar.gz make make install PREFIX=/usr/local/luajit2.02 echo /usr/local/luajit2.02/lib /etc/ld.so.conf.d/luajit.conf export LUAJIT_LIB=/usr/local/luajit2.02/...
1 git clone https://github.com/liseen/lua-resty-http.git Nginx配置: 1 2 3 4 5 6 7 8 http { llua_package_path /path/to/lua-resty-http/lib/?.lua;;; server { location /test { content_by_lua_file /usr/local/nginx/conf/lua/proxy.lua; } } Proxy...
location / { set $bindip ; content_by_lua_file /usr/local/nginx/lua/proxy.lua; } location /proxy { proxy_pass http://$host$request_uri; proxy_bind $bindip; } local action = ngx.var.request_methodif action == POST then method = ngx.HTTP_POS...
1.rewrite使用break结,使用last会对server标签重新发起请求 location /a/ { rewrite ^/a/(.*)$ /b/$1 break; proxy_pass http://www.it.net.cn; } 2.proxy_pass结尾添加/会丢弃路径目录,如下访问/a/test.html会代理到/test.html location /a/ { rewrite ^/a...
nginx 的官方注释是这样的: 1 2 3 4 5 last stops processing the current set of ngx_http_rewrite_module directives followed by a search for a new location matching the changed URI; break stops processing the current set of ngx_http_rewrite_m...
1 Docker 是什么? -1.1 容器是什么? -2 安装 Docker -2.1 启动 docker 守护进程 -3 ...
使用场景 最近,报告查询系统负载均衡集群相关配置已经完成,两种实现方式分别是基于E...
当你执行 nginx -t 得时候,nginx会去测试你得配置文件得语法,并告诉你配置文件是否...
本文将介绍一些SSL安全性的配置,以此提升网站的安全等级。先给出本博客的SSL配置: s...
Step 1:安装配置JDK 1.下载JDK rpm包 下载地址:http://www.oracle.com/technetwork/...
问题现象: 我们有时候会遇到ssh连接服务器的时候非常慢,经常是要等30秒以上,甚至更...