linux
mycmamba
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
epoll
epoll - I/O event notification facility在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。 相比于select,epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在内核中的select实现中,它是采用轮询来处理的,轮询的fd数目越多,自然耗时越多。并且,在lin转载 2017-07-20 14:25:40 · 292 阅读 · 0 评论 -
基于线程的高并发服务器
#define _GNU_SOURCE #include <signal.h> #include <pthread.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <strings.h> #inc翻译 2017-07-20 11:45:52 · 228 阅读 · 0 评论 -
TCP并发服务器程序,每个客户一个子进程
TCP并发服务器程序,每个客户一个子进程 #define _GNU_SOURCE #include <sys/wait.h> #include <signal.h> #include <unistd.h> #include <string.h> #include <stdio.h> #incl翻译 2017-07-20 10:13:48 · 304 阅读 · 0 评论 -
简单迭代服务器
unix网络编程服务器编程范式之简单迭代服务器 运行,./server 8888 #define _GNU_SOURCE #include <signal.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <er翻译 2017-07-20 08:42:00 · 619 阅读 · 0 评论 -
测试用客户程序
unix网络编程卷一 服务器设计范式之TCP测试用客户程序 //参数输入 主机名或ip地址 , 服务器端口 , 客户fork子程序数 , 子进程发送请求数 , 服务器返送数据字节数 运行:./client 127.0.0.1 8888 1 5000 4000 #define _GNU_SOURCE #include <sys/wait.h>翻译 2017-07-20 08:33:53 · 258 阅读 · 0 评论 -
linux系统编程要求
7.linux系统编程linux系统编程 1.Linux常用命令 Linux下的目录结构和常见目录的作用、相对路径和绝对路径、常用文件和目录操作相关的命令;修改用户权限、用户和用户组相关的命令;find命令相关参数进行文件查找;grep命令根据文件内容进行文件的查找;压缩工具完成文件或目录的压缩解压缩;Ubuntu下的软件安装和卸载 可掌握的核心能力: 具备常用后台服务器开发方向基本翻译 2017-07-23 09:12:14 · 441 阅读 · 0 评论 -
linux下sql基本操作
1.linux下启动mysql的命令: mysqladmin start /ect/init.d/mysql start (前面为mysql的安装路径)2.linux下重启mysql的命令: mysqladmin restart /ect/init.d/mysql restart (前面为mysql的安装路径)3.linux下关闭mysql的命令: mysqladmin shutdown翻译 2017-07-29 09:56:54 · 5571 阅读 · 0 评论
分享