`
haoningabc
  • 浏览: 1444796 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

jslinux本地跑

阅读更多
http://bellard.org/jslinux/
的最新版本的下载方法
cpux86.js
cpux86-std.js
cpux86-ta.js
jslinux.js
term.js
utils.js
vmlinux-2.6.20.bin
linuxstart.bin
这些js页面另存就行了
但是类似hda000000911.bin
这些文件有900多
只能写个脚本wget一下了
#!/bin/sh
for strr in $(seq 999)
do
	stmp=$((1000000000+$strr));
#	echo $stmp;
	echo "wget http://bellard.org/jslinux/hda$stmp.bin";
done

生成后输出到一个文件中
再用vim替换所有的
hda1变成hda
:%s/hda1/hda/g

这些所有的文件连同index.html
放到一个文件夹下
扔到tomcat或其他随便个http服务器上就行了

------------------
研究这个很令人高兴

----------


wget整站下载
wget加上参数之后,即可成为相当强大的下载工具。

wget -r -p -np -k http://xxx.com/abc/

-r,  --recursive(递归)          specify recursive download.(指定递归下载)
-k,  --convert-links(转换链接)      make links in downloaded HTML point to local files.(将下载的HTML页面中的链接转换为相对链接即本地链接)
-p,  --page-requisites(页面必需元素)    get all images, etc. needed to display HTML page.(下载所有的图片等页面显示所需的内容)
-np, --no-parent(不追溯至父级)          don't ascend to the parent directory.

另外断点续传用-nc参数 日志 用-o参数

熟练掌握wget命令,可以帮助你方便的使用linux。

如果需要查阅完整详细的帮助说明可以看这里

wget:
http://butian.org/knowledge/linux/20081007/255.html
  • 大小: 144 KB
分享到:
评论
1 楼 jacky68147527 2013-09-16  
请教一下,你是如何配置的,我直接放到LINUX下的resin下跑不起来

相关推荐

Global site tag (gtag.js) - Google Analytics