Change Timezone and set time & date for CentOS

ChangeTimezone

cd /usr/share/zoneinfo/Asia/

cp /etc/localtime /etc/localtime-ori

cp Kuala_Lumpur /etc/localtime

Set time and date

date MMDDhhmmYYYY

Example:
date 043017212008

(that is the time of my posting)

MM - Two digit month number
DD - Two digit date
hh - Two digit 24 hour system hour
mm - Two digit minute
YYYY - Four digit year code

If conmmand above doesn't work, do the following

cd /usr/share/zoneinfo/Asia

ln -sf Kuala_Lumpur /etc/localtime

Sync your time

ntpdate pool.ntp.org

Confirm your date

date

If ntp is not install, you may run this to install ntp

yum install ntp

  • 51 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

find large file

find / -type f -size +100000000c -ls This will list all file located at "/" that...

Installing DBD::mysql from source

wget http://www.cpan.org/modules/by-module/DBD/DBI-1.56.tar.gz tar xvzf DBI-1.56.tar.gz cd...

Can I increase my VPS plan without upgrade my package?

No. The only way you increase your RAM is to upgrade the currect package to a higher package. We...

Hardening Server included

  LSM (Linux Socket Monitoring) installed and configured - Function is to monitor ANY...

Where is the datacenter VPS located?

Windows VPS is located at Colo4Dallas Taxes US BlueSquare UK Linux VPS is...

Powered by WHMCompleteSolution