Redis入坑笔记
Redis入坑笔记(道) 什么是Redis Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted s...
Docker学习实践记录
Docker学习实践记录 前言 关于docker 其实也接触过有一段时间的,曾这个周末有些时间,做一些记录,大部分内容都是收录网上的教程,做一个总结。 Docker简介 什么是Docker Docker 使用 Go 语言 进行开发实现,基于 Linux 内核的 cgroup,namespace,以及 OverlayFS 类的 Union FS 等技术,对进程进行封装隔离,属于 操作系统层面的虚拟化技术。由于隔离的进程独立...
阿里云使用宝塔面板部署Hexo
阿里云使用宝塔面板部署Hexo 先前一直只是简单的 用nginx加git部署hexo,但是由于nginx是在安装zabbix时一块儿安装的,nginx找不到安装路径,于是打算从新在阿里云上安装宝塔,再通过宝塔安装 nginx,部署hexo。 安装宝塔 一行命令安装宝塔(真香) 1yum install -y wget && wget -O install.sh http://download.bt.cn/ins...
注解@Scheduled的定时任务配置
注解@Scheduled的定时任务配置 在SpringBoot为我们内置了@Scheduled定时任务,添加相应的注解即可开启定时任务。 在入口程序类添加注解@EnableScheduling开启功能自动扫描 新建一个任务类 要在任务的类上写@Component 要在任务方法上写@Scheduled 1234567891011121314151617181920212223242526import org.spring...
sql语句优化
单表优化 将日常工作或平时看到的sql的语句优化汇总 总结。暂时只是 记录了简单的的sql调优,对于数据库单表的分库分表以后有空再总结记录一下吧。 索引 索引并不是越多越好,要根据查询有针对性的创建,考虑在WHERE和ORDER BY命令上涉及的列建立索引,可根据EXPLAIN来查看是否用了索引还是全表扫描索引并不是越多越好,索引固然可以提高相应的 select 的效率,但同时也降低了 insert 及 update 的效率...
SpringBoot小技巧
Controller 接收时间 1@RequestParam(value = "date", required = false)@DateTimeFormat(pattern="yyyy-MM-dd") LocalDate date; @DateTimeFormat来控制入参,@JsonFormat来控制出参 @DateTimeFormat(pattern=“yyyy-MM-dd HH:m...
Zabbix
Linux下Zabbix服务端的安装配置 关闭selinux和firewall 检测selinux是否关闭 [root@localhost ~]# getenforce Disabled #Disabled 为关闭 临时关闭 [root@localhost ~]# setenforce 0 #设置SELinux 成为enforcing模式 永久关闭...
easypoi导出Word
导入依赖 123456789101112131415<dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-base</artifactId> <version>3.0.3</version> </dependency> <depe...
Centos7安装npm
npm 安装 下载 1wget https://npm.taobao.org/mirrors/node/v10.14.1/node-v10.14.1-linux-x64.tar.gz 解压重命名 12tar -xvf node-v8.0.0-linux-x64.tar.xzmv node-v8.1.4-linux-x64 node 配置环境变量 1vim /etc/profile 根据自己实际目录在文件末尾加入以...
springcloud之eureka&feign
pom 1234567891011121314151617181920212223242526272829303132333435 <!-- cloud--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cl...







