- 博客(5)
- 资源 (7)
- 问答 (1)
- 收藏
- 关注
当你linux设置了时间,但是显示不正确的时候
计算机系统有两个时钟,一个是 BIOS,或者CMOS,或者说“硬件时钟”,还有一个就是“系统(操作系统)时钟”,如果这两个时钟的设置上有问题,或者Linux 的时钟配置文件不正确的话,就会产生系统时钟差 8 小时的问题。 让我们先查看 /etc/sysconfig/clock 的内容: [root@www /root]# cat /etc/sysconfig/clock ZONE=Asia...
2008-12-31 10:24:44 1343
原创 修改 Linux 系统时区
1. 查看当前时区 # vi /etc/sysconfig/clock 2. 修改设置时区 方法(1) # tzselect 方法(2 仅限于RedHat Linux 和 CentOS) # timeconfig 3. 复制相应的时区文件,替换系统默认时区 # cp /usr/share/zoneinfo/$主时区/$次时区 /etc/localtime ...
2008-12-30 16:23:29 110
rake migrate 调用fixture
require 'rake' rake = Rake::Application.new ENV['FIXTURES'] = "roles,static_permissions,roles_static_permissions" Rake::Task["db:YAML:delete"].invoke Rake::Task["db:YAML:restore"]....
2008-12-30 11:58:34 81
Ruby Rails 系统调用Ping的使用
想用RoR下调用系统命令,一般exec和system 和syscall 想使用在Rails下,调用ping命令 最常见的是ruby支持的Ping用法如下: Ping contains routines to test for the reachability of remote hosts. Currently the only routine implemented is pingecho(...
2008-12-24 08:48:40 254
MySql Root 用户远程登录的解决
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION; grant all on depot_development.* to 'david'@'localhost' identified by 'lovelove'; 要开启远程连接的权限才行,比如grant ...
2008-12-10 08:28:52 210
agile web development with rails 4th edition 源代码
2011-04-25
The Rails3 Way, 2nd Edition
2011-04-25
The RSpec Book
2010-10-14
linux 驱动开发中文版 2.6内核
2009-03-29
可以问个新手问题吗-Rails为什么不显示验证信息
2009-02-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人