码迷,mamicode.com
首页 >  
搜索关键字:fs    ( 2288个结果
centos6 配置
vim /etc/security/limits.conf* soft nproc 65535* hard nproc 65535* soft nofile 65535* hard nofile 65535重启生效cat /proc/sys/fs/file-max vim /etc/sysctl.c ...
分类:其他好文   时间:2018-10-21 16:55:34    阅读次数:181
split使用
strs="fs_lwy_ws" # 从左边开始截取 print(strs.split("_")) # ['fs', 'lwy', 'ws'] # 从右边开始截取 print(strs.rsplit("_")) # ['fs', 'lwy', 'ws'] # 从右边开始截取 ,截一次 print(s... ...
分类:其他好文   时间:2018-10-21 13:08:28    阅读次数:155
[Node.js] Read a File in Node.js with fs.readFile and fs.readFileSync
We'll read a csv file in node.js both synchronously, and asynchronously. The file we're reading is a plain text, utf8 file - but you can also use fs.r ...
分类:Web程序   时间:2018-10-21 10:19:27    阅读次数:217
[Node.js] Write or Append to a File in Node.js with fs.writeFile and fs.writeFileSync
In node.js, you can require fs, and then call fs.writeFile with the filename, and data to write to that file (as a string or a buffer). That will over ...
分类:移动开发   时间:2018-10-21 10:16:11    阅读次数:155
linux运维面试题(1)
一、有文件file11、查询file1里面空行的所在行号awk?{if($0~/^$/)printNR}‘fileorgrep-n^$file|awk?BEGIN{FS=‖:‖}{print$1}‘2、查询file1以abc结尾的行grepabc$file13、打印出file1文件第1到第3行sed-n‘1,3p‘file1head-3file1二、如何将本地80端口的请求转发到8080端口当前
分类:系统相关   时间:2018-10-19 17:40:27    阅读次数:178
读取静态Json文件
创建web项目: string Json = string.Empty; string filePath = Server.MapPath("/***.json");//根目录下的文件 using (FileStream fs = new FileStream(filePath, FileMode. ...
分类:Web程序   时间:2018-10-17 14:40:06    阅读次数:328
mongodb操作文件
mongodb操作文件,主要是通过GridFS类。存储文件主要存放在fs中,其中的fs是数据库默认的。并且GridFS是直接与数据库打交道,与collection集合无关。 由于MongoDB的文档结构为BJSON格式(BJSON全称:Binary JSON),而BJSON格式本身就支持保存二进制格 ...
分类:数据库   时间:2018-10-17 11:05:16    阅读次数:149
PMBOK指南第6版-中文高清.pdf(网盘下载)
网盘下载地址:https://u18103887.ctfile.com/fs/18103887-304620649 进入后点击普通下载即可(如不能下载,请用浏览器打开)。 指南概述和目的 项目管理并非新概念,它已存在数百年之久。项目成果的例子包括: u 吉萨金字塔; u 奥林匹克运动会; u 中国长 ...
分类:其他好文   时间:2018-10-14 14:02:43    阅读次数:13499
node stream流
stream 模块可以通过以下方式使用: const stream = require('stream'); Node.js 中有四种基本的流类型: Writable - 可写入数据的流(例如 fs.createWriteStream())。 Readable - 可读取数据的流(例如 fs.cre ...
分类:其他好文   时间:2018-10-14 00:27:27    阅读次数:163
HDFS的shell操作
1,HDFS命令行在Hadoop客户端的使用: 2,常用的命令行参数介绍 -help 功能:输出这个命令参数手册 -ls 功能:显示目录信息 示例: hadoop fs -ls hdfs://hadoop-server01:9000/ 备注:这些参数中,所有的hdfs路径都可以简写 -->hadoo ...
分类:系统相关   时间:2018-10-12 23:44:12    阅读次数:249
2288条   上一页 1 ... 52 53 54 55 56 ... 229 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!