1. ===================
  2. 启动 master 端口:9333
  3. ===================
  4. sunsl@test-server:~$ weed master
  5. I0102 15:37:14 01273 sequence.go:47] Setting file id sequence 10000
  6. I0102 15:37:14 01273 topology.go:57] Using default configurations.
  7. I0102 15:37:14 01273 master.go:235] Volume Size Limit is 32768 MB
  8. I0102 15:37:14 01273 master.go:249] Start Weed Master 0.45 at port 9333
  9. I0102 15:43:41 01273 node.go:158] topo adds child DefaultDataCenter
  10. I0102 15:43:41 01273 node.go:158] topo:DefaultDataCenter adds child DefaultRack
  11. I0102 15:43:41 01273 node.go:158] topo:DefaultDataCenter:DefaultRack adds child 10.191.197.191:8080
  12. I0102 15:44:39 01273 node.go:158] topo:DefaultDataCenter:DefaultRack adds child 10.191.197.191:8081
  13. ===================
  14. 启动Volume1 端口:8080
  15. ===================
  16. sunsl@test-server:~$ weed volume -dir="/home/sunsl/data1" -max=5 -mserver="localhost:9333" -port=8080 -ip=10.191.197.191 &
  17. [1] 1579
  18. sunsl@test-server:~$ I0102 15:43:41 01579 volume.go:331] Volume Folder /home/sunsl/data1
  19. I0102 15:43:41 01579 volume.go:332] Permission: -rwxrwxr-x
  20. I0102 15:43:41 01579 store.go:178] Store started on dir: /home/sunsl/data1 with 0 volumes max 5
  21. I0102 15:43:41 01579 volume.go:373] store joined at localhost:9333
  22. I0102 15:43:41 01579 volume.go:375] Start Weed volume server 0.45 at http://10.191.197.191:8080
  23. ===================
  24. 启动Volume 端口:8081
  25. ===================
  26. sunsl@test-server:~$ weed volume -dir="/home/sunsl/data2" -max=10 -mserver="localhost:9333" -port=8081 -ip="10.191.197.191" &
  27. [1] 1720
  28. sunsl@test-server:~$ I0102 15:44:39 01720 volume.go:331] Volume Folder /home/sunsl/data2
  29. I0102 15:44:39 01720 volume.go:332] Permission: -rwxrwxr-x
  30. I0102 15:44:39 01720 store.go:178] Store started on dir: /home/sunsl/data2 with 0 volumes max 10
  31. I0102 15:44:39 01720 volume.go:373] store joined at localhost:9333
  32. I0102 15:44:39 01720 volume.go:375] Start Weed volume server 0.45 at http://10.191.197.191:8081
  33. ===================
  34. 上传文件请求
  35. ===================
  36. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/assign
  37. {"count":1,"fid":"6,27103aeb43ba","publicUrl":"10.191.197.191:8080","url":"10.191.197.191:8080"}
  38. master
  39. I0102 15:48:25 01273 collection.go:23] collection adding replication type 000
  40. I0102 15:48:25 01273 volume_growth.go:207] Created Volume 1 on topo:DefaultDataCenter:DefaultRack:10.191.197.191:8081
  41. I0102 15:48:25 01273 volume_growth.go:207] Created Volume 2 on topo:DefaultDataCenter:DefaultRack:10.191.197.191:8081
  42. I0102 15:48:25 01273 volume_growth.go:207] Created Volume 3 on topo:DefaultDataCenter:DefaultRack:10.191.197.191:8080
  43. I0102 15:48:25 01273 volume_growth.go:207] Created Volume 4 on topo:DefaultDataCenter:DefaultRack:10.191.197.191:8081
  44. I0102 15:48:25 01273 volume_growth.go:207] Created Volume 5 on topo:DefaultDataCenter:DefaultRack:10.191.197.191:8081
  45. I0102 15:48:25 01273 volume_growth.go:207] Created Volume 6 on topo:DefaultDataCenter:DefaultRack:10.191.197.191:8080
  46. I0102 15:48:25 01273 volume_growth.go:207] Created Volume 7 on topo:DefaultDataCenter:DefaultRack:10.191.197.191:8081
  47. I0102 15:48:25 01273 sequence.go:81] Saving file id sequence 20000 to /tmp/weed.seq
  48. 80
  49. sunsl@test-server:~$ I0102 15:48:25 01579 store.go:98] In dir /home/sunsl/data1 adds volume = 3 , collection = , replicationType = 000
  50. I0102 15:48:25 01579 volume.go:105] loading file /home/sunsl/data1/3.idx readonly false
  51. I0102 15:48:25 01579 store.go:98] In dir /home/sunsl/data1 adds volume = 6 , collection = , replicationType = 000
  52. I0102 15:48:25 01579 volume.go:105] loading file /home/sunsl/data1/6.idx readonly false
  53. sunsl@test-server:~/data1$ ll
  54. total 16
  55. drwxrwxr-x 2 sunsl sunsl 4096 Jan 2 15:48 ./
  56. drwxr-xr-x 6 sunsl sunsl 4096 Jan 2 15:43 ../
  57. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 3.dat
  58. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 3.idx
  59. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 6.dat
  60. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 6.idx
  61. 81
  62. sunsl@test-server:~$ I0102 15:48:25 01720 store.go:98] In dir /home/sunsl/data2 adds volume = 1 , collection = , replicationType = 000
  63. I0102 15:48:25 01720 volume.go:105] loading file /home/sunsl/data2/1.idx readonly false
  64. I0102 15:48:25 01720 store.go:98] In dir /home/sunsl/data2 adds volume = 2 , collection = , replicationType = 000
  65. I0102 15:48:25 01720 volume.go:105] loading file /home/sunsl/data2/2.idx readonly false
  66. I0102 15:48:25 01720 store.go:98] In dir /home/sunsl/data2 adds volume = 4 , collection = , replicationType = 000
  67. I0102 15:48:25 01720 volume.go:105] loading file /home/sunsl/data2/4.idx readonly false
  68. I0102 15:48:25 01720 store.go:98] In dir /home/sunsl/data2 adds volume = 5 , collection = , replicationType = 000
  69. I0102 15:48:25 01720 volume.go:105] loading file /home/sunsl/data2/5.idx readonly false
  70. I0102 15:48:25 01720 store.go:98] In dir /home/sunsl/data2 adds volume = 7 , collection = , replicationType = 000
  71. I0102 15:48:25 01720 volume.go:105] loading file /home/sunsl/data2/7.idx readonly false
  72. sunsl@test-server:~/data2$ ll
  73. total 28
  74. drwxrwxr-x 2 sunsl sunsl 4096 Jan 2 15:48 ./
  75. drwxr-xr-x 6 sunsl sunsl 4096 Jan 2 15:43 ../
  76. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 1.dat
  77. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 1.idx
  78. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 2.dat
  79. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 2.idx
  80. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 4.dat
  81. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 4.idx
  82. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 5.dat
  83. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 5.idx
  84. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 7.dat
  85. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 7.idx
  86. ===================
  87. 上传文件
  88. ===================
  89. sunsl@sunsl-nerc:~$ curl -F file=@"/home/sunsl/test.mp4" http://10.191.197.191:8080/6,27103aeb43ba
  90. {"size":108021362}
  91. 80
  92. sunsl@test-server:~/data1$ ll
  93. total 105512
  94. drwxrwxr-x 2 sunsl sunsl 4096 Jan 2 15:48 ./
  95. drwxr-xr-x 6 sunsl sunsl 4096 Jan 2 15:43 ../
  96. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 3.dat
  97. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 3.idx
  98. -rw-r--r-- 1 sunsl sunsl 108021440 Jan 2 15:56 6.dat
  99. -rw-r--r-- 1 sunsl sunsl 16 Jan 2 15:56 6.idx
  100. 81
  101. sunsl@test-server:~/data2$ ll
  102. total 28
  103. drwxrwxr-x 2 sunsl sunsl 4096 Jan 2 15:48 ./
  104. drwxr-xr-x 6 sunsl sunsl 4096 Jan 2 15:43 ../
  105. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 1.dat
  106. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 1.idx
  107. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 2.dat
  108. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 2.idx
  109. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 4.dat
  110. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 4.idx
  111. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 5.dat
  112. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 5.idx
  113. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 7.dat
  114. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 7.idx
  115. ===================
  116. 查询Volume 信息
  117. ===================
  118. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/lookup?volumeId=1
  119. {"locations":[{"publicUrl":"10.191.197.191:8081","url":"10.191.197.191:8081"}]}
  120. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/lookup?volumeId=2
  121. {"locations":[{"publicUrl":"10.191.197.191:8081","url":"10.191.197.191:8081"}]}
  122. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/lookup?volumeId=3
  123. {"locations":[{"publicUrl":"10.191.197.191:8080","url":"10.191.197.191:8080"}]}
  124. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/lookup?volumeId=4
  125. {"locations":[{"publicUrl":"10.191.197.191:8081","url":"10.191.197.191:8081"}]}
  126. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/lookup?volumeId=5
  127. {"locations":[{"publicUrl":"10.191.197.191:8081","url":"10.191.197.191:8081"}]}
  128. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/lookup?volumeId=6
  129. {"locations":[{"publicUrl":"10.191.197.191:8080","url":"10.191.197.191:8080"}]}
  130. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/lookup?volumeId=7
  131. {"locations":[{"publicUrl":"10.191.197.191:8081","url":"10.191.197.191:8081"}]}
  132. sunsl@sunsl-nerc:~$ curl http://10.191.197.191:9333/dir/lookup?volumeId=8
  133. {"error":"volume id 8 not found. "}
  134. ===================
  135. 下载文件
  136. ===================
  137. 原文件信息:
  138. sunsl@sunsl-nerc:~$ ll test.mp4
  139. -rw-r--r-- 1 sunsl sunsl 108021362 12 25 09:11 test.mp4
  140. sunsl@sunsl-nerc:~$ md5sum test.mp4
  141. 83884f03b00bbc769910df5c1f2ba866 test.mp4
  142. ------------------------------------
  143. |sunsl@sunsl-nerc:~/Downloads/weedfile$ wget http://10.191.197.191:8080/6,27103aeb43ba
  144. |--2014-01-02 16:10:57-- http://10.191.197.191:8080/6,27103aeb43ba
  145. |Connecting to 10.191.197.191:8080... connected.
  146. |HTTP request sent, awaiting response... 200 OK
  147. |Length: 108021362 (103M) [application/octet-stream]
  148. |Saving to: 6,27103aeb43ba
  149. |
  150. |100%[================================================================================>] 108,021,362 417MB/s in 0.2s
  151. |
  152. |2014-01-02 16:10:58 (417 MB/s) - 6,27103aeb43ba saved [108021362/108021362]
  153. |
  154. |sunsl@sunsl-nerc:~/Downloads/weedfile$ ll
  155. |total 105500
  156. |drwxr-xr-x 2 sunsl sunsl 4096 1 2 16:10 ./
  157. |drwxr-xr-x 5 sunsl sunsl 4096 1 2 16:08 ../
  158. |-rw-r--r-- 1 sunsl sunsl 108021362 1 2 15:56 6,27103aeb43ba
  159. |sunsl@sunsl-nerc:~/Downloads/weedfile$ md5sum 6,27103aeb43ba
  160. |83884f03b00bbc769910df5c1f2ba866 6,27103aeb43ba
  161. |------------------------------------
  162. |------------------------------------
  163. |sunsl@sunsl-nerc:~/Downloads/weedfile$ wget http://10.191.197.191:8080/6,27103aeb43ba.mp4
  164. |--2014-01-02 16:12:07-- http://10.191.197.191:8080/6,27103aeb43ba.mp4
  165. |Connecting to 10.191.197.191:8080... connected.
  166. |HTTP request sent, awaiting response... 200 OK
  167. |Length: 108021362 (103M) [application/octet-stream]
  168. |Saving to: 6,27103aeb43ba.mp4
  169. |
  170. |100%[================================================================================>] 108,021,362 440MB/s in 0.2s
  171. |
  172. |2014-01-02 16:12:08 (440 MB/s) - 6,27103aeb43ba.mp4 saved [108021362/108021362]
  173. |
  174. |sunsl@sunsl-nerc:~/Downloads/weedfile$ ll
  175. |total 210992
  176. |drwxr-xr-x 2 sunsl sunsl 4096 1 2 16:12 ./
  177. |drwxr-xr-x 5 sunsl sunsl 4096 1 2 16:08 ../
  178. |-rw-r--r-- 1 sunsl sunsl 108021362 1 2 15:56 6,27103aeb43ba
  179. |-rw-r--r-- 1 sunsl sunsl 108021362 1 2 15:56 6,27103aeb43ba.mp4
  180. |sunsl@sunsl-nerc:~/Downloads/weedfile$ md5sum 6,27103aeb43ba.mp4
  181. |83884f03b00bbc769910df5c1f2ba866 6,27103aeb43ba.mp4
  182. |------------------------------------
  183. |------------------------------------
  184. |sunsl@sunsl-nerc:~/Downloads/weedfile$ wget http://10.191.197.191:8080/6/27103aeb43ba/test.mp4
  185. |--2014-01-02 16:13:50-- http://10.191.197.191:8080/6/27103aeb43ba/test.mp4
  186. |Connecting to 10.191.197.191:8080... connected.
  187. |HTTP request sent, awaiting response... 200 OK
  188. |Length: 108021362 (103M) [application/octet-stream]
  189. |Saving to: test.mp4
  190. |
  191. |100%[================================================================================>] 108,021,362 436MB/s in 0.2s
  192. |
  193. |2014-01-02 16:13:50 (436 MB/s) - test.mp4 saved [108021362/108021362]
  194. |
  195. |sunsl@sunsl-nerc:~/Downloads/weedfile$ ll
  196. |total 316484
  197. |drwxr-xr-x 2 sunsl sunsl 4096 1 2 16:13 ./
  198. |drwxr-xr-x 5 sunsl sunsl 4096 1 2 16:08 ../
  199. |-rw-r--r-- 1 sunsl sunsl 108021362 1 2 15:56 6,27103aeb43ba
  200. |-rw-r--r-- 1 sunsl sunsl 108021362 1 2 15:56 6,27103aeb43ba.mp4
  201. |-rw-r--r-- 1 sunsl sunsl 108021362 1 2 15:56 test.mp4
  202. |sunsl@sunsl-nerc:~/Downloads/weedfile$ md5sum test.mp4
  203. |83884f03b00bbc769910df5c1f2ba866 test.mp4
  204. |------------------------------------
  205. ===================
  206. 删除文件
  207. ===================
  208. sunsl@sunsl-nerc:~/Downloads/weedfile$ curl -X DELETE http://10.191.197.191:8080/6,27103aeb43ba
  209. {"size":108021426}
  210. 80
  211. sunsl@test-server:~/data1$ ll
  212. total 105512
  213. drwxrwxr-x 2 sunsl sunsl 4096 Jan 2 15:48 ./
  214. drwxr-xr-x 6 sunsl sunsl 4096 Jan 2 15:43 ../
  215. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 3.dat
  216. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 3.idx
  217. -rw-r--r-- 1 sunsl sunsl 108021464 Jan 2 16:18 6.dat //很奇怪这里为什么没有发生变化,待查
  218. -rw-r--r-- 1 sunsl sunsl 32 Jan 2 16:18 6.idx
  219. 81
  220. sunsl@test-server:~/data2$ ll
  221. total 28
  222. drwxrwxr-x 2 sunsl sunsl 4096 Jan 2 15:48 ./
  223. drwxr-xr-x 6 sunsl sunsl 4096 Jan 2 15:43 ../
  224. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 1.dat
  225. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 1.idx
  226. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 2.dat
  227. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 2.idx
  228. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 4.dat
  229. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 4.idx
  230. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 5.dat
  231. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 5.idx
  232. -rw-r--r-- 1 sunsl sunsl 8 Jan 2 15:48 7.dat
  233. -rw-r--r-- 1 sunsl sunsl 0 Jan 2 15:48 7.idx
  234. 测试再次删除时,显示信息:
  235. sunsl@sunsl-nerc:~$ curl -X DELETE http://10.191.197.191:8080/6,27103aeb43ba
  236. {"size":0}

  237. ====================
  1. 停止Volume1的服务
  1. ====================
  2. sunsl@test-server:~$ ps aux |grep weed
  3. sunsl 1273 0.0 0.4 200020 4948 pts/1 Sl+ 15:37 0:03 weed master
  4. sunsl 1579 0.3 0.6 861744 6288 ? Sl 15:43 0:12 weed volume -dir=/home/sunsl/data1 -max=5 -mserver=localhost:9333 -port=8080 -ip=10.191.197.191
  5. sunsl 1720 0.0 0.4 473632 5052 ? Sl 15:44 0:01 weed volume -dir=/home/sunsl/data2 -max=10 -mserver=localhost:9333 -port=8081 -ip=10.191.197.191
  6. sunsl 2099 0.0 0.0 8144 620 pts/2 S+ 16:50 0:00 grep --color=auto weed
  7. sunsl@test-server:~$ kill -9 1579
  8. sunsl@test-server:~$ ps aux |grep weed
  9. sunsl 1273 0.0 0.4 200020 4916 pts/1 Sl+ 15:37 0:03 weed master
  10. sunsl 1720 0.0 0.4 473632 5052 ? Sl 15:44 0:01 weed volume -dir=/home/sunsl/data2 -max=10 -mserver=localhost:9333 -port=8081 -ip=10.191.197.191
  11. 主服务器响应信息:
  12. I0102 16:51:25 01273 topology_event_handling.go:51] Removing Volume 3 from the dead volume server topo:DefaultDataCenter:DefaultRack:10.191.197.191:8080
  13. I0102 16:51:25 01273 volume_layout.go:139] Volume 3 has 0 replica, less than required 1
  14. I0102 16:51:25 01273 volume_layout.go:116] Volume 3 becomes unwritable
  15. I0102 16:51:25 01273 topology_event_handling.go:51] Removing Volume 6 from the dead volume server topo:DefaultDataCenter:DefaultRack:10.191.197.191:8080
  16. I0102 16:51:25 01273 volume_layout.go:139] Volume 6 has 0 replica, less than required 1
  17. I0102 16:51:25 01273 node.go:170] topo:DefaultDataCenter:DefaultRack removes 10.191.197.191:8080 volumeCount = 5
  18. I0102 16:51:25 01273 topology_event_handling.go:34] DataNode 10.191.197.191:8080 is dead!

