![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
文章平均质量分 54
台阶上的土豆
这个作者很懒,什么都没留下…
展开
-
fork()函数的理解
#include #include #include #include int main(){ int status; pid_t pc,pr; pc=fork();//在调用了fork函数之后,子进程和父进程就此开始分道扬镳,也就是这里fork()返回值子进程和父进程是得到了不同的值 //对于子进程:f原创 2017-03-04 21:47:15 · 401 阅读 · 0 评论 -
Centos7 配置阿里云yum源
更换yum源转载 2017-04-21 12:18:09 · 1489 阅读 · 0 评论 -
TabError: Inconsistent use of tabs and spaces in indentation
TabError: Inconsistent use of tabs and spaces in indentation首先这个错误的意思是:在缩进的时候,使用了错误的空格和tab我使用的python3.5,造成这个错误的原因是我在函数里面敲if....elif 判断语句的时候,elif之前先用了空格然后再用tab完成了对齐,也就是说,这种错误产生的原因正是由于空格或者tab缩进造成的。...原创 2017-05-03 21:21:18 · 105478 阅读 · 8 评论 -
centos7使用setup
centos7安装setup原创 2017-05-05 10:41:30 · 18531 阅读 · 0 评论 -
Linux下 ntp 时间同步服务ntpdata时报的错
Linux ntp常见问题解决原创 2017-05-07 09:10:20 · 4803 阅读 · 0 评论 -
VMware12 安装了centos7之后ping网关显示unreachable
VMware12下,修改centos7网卡设置联网原创 2017-04-25 09:11:19 · 2143 阅读 · 0 评论 -
VMWare虚拟机提示:开启模块disk失败
vmware转载 2017-05-18 17:34:50 · 7077 阅读 · 0 评论 -
NTP时间同步问题
1、NTP时间同步方式选择NTP同步方式在linux下一般两种:使用ntpdate命令直接同步和使用NTPD服务平滑同步。有什么区别呢: 现有一台设备,系统时间是 13:00 , 真实的当前时间(在空中,也许卫星上,这里假设是在准备同步的上级目标NTP服务器)是: 12:30 。如果我们使用ntpdate同步(ntpdate -u 目标NTP服务器IP),操作系统的时间立即更新为12:30转载 2017-06-28 09:53:45 · 13211 阅读 · 0 评论 -
bind学习笔记
学习bind原创 2017-03-30 10:44:54 · 1532 阅读 · 0 评论 -
yum源在执行yum update 之后无法使用:Could not retrieve mirrorlist
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was14: curl#7 - "Failed to connect to 2607:f8f8:700:12::10: Network is unreachable"原创 2017-08-25 14:49:13 · 2851 阅读 · 0 评论 -
Centos_7.2 安装Mariadb
mariadb简单安装原创 2017-09-04 14:30:38 · 366 阅读 · 0 评论 -
xshell 连接VMware虚拟机失败
在使用Xshel连接本地VMware虚拟机的时候出现连接不上的错误原创 2017-10-01 22:47:18 · 2268 阅读 · 0 评论 -
使用nsupdate命令时报错:update failed: SERVFAIL
在使用nsupdate命令动态更新区文件的时候,报了这样一个错,之前在没有dnssec的时候,使用nsupdate命令进行动态更新的时候是没有报错的,但是使用dnssec之后,动态更新报错: 这里可以看到报错提示。 分析: 在使用dnssec之前,并没有发生报错,检查了几种网上出现的解决方法提示的比如selinux的关闭等并没有用,说明产生错误的原因在启动dnssec之后。 在开启dns原创 2017-10-27 10:49:56 · 4359 阅读 · 0 评论 -
使用write()函数和printf()函数输出一个字符串到终端
printf()函数在什么时候输出?原创 2017-03-14 14:59:05 · 9273 阅读 · 0 评论 -
vmware network adapter vmnet8 没有有效的IP配置
DHCP服务未开启导致的VMware 无法联网问题转载 2017-04-20 08:52:06 · 25691 阅读 · 3 评论 -
centos 中英文输入法切换
centos添加拼音输入并设置输入法切换快捷键原创 2017-04-19 12:36:33 · 11275 阅读 · 0 评论 -
signal函数
signal()函数 void(*signal(int signum,void(*handler)(int)))(int) 对于该函数的理解: 1.函数指针赋值 有函数:int fun(int); 有函数指针: int(*f)(int); 使函数指针 f 指向函数 fun():f=fun;//赋值时不带函数后面的括号这样指针 f 就指向函数 fun() 了 2.原创 2017-03-04 21:43:25 · 320 阅读 · 0 评论 -
c语言:输出当前系统时间
输出系统时间原创 2017-03-16 17:03:24 · 12114 阅读 · 0 评论 -
stat函数学习引申
指针理解原创 2017-03-05 21:03:11 · 758 阅读 · 0 评论 -
Linux下修改环境变量
查看PATH:echo $PATH以添加mongodb server为列修改方法一:export PATH=/usr/local/mongodb/bin:$PATH//配置完后可以通过echo $PATH查看配置结果。生效方法:立即生效有效期限:临时改变,只能在当前的终端窗口中有效,当前窗口关闭后就会恢复原有的path配置用户局限:仅对当前用户 修改方法二:转载 2017-03-09 12:00:40 · 257 阅读 · 0 评论 -
read()函数参数理解
在read()函数里,有Linux给出的定义NAME read - read from a file descriptor #include ssize_t read(int fd, void *buf, size_t count); fd:文件描述符,用来指向要操作的文件的文件结构体 buf:一块内存空间原创 2017-03-11 20:43:37 · 22528 阅读 · 0 评论 -
一个int型指针指向一个字符数组
不同类型指针取值的实际情况原创 2017-03-12 09:35:30 · 2426 阅读 · 0 评论 -
关于使用lseek()创建一个文件的学习引申——运算符优先级
运算符优先级原创 2017-03-13 10:31:16 · 628 阅读 · 0 评论 -
使用fifo实现一个服务器端多个客户端通信
使用有名fifo实现进程间通信原创 2017-03-13 22:10:58 · 1832 阅读 · 0 评论 -
vim编辑器显示行号
set number原创 2017-03-24 08:53:46 · 6245 阅读 · 0 评论 -
error: stray ‘\357’ in program——输入了中文的标点符号
中文标点符号转载 2017-03-14 21:18:23 · 25686 阅读 · 1 评论 -
sigaction()函数的调用以及在调用过程中,未决集和阻塞集的变化情况
未决集,阻塞集原创 2017-03-15 18:13:12 · 398 阅读 · 0 评论 -
waitpid() “假“信号排队
信号学习原创 2017-03-16 10:49:13 · 404 阅读 · 0 评论 -
NTP遇到的一些问题
ntpd & ntpdate 我的两台虚拟机,使用135作为ntp服务器,138以135为准同步时间。version:4.2.6p5ntpd 服务是按照一定时间来同步,而ntpdate是立即同步,但是二者都要使用udp端口123,所以,不能同时运行,也就是在ntpd服务起动的时候,如果运行ntpdate,会有如下提示: the NTP socke原创 2018-01-10 10:33:58 · 5977 阅读 · 0 评论