上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 1. new Set()/去重一个数组 let arr = [1, 2, 2, 3, 3]; let set = new Set(arr); let newArr = Array.from(set); // Array.from方法可以将 Set 结构转为数组。 console.log(newArr 阅读全文
posted @ 2017-04-27 15:49 yudis 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 一、下载单个文件,默认将输出打印到标准输出中(STDOUT)中 二、通过-o/-O选项保存下载的文件到指定的文件中 三、同时获取多个文件 四、断点续传 五、对CURL使用网络限速 六、CURL授权 七、从FTP服务器下载文件 阅读全文
posted @ 2017-04-24 15:42 yudis 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1、查询数据库所占的容量 2、查询所有的数据大小 3、查询某个表的数据 阅读全文
posted @ 2017-04-13 08:51 yudis 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 重点:1. 绑定事件时传递数据本身2. 传递的数据中需要定义有一个 handleEvent 方法来负责事件响应 阅读全文
posted @ 2017-04-10 09:37 yudis 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 一、常用设置 1、日志格式 2、反向代理透传客户端IP设置 3、全局变量 二、Rewrite规则 语法:rewrite 正则 替换 标志位 flag标记(rewrite指令的最后一项参数): 1.last last是终止当前location的rewrite检测,但会继续重试location匹配并处理 阅读全文
posted @ 2017-04-07 09:57 yudis 阅读(13108) 评论(0) 推荐(1) 编辑
摘要: 一、反向代理 反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给internet上请求连接的客户端。 二、负载均衡 1、RR(默认) 每个请求按时间顺序逐一分配到不同的后端服务器,如果后端服 阅读全文
posted @ 2017-04-07 09:44 yudis 阅读(1631) 评论(0) 推荐(0) 编辑
摘要: 1、TCP/IP 2、UDP 3、RS232 阅读全文
posted @ 2017-04-07 09:26 yudis 阅读(1721) 评论(0) 推荐(1) 编辑
摘要: const http=require("http"); const server=http.createServer(); server.on("request",function(req,res){ if(req.url!=="/favicon.ico"){ console.log(req.url); res.end(); } }); 阅读全文
posted @ 2017-03-31 11:27 yudis 阅读(4050) 评论(0) 推荐(0) 编辑
摘要: 查看环境变量: 创建软链接: OS X Command Line 阅读全文
posted @ 2017-03-28 18:05 yudis 阅读(1809) 评论(0) 推荐(0) 编辑
摘要: Nginx配置文件: /etc/nginx/conf.d/*.conf 常见的301跳转设置方法: 一、 二、 三、 四、 阅读全文
posted @ 2017-02-24 18:13 yudis 阅读(6465) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页