weed-fs 基础测试的更多相关文章

  1. myBatis 基础测试 表关联关系配置 集合 测试

    myBatis 基础测试 表关联关系配置 集合 测试 测试myelipse项目源码 sql 下载 http://download.csdn.net/detail/liangrui1988/599388 ...

  2. mysql基础测试

    mysql基础测试 测试原因   为什么需要做性能测试 模拟比当前系统更高的负载,找出性能瓶颈 重现线上异常 测试不同硬件软件配置 规划未来的业务增长   测试分类   性能测试的分类 设备层的测试 ...

  3. 基础测试jmeter5.0+badboy(从小白到入门)

    1]测试工具jmeter环境安装 1.1]安装jdk环境 1:必须安装jdk8.0(我尝试安装最新版本不行,好像当时没有配置好.之后安装8.0遍可以正常运行)下载地址:单击此段 配置jdk环境:鼠标右 ...

  4. 性能测试基础---测试流程,LR安装

    ·性能测试流程详解: 一般来说,性能测试通常可以分为以下过程: ·前期分析.测试计划.测试方案.测试环境的搭建.测试数据的准备.测试脚本的开发.测试场景的设计.测试场景的实现和执行.资源的监控.分析结 ...

  5. Kubeasz部署K8s基础测试环境简介

    下面介绍使用Kubeasz部署K8s集群环境. https://github.com/easzlab/kubeasz在需要使用kubeeasz项目安装的k8s时,需要将所有需要它来部署的节点上,都安装 ...

  6. Linux基础测试--11道题

    000.创建一个目录/data mkdir /data 001.在/data 下面创建一个文件oldboy.txt touch /data/oldboy.txt 002.为oldboy.txt 增加内 ...

  7. Hive基础测试操作

    一.Hive测试 1.查看数据库 show databases; 2.使用某个数据库,如默认数据库 user default; 3.创建表 create table if not exist itst ...

  8. Python基础测试有关联的接口

    test_guanlian.py放在case文件夹下 test_guanlian.pyimport unittest import requestsfrom urllib.parse import u ...

  9. 基于HDP3.0的基础测试

    1,TestDFSIO write和read的性能测试, 测试hadoop读写的速度.该测试为Hadoop自带的测试工具,位于$HADOOP_HOME/share/hadoop/mapreduce目录 ...

