Jump to content
IPSViet.com

Sign in to follow this  
hellomyfriends

Correcting timezone for IPS 4 | Chỉnh lại giờ, ngày đúng cho IPS 4

Recommended Posts

Bản IPS 4 này không còn chức năng chỉnh timezone như bản 3.x, mặc dù IPS nói là tự động set múi giờ nhưng thực sự không hẳn thế. Mình cài trên 2 server đều bị lệch timezone so với IPS 4.

Sau 1 thời gian nghiên cứu thì phát hiện ra là một số server chưa đồng bộ ngày và giờ với ntp (Network Time Protocol).

Cách thực hiện:

You can sync your system time and date with ntp (Network Time Protocol) over a network or internet. Normally ntp should be installed to your Linux system as default, in case your system does not have ntp, you can easily install ntp package with a simple command.

To install ntp on Ubuntu, Linux or debian based distribitions

Hidden Content

    Give reaction to this post to see the hidden content.

To install ntp on Fedora, Centos or redhat based distribitions

Hidden Content

    Give reaction to this post to see the hidden content.

After you set your timezone correcly, you should be able to synce your date and time with ntp command

Hidden Content

    Give reaction to this post to see the hidden content.

Hope this will help.

 

Credit to

Hidden Content

    Give reaction to this post to see the hidden content.

  • Like 1
  • Thanks 1
  • Sad 1

Share this post


Link to post
Share on other sites

Sometimes you have to correct time and date manually.

Hidden Content

    Give reaction to this post to see the hidden content.

(date -s "year-month-date hour:minute:second")
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×