一、Struts2概述 Struts2:是一个基于MVC设计模式的Web应用框架,它本质相当于一个Servlet,在MVC设计模式中Strust2作为控制器来建立模型与视图的数据交互。 二、搭建Struts2开发环境 ①、下载Struts2 官网struts.apache.org ②、解压Strut ...
分类:
编程语言 时间:
2020-11-24 12:04:40
阅读次数:
11
手动下载安装nginx 需要的安装依赖包 登录可连接公网的一台机器, 配置 nginx.repo yum源 cat nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$bas ...
分类:
其他好文 时间:
2020-11-23 12:47:29
阅读次数:
23
<!DOCTYPE html> @*这个声明用来指出程序应该用什么规则集合来解释文档中的标记*@ <html> <head> <meta /> @*主要定义html网页介绍,网页关键字,网页编码,页面作者 自动跳转定义以及robots协议等内容*@ <meta http-equiv="content ...
分类:
Web程序 时间:
2020-11-23 12:41:31
阅读次数:
27
问题一: [root@cdeba90ec46e ~]# ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module bash: ./configure: No such fil ...
分类:
其他好文 时间:
2020-11-23 12:11:38
阅读次数:
5
最近生产环境在这两个参数之间遇到过几次坑。这里记录下。 client_max_body_size client_max_body_size 默认 1M,表示 客户端请求服务器最大允许大小,在“Content-Length”请求头中指定。如果请求的正文数据大于client_max_body_size, ...
分类:
其他好文 时间:
2020-11-23 12:01:24
阅读次数:
6
NGINX and the "Power of Two Choices" Load-Balancing Algorithm - NGINX https://www.nginx.com/blog/nginx-power-of-two-choices-load-balancing-algorithm/ ...
分类:
其他好文 时间:
2020-11-23 11:48:43
阅读次数:
4
@ 1.Docker概述 1.1Docker为什么会出现 一款产品:开发--》上线,需要两套环境!应用环境,应用配置! 开发 运营之间产生问题:我在我的电脑上可以运行!版本更新导致服务不可用!对于运维就很难 开发即运维! 环境配置十分麻烦,每一个机器都要部署环境(集群Redis、ES、Hadoop。 ...
分类:
其他好文 时间:
2020-11-21 12:47:24
阅读次数:
31
汇编程序根据字节替换自动将短、近和远的跳转及调用汇编到目标地址。通过使用near或far前缀可以替代这样的跳转或调用,如下例所示: -a0100:0500 0100:0500jmp502;a2-byteshortjump 0100:0502jmpnear505;a3-bytenearjump 010 ...
分类:
其他好文 时间:
2020-11-21 12:33:09
阅读次数:
6
需求背景 在开发过程中,经常遇到用户提出 如果某个内容没有填写,则需要弹出提示,并且将页面滚动到指定位置的需求。那这种情况应该怎么实现呢?具体代码如下: 一、给链接a加个#的方式来实现跳转。 div1 div2 div3 <div id="container"> <a href="#div1">di ...
分类:
Web程序 时间:
2020-11-21 12:27:15
阅读次数:
21
##引言 这两天写项目碰到了使用nginx作为图片服务器及简单的地址重写 ###Nginx作为图片服务器 server { listen 80; server_name image.leyou.com; proxy_set_header X-Forwarded-Host $host; proxy_s ...
分类:
其他好文 时间:
2020-11-21 12:27:00
阅读次数:
7