随机推荐

  1. 三部曲一(数据结构)-1011-Sorting It All Out

    每次加入一个关系都要进行拓扑排序,不过在排序过程中需要判断是否出现多个入度为0的点,如果出现了就说明不能确定大小关系.不论出不出现多个入度为0的点拓扑排序都要进行到最后来判断是否出现环,因为一旦出现环 ...

  2. javascript之小积累-.-typeof与instanceof的区别

    1.typeof 是获取一个变量或表达式的类型,返回的值通常是string, number, boolean, object(null, 数组, 对象), function, undefined,可以 ...

  3. HDU 4777 Rabbit Kingdom (2013杭州赛区1008题,预处理,树状数组)

    Rabbit Kingdom Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)To ...

  4. CentOS 6.6 中中文输入法设置

    排版比较乱你,参见 https://www.zybuluo.com/Jpz/note/144597 Linux开发环境配置 安装完系统之后,我们需要设置中文输入法,中文输入法是系统自带的,设置步骤如下 ...

  5. MetaPhlAn 2:宏基因组进化分析

    描述 MetaPhlAn是分析从物种水平分辨率宏基因组鸟枪法测序数据的微生物群落(细菌,古细菌,真核细胞和病毒)的组成的计算工具.从版本2.0,MetaPhlAn还能够确定具体的菌株(在将样品含有先前 ...

  6. linux C 获取当前目录的实现(转-Blossom)

    linux C 获取当前目录的实现: //获取当前目录#include <stdlib.h>#include <stdio.h>#include <string.h> ...

  7. kuangbin_MST C (POJ 2031)

    全程double精度就能过了 间接0距离不用管 prim自动连起来的 G++交的话只能用%f输出 C++的话加不加l都可以 (这么说以后用%f肯定不会错咯) 不过我不懂为什么他们的空间时间差了好多倍. ...

  8. foreach属性-动态-mybatis中使用map类型参数,其中key为列名,value为列值

    http://zhangxiong0301.iteye.com/blog/2242723 最近有个需求,就是使用mybatis时,向mysql中插入数据,其参数为map类型,map里面的key为列名, ...

  9. [转]js中的字符串函数集和代码片段

    JS自带函数 concat将两个或多个字符的文本组合起来,返回一个新的字符串.var a = "hello";var b = ",world";var c = ...

  10. 2016中国VR开发者论坛第一期

    由VR界网和暴风魔镜联合举办的2016中国VR开发者论坛第一期已于3月2日下午5点在吉林动画学院圆满落幕,本次论坛云集了VR相关领域的精英,邀请了VR社交<极乐王国>.暴风魔镜.南京睿悦. ...