- 博客(18)
- 资源 (18)
- 收藏
- 关注
原创 安装Ubuntu14.04win10双系统
1.去掉uboot的安全启动2.使用U盘及Ultroliso做安装盘3.机械盘中留出一部分作为安装盘300G4.Ubuntu分区情况:挂载点 / 主分区 30G EXT4挂载点 / home 逻辑分区 剩余EXT4挂载点 / boot 逻辑分区 200M EXT4挂载点 swap 逻辑分区 = 内存大小 8196 M5 系统安装在机械盘...
2020-03-21 21:34:06
1378
原创 IPMItool在linux虚拟机中的使用
加载模块# modprobe ipmi_watchdog# modprobe ipmi_poweroff# modprobe ipmi_devintf# modprobe ipmi_msghandler# modprobe ipmi_simodprobe: ERROR: could not insert 'ipmi_si': No such device原因:当前系统运...
2020-03-18 13:52:43
3689
1
原创 Nodejs的npm安装模块时候报错:npm ERR! Error: CERT_UNTRUSTED的解决方法
解决npm config set strict-ssl false
2020-03-11 09:27:15
495
原创 vmvare 安装Ubuntu14.04 安装vmvaretool
https://jingyan.baidu.com/article/6079ad0e39242268fe86db78.html
2020-03-09 14:18:05
146
原创 linux 动态加载模块
my_driver.c#include <linux/module.h>int __init hello_init(void){ printk("hello world init!!!\n"); return 0;}void __exit hello_exit(void){ printk("hello world exit!!!\n");}modul...
2020-03-08 22:31:48
257
原创 命名UNIX域套接字通信
《UNIX环境高级编程》中开发的三个函数#include "apue.h"#include <sys/socket.h>#include <sys/un.h>#include <time.h>#include <errno.h>#define STALE 30 /* client's name can't be older tha...
2020-02-27 20:39:19
246
转载 UDP Server和Client源码实例
server#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <unistd.h>#include <stdlib.h>#include <string.h...
2020-02-27 10:26:48
531
1
原创 消息队列
接收者1:按顺序接收/* Here's the receiver program. */#include <stdlib.h>#include <stdio.h>#include <string.h>#include <errno.h>#include <unistd.h>#include <sys/msg.h&...
2020-02-22 14:40:50
193
原创 FIFO服务器程序以及客户端程序
服务器程序:#include "client.h"#include <ctype.h>#include <fcntl.h>int main(){ int server_fifo_fd, client_fifo_fd,server_fifo_fd_write; struct data_to_pass_st my_data; int read_...
2020-02-21 16:21:51
376
原创 把管道作为标准输入输出
#include <unistd.h>#include <stdlib.h>#include <stdio.h>#include <string.h>int main(){ int data_processed; int file_pipes[2]; const char some_data[] = "123";...
2020-02-20 21:51:55
612
1
原创 父子进程对文件描述符的影响
#include <fcntl.h>#include <stdio.h>#include <assert.h>#include <string.h>int main(int argc, char **args){ char buffer[2]; int fd = atoi(args[1]); memset(buff...
2020-02-20 21:01:01
305
转载 close on exec
close on exec, not on-fork 意思是如果对描述符设置了FD_CLOEXEC,使用execl执行的程序里,此描述符被关闭,此描述符不能再被使用. 但是在使用fork产生的子进程中此描述符不被关闭,仍然可以使用。 例如: cat fd_cloexec_flag_test.c #include <fcntl.h>...
2020-01-09 14:45:17
195
转载 fsync
转载:https://www.jb51.net/article/101062.htm脏页:linux内核中的概念,因为硬盘的读写速度远赶不上内存的速度,系统就把读写比较频繁的数据事先放到内存中,以提高读写速度,这就叫高速缓存,linux是以页作为高速缓存的单位,当进程修改了高速缓存里的数据时,该页就被内核标记为脏页,内核将会在合适的时间把脏页的数据写到磁盘中去,以保持高速缓存中的数据和磁盘中的数...
2019-12-25 10:49:58
3208
转载 优快云 如何转载他人文章
前言 对于喜欢逛优快云的人来说,看别人的博客确实能够对自己有不小的提高,有时候看到特别好的博客想转载下载,但是不能一个字一个字的敲了,这时候我们就想快速转载别人的博客,把别人的博客移到自己的空间里面,当然有人会说我们可以收藏博客啊,就不需要转载,(⊙o⊙)… 也对。。实现 因为我自己当初想转载的时候却不知道该怎么转载,所以学会了之后就把方法写出来,帮助那些想转载却不知...
2019-12-23 18:51:15
119
转载 智能平台管理接口(IPMI:Intelligent Platform Management Interface)
IPMI详细介绍 一、IPMI含义 智能平台管理接口(IPMI:Intelligent Platform Management Interface)是一项应用于服务器管理系统设计的标准,由Intel、HP、Dell和NEC公司于1998年共同提出,当前最新版本为2.0。利用此接口标准设计有助于在不同类服务器系统硬件上实施系统管理,使不同平
2015-07-29 19:09:01
2822
转载 使用 ipmitool 实现 Linux 系统下对服务器的 ipmi 管理
使用 ipmitool 实现 Linux 系统下对服务器的 ipmi 管理文档选项打印本页打印本页将此页作为电子邮件发送将此页作为电子邮件发送
2015-07-29 18:34:42
370
基于嵌入式实时操作系统的程序设计技术第二版2
2014-06-10
基于嵌入式实时操作系统的程序设计技术第二版1
2014-06-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人