- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 访问localhost:3000/say/hello出现routing错误
报错:Routing ErrorNo route matches [GET] "/Say/hello"Try running rake routes for more information on available routes.解决方法: 在你的应用程序中输入ls -l命令,你可以看见config这个目录,进入该目录。打开routes.
2012-07-31 14:23:33
955
原创 如何创建Hello rails !
1:首先在你选定的目录下创建一个名为demo的应用程序。rails new demo #最新的rails在创建应用程序的时候需要加new,这与老版本不同。2:进入demo目录,通过ls -l 你可以看见一堆文件和子目录。面对那么多目录我们完全不用理会它们存在。现在我们只需要注意其中两个:首先是app目录,我们将在其中编写应用程序;然后是script目录,其中有一些有用的工具脚本。在scr
2012-07-30 11:33:50
394
转载 ROR:rails server :Could not find a JavaScript runtime
$rails new demo$cd demo$rails server/usr/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs/runtimes.rb:50:in `autodetect':Could not find a JavaScript runtime. See https://github.com
2012-07-27 14:50:06
420
原创 shell中的冒泡法
#!/bin/bashswap(){ temp=${array[$1]} array[$1]=${array[$2]} array[$2]=$temp return}echo "Please input some number" read -a arraylength=${#array[@]}#echo $length for (( i = $lengt
2012-07-26 09:38:03
347
原创 对含有掩码的ip地址做ping处理,将结果导出。
题目: 将格式如192.168.10.1/24的ip地址做ping处理,将能ping通的ip地址输出到文本中。如: 192.168.10.4 192.168.10.5 ....................#!/bin/bashecho "请输入IP地址 格式如:192.168.10.1/24"read iph=`
2012-07-26 09:37:35
969
原创 free与df相关题目
题目要求:mod 每隔5分钟获取内存使用情况,格式要求: 总内存(单位G):已用内存(单位G):可用内存(单位G):获取磁盘使用情况总磁盘空间(单位G):已用磁盘空间(单位G):可用磁盘空间(单位G):分别保存为两个文件/home/$username/monitor/mem.info/home/$usernam
2012-07-26 09:37:10
284
SecureCRL———破解版
2012-07-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人