文件上传下载工具类

文件上传application.properties 文件设置 (默认设置 1MB)#设置上传文件的大小spring.servlet.multipart.max-file-size=100MBspring.servlet.multipart.maxRequestSize=100MBpublic St

MySQL八股文连环45问,你能坚持第几问?【面试】【转发】

原文链接:https://blog.csdn.net/weixin_41645135/article/details/123963994?spm=1001.2100.3001.7377&utm_medium=distribute.pc_feed_blog_category.none-task

数据库SQL调优的几种方式【转发】

数据库SQL调优的几种方式在项目中,SQL的调优对项目的性能来讲至关重要,所有掌握常见的SQL调优方式是必不可少的,下面介绍几种常见的SQL的调优方式,供借鉴.一.创建索引1.要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引2.(1)在经常需要进行检索的字段上创

nginx: [emerg] unknown directive “stream“ in /etc/nginx/nginx.conf:8

解决办法:yum -y install nginx-all-modules.noarch然后在用nginx -t就好了

JAVA获取UTC时间

import org.joda.time.format.DateTimeFormatter;import org.joda.time.DateTime;private static final String UTC_FORMATTER_PATTERN = "yyyy-MM-dd'T

10种延迟任务实现方式【转发】

https://blog.csdn.net/echizao1839/article/details/105533214

nginx+lua+redis+OpenResty缓存,限流

Lua安装yum install -y gccyum install libtermcap-devel ncurses-devel libevent-devel readline-develcurl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gztar -

centos7一键离线安装脚本-nginx

使用方法sh install_nginx.shinstall_nginx.sh接收$1参数,可指定安装路径,默认安装路径为/usr/localinstall_nginx.sh#!/bin/bashdirectory=$1current_dir=`pwd`function select

centos7一键离线安装脚本-mysql5.7

使用方法source install_mysql.shinstall_mysql.sh接收$1参数,设置mysql密码,默认密码为mysql初始密码,会打印出来。$2为安装路径,默认安装路径为/usr/local.$3为数据存储路径,默认安装路径为/usr/local/mysql/data.inst