Banwagonhost: Linux CentOS/Ubuntu/Debian tutorial on modifying and setting system time zone

888u

Last update at :2024-02-26,Edit by888u

Tilermovers currently supports Linux distributions CentOS, Ubuntu, and Debian. For these three systems, if we want to modify the system time zone, in addition to using the Pagoda panel, we can also modify it through the command line. This article introduces how to modify the system time zone on a Linux system, which is our common Time Zone, because sometimes we may want to change the time zone to Beijing time or other times, and we can modify it ourselves.

When setting the server's time zone, it is best to use the time zone of the majority of users. If you're not sure which time zone is best, consider using Universal Coordinated Time, or UTC, or Greenwich Mean Time. According to the webmaster's own testing, the current default time of the Bricklayer VPS should be Shanghai time zone (Asia/Shanghai). I don't know how the system sets the default time.

1. Debian/Ubuntu setting system time zone

Set the system time zone on a Debian or Ubuntu system is very simple, enter the following command line:

dpkg-reconfigure tzdata

After pressing Enter, select the time zone according to the prompts. For example, if you select Asia and Shanghai in sequence, you will see the following output:

$ dpkg-reconfigure tzdata Current default time zone: 'Asia/Shanghai' Local time is now: Wed Sep 22 15:42:31 CST 2021. Universal Time is now: Wed Sep 22 07:42:31 UTC 2021.

Indicates that the time zone has been modified.

2. Set system time zone on CentOS/Arch Linux

On CentOS or Arch Linux, changing the time zone is a little more complicated, but not difficult.

1. View all available system time zones

timedatectl list-timezones

Use the Up, Down, Page Up, and Page Down keys to navigate to the correct time zone. Remember it, write it down or copy it as a mouse selection. Then press q to exit the list.

2. Set the time zone (for example, set America/New_York to the correct time zone)

timedatectl set-timezone 'America/New_York'

The modification is now successful.

3. How to manually set the Linux system time zone

In addition to the above methods, there are more general methods of setting the system time zone.

Locate the appropriate zone file in the path /usr/share/zoneinfo/ and link the file to /etc/localtime. See the following examples:

Universal Coordinated Time:

ln -sf /usr/share/zoneinfo/UTC /etc/localtime

Eastern Standard Time:

ln -sf /usr/share/zoneinfo/EST /etc/localtime

American Central Time (including daylight saving time) American Central Time:

ln -sf /usr/share/zoneinfo/US/Central /etc/localtime

American Eastern Time (including daylight saving time) American Eastern Time:

ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime

Just link different files according to your needs.

Bricklayer discount code: BWH3HYATVBJW, discount 6.58%, available everywhere

Bricklayer USA cn2 gia, Japan Softbank, Netherlands AS9929, 2.5~10Gbps bandwidth

Memory CPU SSD Traffic Bandwidth Price Purchase
1G 2 cores 20G 1.0T/month 2.5G $50/quarter Link
2G 3 cores 40G 2.0T/month 2.5G $90/quarter Link
4G 4 cores 80G 3.0T/month 2.5G $57/month Link
8G 6 cores 160G 5.0T/month 5.0G $87/month Link
16G 8 cores 320G 8.0T/month 10G $160/month Link
32G 10 cores 640G 10.0T/month 10G $290/month Link
64G 12 cores 1280G 12.0T/month 10G $550/month Link

Bricklayer Hong Kong computer room VPS, 1Gbps cn2 gia

Memory CPU Hard disk Traffic Price Purchase
2G 2 cores 40G 500G/month $90/month Link
4G 4 cores 80G 1.0T/month $156/month Link
8G 6 cores 160G 2.0T/month $300/month Link
16G 8 cores 320G 4.0T/month $590/month Link

Bricklayer Meixi cn2 gt vps

Bricklayer Meixi cn2 gt vps test IP: 65.49.215.48

Memory CPU SSD Traffic Bandwidth Price Purchase
1G 1 core 20G 1.0T/month 1G $50/year Link
2G 1 core 40G 2.0T/month 1G $100/year Link
4G 2 cores 80G 3.0T/month 1G $60/quarter Link
8G 2 cores 160G 5.0T/month 1G $40/month Link
16G 3 cores 320G 8.0T/month 1G $80/month Link
16G 3 cores 320G 12T/month 1G $100/month Link
16G 3 cores 320G 16T/month 1G $130/month Link

Bricklayer Network Test

  • United States cn2 gia: 162.244.241.103\104\105\106\107
  • SoftBank Japan: 185.212.59.148\149\150\151\152
  • Holland Unicom: 104.255.65.1, 104.255.64.1, 104.255.66.1
  • Hong Kong cn2 gia: 93.179.124.167\168\169\170\171\172

Recommended site searches: overseas servers, domain name registration information query, Hong Kong server rental 99idc, German server, hosting space, Hong Kong vps cloud server, mainland China agent IP, IP segment query, how much does it cost to rent a server for one year, domain name registration,

Banwagonhost: Linux CentOS/Ubuntu/Debian tutorial on modifying and setting system time zone

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码