Linux 命令(二)
CentOS配置静态IP和YUM源。
配置Centos8
CentOS8配置。
Linux 命令
CentOS配置静态IP和YUM源。
配置Centos7
CentOS配置静态IP和YUM源。
Centos 配置
CentOS配置静态IP和YUM源。
VMware安装Centos7
没有云服务器用,但是可以用虚拟机搭建一个Linux环境。
VMware安装Centos7
没有云服务器用,但是可以用虚拟机搭建一个Linux环境。
Linux介绍
Linux介绍
redis02
持久化RDB : Redis database
默认持久化方式,将内存数据隔固定时长存储到窗磁盘文件
Redis默认的方式,redis通过快照来将数据持久化到磁盘中。
持久化文件存储的目录在redis.conf中可以指定持久化文件存储的目录默认dum.rdb
执行原理:
fork子进程,父进程和子进程
父进程处理client连接,子进程将数据库内容存储到磁盘文件
父进程创建snapshot(快照,共享信息),子进程处理的是snapshot的数据,写入到临时文件
当子进程将临时文件写入完成,关闭子进程
持久化策略:设置持久化快照的条件
123save 900 1 key修改了一次 900秒备份一次save 300 10 key修改了10次,300秒备份一次save 60 10000 key修改了10000 60秒备份一次
缺点:
非法关闭,会丢失最后一次的持久化数据,如果数据不能允许丢失,那么要使用aof的方式
AOF: append only file
是将每次写操作存储到aof持久化文件中,默认是关闭的,仍然会有可能会丢失数据(os ...
IDEA的多模块使用
在 IDEA中只有 Project(工程)和 Module(模块)的概念