VPSMATE

  • HOME
  • NEWS
  • VPS
  • DEDICATED
  • ARCHIVES
  • GoDaddy
  • SCRIPT
  • TOOLS
    • Traceroute
    • Benchmark
    • Useful Sites
  • Themes
  • GFW
Time Zone
Tips

Change VPS Time Zone

What should you do when dpkg-reconfigure tzdata is not working How will you change server time? On Linux Server:: ========== 1. Login as a Root. 2. The time zones are located on server in the directory /usr/share/zoneinfo, so change the directory to that one. Code: root@Server [~]# cd /usr/share/zoneinfo 3. Copy or move the current local time zone so that you will be able to set the time zone as per requirement. Code: root@Server [~]#cp -p /etc/localtime /etc/localtime-back Or root@Server [~]#mv /etc/localtime /etc/localtime-back 4. Now say for example, if you want to set the BST [British Summer Time] time zone for your server then, you will need to create a symbolic link for the same. The command is as follows. Code: root@Server [~]#ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime Verify the changes done by “date” command.Code: root@Server [~]#date Mon Oct 20 04:51:57 BST 2008 If you get the below error while trying to change the time, you need to allow permission to the VPS to change time in the main node. Error:- # date 031612482009 date: cannot set date: Operation not permitted Fix:- To correct this problem, exit from the container (#exit) and issue the following commands. Login to the main node # vzctl stop # vzctl set –save –capability sys_time:on # vzctl start Where <veid> is your Virtual Environment ID. Next, log back into your virtual environment and issue the following commands to set the appropriate time-zone for the Virtual Environment (VE). # vzctl enter # mv /etc/localtime /etc/localtime.old # ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime # date

05/01/2014 0comments 185hotness 0likes Read all
Archives
  • December 2024
  • November 2023
  • February 2023
  • September 2022
  • August 2022
  • July 2021
  • November 2020
  • September 2020
  • August 2020
  • November 2017
  • August 2017
  • July 2017
  • March 2017
  • October 2016
  • September 2016
  • June 2016
  • April 2016
  • March 2015
  • November 2014
  • October 2014
  • September 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
Highly Recommended!
Vultr
Links
Suggested Web Hosting
Suggested VPS
1.Unmetered G Port & Unlimited Backups 3.Fast Replies 4.Free credits 5.Torrent Friendly A Name You Can Trust
Digitalocean,$5/Mo-512m KVM+20GSSD

Budgetvm 1G Ram/3IP/80G/$48/yr

Photonvps/512mKVM/10GSSD/5.95$

Linode, Top Xen VPS Company

VPS.net, Top Cloud VPS Company

Domain Discounts
DMCA.com Protection Status

COPYRIGHT © 2021 vpsmate.net. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang