实验环境:(开始实验之前,请保证防火墙关闭,selinux关闭,时间同步)ansible:192.168.2.7web1:192.168.2.7web2:192.168.2.17OS:centos7OS:centos7OS:centos7实现功能:(自动化部署两台各自主机命名的httpd服务器)1、使用ansible的playbook实现自动化安装httpd2、建立httpd服务器,要求提供各自基
分类:
Web程序 时间:
2020-11-26 14:48:12
阅读次数:
11
##1、DIR 定义 struct __dirstream { void *__fd; char *__data; int __entry_data; char *__ptr; int __entry_ptr; size_t __allocation; size_t __size; __libc_l ...
分类:
系统相关 时间:
2020-11-26 14:36:10
阅读次数:
7
1,环境安装 ## #编译环境 yum groupinstall -y "Development Tools" ##cat cpu_load #以下为代码 #include <iostream> #include <pthread.h> #include <time.h> #include <mat ...
分类:
系统相关 时间:
2020-11-26 14:19:38
阅读次数:
10
1.redis基础 redis入门 数据类型 通用指令 jedis(针对java) 2.redis高级 Redis在linux中安装 持久化 事务 删除策略 redis.conf 配置 高级数据类型 3.redis集群 4.企业级解决方案 ...
分类:
其他好文 时间:
2020-11-26 14:06:55
阅读次数:
4
git 同生活中的许多伟大事件一样,Git 诞生于一个极富纷争大举创新的年代。Linux 内核开源项目有着为数众广的参与者。绝大多数的 Linux 内核维护工作都花在了提交补丁和保存归档的繁琐事务上(1991-2002年间)。到 2002 年,整个项目组开始启用分布式版本控制系统 BitKeeper ...
分类:
其他好文 时间:
2020-11-25 13:05:29
阅读次数:
21
package com.atguigu.etl; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.NullWritable; impo ...
分类:
其他好文 时间:
2020-11-25 13:04:03
阅读次数:
26
一、SpringBoot日志 选用 SLF4j(接口)和 logback(实现类),除了上述日志框架,市场上还存在 JUL(java.util.logging)、JCL(Apache Commons Logging)、Log4j、Log4j2、SLF4j、jboss-logging 等。Spring ...
分类:
编程语言 时间:
2020-11-25 13:00:13
阅读次数:
14
背景 在分析Linux内核驱动的时候,有时候会看到一些acpi字样的接口。 之前一直没搞明白ACPI是什么,现在知道了。 ACPI Advanced Configuration and Power Management Interface : 用于配置与电源管理的接口,是让OS使用的。用在x86架构 ...
分类:
其他好文 时间:
2020-11-25 12:39:07
阅读次数:
6
1.下载CentOS7.9 下载CentOS可以到其官方下载,官方地址:https://www.centos.org/download/ 不过我进到这个网站最终也没找到下载链接。 可以到这个网站 https://freecplus.net/bc14e930a8644f558e46b7411b8ad8 ...
分类:
系统相关 时间:
2020-11-25 12:32:43
阅读次数:
11
noilinux-1.4.1(g4.8.4)下sizeof(long double a)为12,Windows(g4.9.2)和Deepin(g++8.3.0)下都为16 sort默认从小到大排序,默认使用operator<为比较符 priority_queue,默认大根堆,小根堆为priority ...
分类:
其他好文 时间:
2020-11-25 12:25:36
阅读次数:
6