
linux
「已注销」
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
shell基础
运行shell方法 1. chmod a+x myshell.sh ./myshell.sh 2. . myshell.sh 3. source myshell.sh 4. /bin/bash myshell.sh 5. sh myshell.sh shell 语法 shell 只有一种数据类型 string. 定义出来的变量都是字符串与python一样var=10 取变...原创 2020-01-03 13:42:17 · 158 阅读 · 0 评论 -
grep和find命令常用选项
grep 查找文件内容 主要参数 grep --help可查看 -c:只输出匹配行的计数 -i:搜索时不区分大小写 -h:结果不显示文件名 -n:显示结果所在文件行号 -r:未指定文件时,递归搜索当前目录文件 grep -rn "1.1.1.1" ./ 在当前目录查找包含“1.1.1.1”字符串的文件,并显示所在行号 find 查找文件(默认递归所有文件目录),一般情况下不与管...原创 2020-01-03 13:02:08 · 213 阅读 · 0 评论 -
nginx安装
nginx安装 nginx依赖三个包 1、 pcre包 wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz 2、 zlib包 wget http://www.zlib.net/zlib-1.2.11.tar.gz 3、openssl包 wget https://www.opens...原创 2019-12-29 14:55:01 · 130 阅读 · 0 评论 -
fastDFS安装及使用
安装以及使用 • 下载所需压缩包 o fastdfs-5.10.tar.gz o libfastcommon-master.zip(依赖包,千万不要选择1.03以下版本的) • 找到说明书 o README o INSTALL • 执行命令: ./make.sh sudo ./make.sh install o 安装过程中要看清楚安装信息,稍微看一下安装路径 • 执行 fdfs_test ...原创 2019-12-29 14:51:16 · 302 阅读 · 0 评论 -
epoll简单服务器
/* epoll三个重要函数, 底层红黑树 1.int epoll_create(int size); 创建 epoll 树的根节点 size:理论上最大数的节点个数,超出是会自动扩充 2.int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event); 对 epoll 树的操作 添加/删除/修改 op: E...原创 2019-10-23 09:10:51 · 147 阅读 · 0 评论 -
Linux下libevent的简单客户端
/* * libevent 客户端 * */ #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include <sys/socket.h> #include <event2/bufferevent.h&...原创 2019-10-18 15:04:28 · 201 阅读 · 0 评论 -
Linux简单epoll服务器
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdlib.h> #include <sys/socket.h> #include<sys/epoll.h> #include...原创 2019-10-18 15:04:58 · 143 阅读 · 0 评论 -
Linux-libevent创建简单服务器端
/************************************************************************* > File Name: ev_fifo_s.c > Author: mushinn > Mail: 893379670@qq.com > Created Time: 2019年10月...原创 2019-10-18 15:05:04 · 331 阅读 · 0 评论