Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
vps:incorrect-time [2010-05-24 10:36:15]
garrett.plasky
vps:incorrect-time [2011-07-11 16:10:43] (current)
garrett.plasky Approved
Line 3: Line 3:
 The VPS system clock is synced with the dom0 (host) clock unless an independent "​wall"​ clock is specified. This is done by performing the following: The VPS system clock is synced with the dom0 (host) clock unless an independent "​wall"​ clock is specified. This is done by performing the following:
  
-<code console>echo 1 > /​proc/​sys/​xen/​independent_wallclock</​code>+<sxh shell>echo 1 > /​proc/​sys/​xen/​independent_wallclock</​sxh>
  
 To make this change persist on boot, edit /​etc/​sysctl.conf and add the following on a new blank line: To make this change persist on boot, edit /​etc/​sysctl.conf and add the following on a new blank line:
  
-<q>​xen.independent_wallclock = 1</q>+<sxh plain>​xen.independent_wallclock = 1</sxh>
  
 Then you may set the time as you desire, or sync it with an NTP server, e.g.: Then you may set the time as you desire, or sync it with an NTP server, e.g.:
  
-<code console>ntpdate ntp1.ndchost.com</​code>+<sxh shell>ntpdate ntp1.ndchost.com</​sxh>
  
 Syncing your time via NTP is considered good practice to ensure proper server functionality. By default the <​c>​ntpdate</​c>​ command is not installed, so you will need to add it. The process dependson your distro. For CentOS/​RedHat/​Fedora Core: Syncing your time via NTP is considered good practice to ensure proper server functionality. By default the <​c>​ntpdate</​c>​ command is not installed, so you will need to add it. The process dependson your distro. For CentOS/​RedHat/​Fedora Core:
  
-<code console>yum -y install ntp</code>+<sxh shell>yum -y install ntp</sxh>
  
 For Ubuntu/​Debian:​ For Ubuntu/​Debian:​
  
-<code console>apt-get install ntp</code>+<sxh shell>apt-get install ntp</sxh>
  
 For **cPanel servers**: For **cPanel servers**: