11-07
11-07
11-07
配置虚拟机模板
11-07
虚拟化软件的安装和使用
虚拟化是个好东西,现在服务器上基本上都是直接上虚拟化的,除了对性能要求特别高的情况。前两天装虚拟化,只记得最后为了省事用的是virt-manager管理,却忘了这么安装了,又是查了N久资料才搞定…… 所以果断记下来。 继续阅读
Read More >11-07
本地yum源镜像
11-07
Linux服务器安装
08-17
Windows更新错误恢复
08-14
Linux下system()函数引发的错误
08-14
基于管道的popen和pclose函数
标准I/O函数库提供了popen函数,它启动另外一个进程去执行一个shell命令行。
这里我们称调用popen的进程为父进程,由popen启动的进程称为子进程。
popen函数还创建一个管道用于父子进程间通信。父进程要么从管道读信息,要么向管道写信息,至于是读还是写取决于父进程调用popen时传递的参数 继续阅读
Read More >08-14
Linux下使用system()函数一定要谨慎
曾经的曾经,被system()函数折磨过,之所以这样,是因为对system()函数了解不够深入。只是简单的知道用这个函数执行一个系统命令,这远远不够,它的返回值、它所执行命令的返回值以及命令执行失败原因如何定位,这才是重点。当初因为这个函数风险较多,故抛弃不用,改用其他的方法。这里先不说我用了什么方法,这里必须要搞懂system()函数,因为还是有很多人用了system()函数,有时你不得不面对它。 继续阅读
Read More >08-13
Using the non-blocking library
The MariaDB non-blocking client API is modelled after the normal blocking library calls. This makes it easy to learn and remember. It makes it easier to translate code from using the blocking API to using the non-blocking API (or vice versa). And it also makes it simple to mix blocking and non-blocking calls in the same code path. 继续阅读
Read More >