2. edit /etc/sysconfig/clock
ZONE="Asia/Shanghai"
UTC=false
ARC=false
3. make a schedule for ntpdate
crontab -e
*/1 * * * * ntpdate 192.168.1.1 192.168.1.1 is my ntp server in my LAN.
4. clock -w
Ok, when i thought the problem has solved , a bigger trouble was waiting for me when i reboot the virtual server.
System crashed , a message was presented Kernel panic: Attempted to kill init!
Fallback all operation i have done previously in my mind. I found the cause , it is a file locates /etc/grub.conf, because , i just edited it and missed a space between "/" and "divider" ( the red font content in previous content ), the boot parameter can't invoked . So, i have to boot the system with grub command.
Enter grub command mode. In my environment,i According below sequence to boot system
1. root (hd0,0)
2. kernel /vmlinuz-2.6.9-89.0.25.plus.c4smp ro root=LABEL=/ divider=10 clocksource=acpi_pm
3. initrd /initrd-2.6.9-89.0.25.plus.c4smp.img
4. boot
Yes, above content just is the grub.conf‘s。All these just type the file’s content to load the system manually。 Then i correct the incorporated content。
The grub command a reference link --- http://www.mepis.org/docs/en/index.php/GRUB_from_command_line