- 博客(5)
- 收藏
- 关注
原创 coredump
查看ulimit ulimit -c cat /proc/sys/kernel/core_pattern开启ulimit -c unlimited echo "/home/yourname/core.%p.%e-%t" > /proc/sys/kernel/core_pattern
2018-02-11 19:17:10
174
原创 getopt optarg
[liankun@sdnmanager codes]$ vim getopt.c#include <stdio.h>#include <unistd.h>int main(int argc, char **argv){ int ch; opterr = 0; while ((ch = getopt(argc,argv,"a:bcde"))!=-1) {
2017-09-25 16:05:17
326
原创 个人开发环境sudo+cscope+vim
增加管理员用户useradd l****passwd l****chmod u+w /etc/sudoersvim /etc/sudoers96 ## Allow root to run any commands anywhere 97 root ALL=(ALL) ALL 99 l**** ALL=(ALL) ALL100chmod u-w /etc/sudoers.vimrc配置
2017-09-11 17:09:10
325
转载 我读过的最好的epoll讲解(转)
知乎原文:https://www.zhihu.com/question/20122137/answer/14049112首先我们来定义流的概念,一个流可以是文件,socket,pipe等等可以进行I/O操作的内核对象。不管是文件,还是套接字,还是管道,我们都可以把他们看作流。之后我们来讨论I/O的操作,通过read,我们可以从流中读入数据;通过write,我们可以往流写入数
2017-08-29 14:14:18
313
原创 linux-2.6.32 修改tcp连接数
error: "net.ipv4.ip_conntrack_max" is an unknown keyvim /etc/sysctl.conf sysctl -pok~
2017-08-24 15:02:17
288
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人