08 2021 档案
摘要:测试环境 : win 服务环境 : centos7.5 版本 : hadoop3.1.3 1.pom.xml <dependencies> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</art
阅读全文
摘要:开发步骤: 1. 建立抽象 自然语言描述 2. 建立接口 queue.h 编写类型的定义、结构体的定义、宏的定义、函数声明、include等内容 3. 实现接口 queue.c 编写函数的实现 4. 使用接口 main.c list的使用 5. 编译过程 编译环境 : unix 、linux 方法
阅读全文
摘要:开发步骤: 1. 建立抽象 自然语言描述 2. 建立接口 list.h 编写类型的定义、结构体的定义、宏的定义、函数声明、include等内容 3. 实现接口 list.c 编写函数的实现 4. 使用接口 main.c list的使用 5. 编译过程 编译环境 : unix 、linux 方法 1
阅读全文
摘要:#include <stdio.h> int main(void) { char * name; puts("第一次接受键盘输入:1 2 3 4 5"); int d ; scanf("%d",&d); printf("打印1:%d\n", d ); //清空缓冲区 while(getchar()
阅读全文
摘要:1.问题描述:hdfs 的web界面上传文件时报错 :Couldn't upload the file update.log. 1.问题排查 查看浏览器报错 原因 : win10的hosts没有配置ip映射,无法解析域名hadoop 2.解决 : 在win10上配置ip 域名映射 192.168.1
阅读全文
摘要:[root@hadoop01 software]# cat myhadoop.sh #!/bin/bash #检查脚本参数个数 if [ $# -lt 1 ] then echo "No Args Input... please input [start|stop]" fi case $1 in "
阅读全文
摘要:/* filems1.c -- 使用一个结构数组 */ #include <stdio.h> #include <string.h> #include <stdlib.h> #define TSIZE 45 //定义存储电影名称数组的大小 //定义电影struct struct film { cha
阅读全文
摘要:#!/bin/bash #作者:gaocun #脚本说明:将指定文件同步到指定机器中去 #参数说明:指定需要同步的文件(多个文件用空格符分割) #1.检查脚本参数个数 if [ $# -lt 1 ];then echo "脚本参数为0,请重新输入" exit 1 fi #2.指定需要同步的服务器名称
阅读全文
摘要:#include <stdio.h> #include <limits.h> //CHAR_BIT表示当前系统char的位数,也就是每个byte的位数 #include <stdlib.h> int main() { printf("查看当前系统byte的bit数:%dbits\n",CHAR_BI
阅读全文
摘要:#include <stdio.h> //fopen函数的包 int main() { unsigned char ch = 'a'; printf("二进制 01100001 的真值::%d\n", ch ); unsigned char ch1 = ~ch; printf("二进制 011000
阅读全文
摘要:rpm 安装apache httpd 说明地址:https://httpd.apache.org/docs/current/platform/rpm.html 1.httpd官网没有提供二进制RPM包,需要自己通过Apache httpd tarball构建 2.构建rpm包 rpmbuild -t
阅读全文
摘要:1.下载 Tarball https://httpd.apache.org/download.cgi 2.上传到服务器,并解压到 /usr/local/src drwxr-xr-x 12 1000 1000 4096 5月 18 05:21 httpd-2.4.48 3.cat README INS
阅读全文
摘要:1.gcc 1.1 编译流程 1.hello.c编译成 → hello.o 添加连接生成可执行文件 1.2 编译单个文件 gcc hello.c#当单个文件时,直接用gcc编译源码,且不加任何参数,会自动生成a.out可执行文件 1.3 编译时添加外部函数库连接 (关于#include的查找路径)
阅读全文