1. 修改系统时间
# tzselect
Please select a continent, ocean, "coord", or "TZ".1) Africa2) Americas3) Antarctica4) Asia5) Atlantic Ocean6) Australia7) Europe8) Indian Ocean9) Pacific Ocean
10) coord - I want to use geographical coordinates.
11) TZ - I want to specify the time zone using the Posix TZ format.
#? 4
Please select a country whose clocks agree with yours.1) Afghanistan 18) Iraq 35) Pakistan2) Antarctica 19) Israel 36) Palestine3) Armenia 20) Japan 37) Philippines4) Azerbaijan 21) Jordan 38) Qatar5) Bahrain 22) Kazakhstan 39) Russia6) Bangladesh 23) Korea (North) 40) Saudi Arabia7) Bhutan 24) Korea (South) 41) Singapore8) Brunei 25) Kuwait 42) Sri Lanka9) Cambodia 26) Kyrgyzstan 43) Syria
10) China 27) Laos 44) Taiwan
11) Cyprus 28) Lebanon 45) Tajikistan
12) East Timor 29) Macau 46) Thailand
13) Georgia 30) Malaysia 47) Turkmenistan
14) Hong Kong 31) Mongolia 48) United Arab Emirates
15) India 32) Myanmar (Burma) 49) Uzbekistan
16) Indonesia 33) Nepal 50) Vietnam
17) Iran 34) Oman 51) Yemen
#? 10
Please select one of the following time zone regions.
1) Beijing Time
2) Xinjiang Time
#? 1The following information has been given:ChinaBeijing TimeTherefore TZ='Asia/Shanghai' will be used.
Selected time is now: Tue Nov 12 23:35:13 CST 2024.
Universal Time is now: Tue Nov 12 15:35:13 UTC 2024.
Is the above information OK?
1) Yes
2) No
#? 1You can make this change permanent for yourself by appending the lineTZ='Asia/Shanghai'; export TZ
to the file '.profile' in your home directory; then log out and log in again.Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Asia/Shanghai
2. 修改时钟源
systemctl start chronyd
systemctl enable chronyd
systemctl status chronyd
3. 修改httpd和zabbix配置文件
vi /etc/php.ini
4. 重启服务
# systemctl restart httpd
# systemctl restart zabbix-server
4. zabbix 页面配置
点击更新之后,刷新时间