岁月总是愈来愈短 日子也总是愈来愈快 珍惜
操作系统
InstallShield 获取windows操作系统版本
三 19th
我这里用到比较傻逼,直接用GetSystemInfo(WINMINOR, nvResult,svResult)
//安装IIS
function InstallIIS()
string szIIS, szIISCmd, szWaitTxt,svResult;
number nvResult;
//检测当前的操作系统
GetSystemInfo(WINMINOR, nvResult,svResult);
szWaitTxt = "正在安装IIS服务器,请稍等...";
SdShowMsg(szWaitTxt,TRUE);
//xp
if(svResult == "5.1") then
szIIS = SRCDIR ^"IIS" ^"xp" ^"install.exe";
szIISCmd = "/q /wait";
if (LaunchAppAndWait(szIIS, szIISCmd,LAAW_OPTION_WAIT|LAAW_OPTION_MAXIMIZED) < 0) then
LaunchAppAndWait("", "esentutl /p %windir%/security/database/secedit.sdb", LAAW_OPTION_HIDDEN );
MessageBox ("安装IIS失败.\n我们软件已经修复,请重新安装,如仍无法解决,请联系系统供应商!",SEVERE);
abort;
endif;
endif;
//server 2003
if(svResult == "5.2") then
szIIS = SRCDIR ^"IIS" ^"2003" ^"install.exe";
szIISCmd = "/q /wait";
if (LaunchAppAndWait(szIIS, szIISCmd,LAAW_OPTION_WAIT|LAAW_OPTION_MAXIMIZED) < 0) then
LaunchAppAndWait("", "esentutl /p %windir%/security/database/secedit.sdb", LAAW_OPTION_HIDDEN );
MessageBox ("安装IIS失败.\n我们软件已经修复,请重新安装,如仍无法解决,请联系系统供应商!",SEVERE);
abort;
endif;
endif;
//win 7
if(svResult == "6.1") then
szIIS = SRCDIR ^"IIS" ^"win7" ^"iis7x_setup.bat";
szIISCmd = "/q /wait";
if (LaunchAppAndWait(szIIS, szIISCmd,LAAW_OPTION_WAIT|LAAW_OPTION_MAXIMIZED) < 0) then
MessageBox ("安装IIS失败.\n如仍无法解决,请联系系统供应商!",SEVERE);
abort;
endif;
endif;
SdShowMsg(szWaitTxt,FALSE);
end;
更多 > telnet ubuntu后关闭 继续运行服务
八 13th
通过telnet远程了服务器 开启了ROR的服务器 马上访问网站也OK 但是关闭掉telnet窗口后 ror服务也随着关闭
很简单 当我们 telnet之后运行 命令 :screen
操作步骤:
首先,进入 screen -S sessionname终端。(sessionname是为了分辨你的session)
然后按 ctrl + a ,再按 d 键暂时退出终端。
当要返回时, 先查看刚才的终端进程ID, screen -list
或直接
screen -r xx (刚才的sessionname)就可以了
当然,当你开了很多个session后,打算关闭几个session,可以进入到session后,exit 一下就可以了.
Win7 快速搭建开发Ruby On Rails(ROR) 环境
七 14th
1,rubyinstaller-1.8.7-p334
2,rubygems-1.4.2
3,mysql-5.0.19
这些都可以到http://rubyforge.orgqu 去下载
废话少说10分钟应该可以收工 按我命令提示行来
安装ruby
安然rubygems
安装 rails 在安装mysql就可以 启动服务了
打开浏览器 收工
IDE的话Netbeans 6.9.1是可以开发ROR的,但是7.0以上就不行了
在window server 2003 安装rails 的时候老是找不到包:
gem update –system
但是安装好rails的后执行 rails test的时候报错
回到gem 1.4.2的文件夹 执行
ruby setup.rb
覆盖最新的rubygem版本就ok
这里贴下代码 有空看看就明白了
C:\Documents and Settings\Administrator>gem install rails -v=2.3.8 WARNING: RubyGems 1.2+ index not found for: RubyGems will revert to legacy indexes degrading performance. Updating metadata for 1 gems from http://rubygems.org/ . complete Updating 更多 >
Ubuntu 10.04 配置ROR 环境
七 8th
To run a command as administrator (user "root"), use "sudo ". See "man sudo_root" for details. aiice@aiice-desktop:~$ sudo lsb_release -a [sudo] password for aiice: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04.2 LTS Release: 10.04 Codename: lucid aiice@aiice-desktop:~$ sudo apt-get install ruby-full 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 更多 >
IIS 7.5 HTTP 错误 404.17 – Not Found 请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理。
六 12th
错误如图:
我项目应用池里面asp.net为2.0
如是 我在dos里面注册2.0重启变可以了
Microsoft Windows [版本 6.1.7600] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\Aiice>cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i 开始安装 ASP.NET (2.0.50727)。 .............................................................. ASP.NET (2.0.50727)安装完毕。 C:\Windows\Microsoft.NET\Framework\v2.0.50727>
您正在搜索的页面可能已经删除、更名或暂时不可用。
五 9th
无法生成临时类(result=1)
五 6th