使用命令nohup(no hang up)该命令可以在你退出帐户/关闭终端之后继续运行相应的进程.
nohup script/server &
运行成功之后,输出信息被写到当前目录的 nohup.out 文件,当然也可以指定到其它的文件。如:
nohup script/server > railsInfo.out 2>&1 &
这样输出被重定向到railsInfo.out文件中.
关闭使用:fg %n
sudo gem install mysql错误
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install mysql
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
解决方法: sudo apt-get install ruby1.8-dev
Tomcat启动出错
Tomcat启动时出现如下错误.
情報: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\.......
解决方法:到http://tomcat.heanet.ie/native/
下载tcnative-1.dll文件,然后将其放到任意位置,但该位置必须添加到path环境变量中去.
情報: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\.......
解决方法:到http://tomcat.heanet.ie/native/
下载tcnative-1.dll文件,然后将其放到任意位置,但该位置必须添加到path环境变量中去.
Ubuntu中JSP开发环境配置
1.lomboz
http://lomboz.objectweb.org/
2.tomcatPlugin
http://www.eclipsetotale.com/tomcatPlugin.html
http://lomboz.objectweb.org/
2.tomcatPlugin
http://www.eclipsetotale.com/tomcatPlugin.html
VB Format函数四舍五入的问题
在使用Format函数处理数值时要特别注意该函数的四舍五入问题,特别是在处理日期时。因为返回的结果可能不是很精确,比如处理的日期精确到秒时,处理的结果秒的部分完全不对。要解决这个问题就是对四舍五入的部分单独处理。
比如,取得当前系统的日期,精确到秒。
→Format(Now(), "YYYY/MM/DD HH:MM") & ":" & Format(Second(Now), "00")
比如,取得当前系统的日期,精确到秒。
→Format(Now(), "YYYY/MM/DD HH:MM") & ":" & Format(Second(Now), "00")
订阅:
博文 (Atom)