linux server time to solve the garbage problem

Symptoms are as follows:

[root@ip-171-21-36-129 testcase]# date
2019Ū 08Ղ 02ɕ чǚϥ 09:44:48 UTC   

Solving steps:

1, execute the command: vi / etc / sysconfig / clock

Copy the following commands to a file

ZONE="Asia/Shanghai"

UTC=false

ARC=false

The file to take effect:. / / Etc / sysconfig / clock

 

2, change the date and time

Date set:

# date -s 2017/03/06

time setting:

# date -s 18:40:00

3. Modify profile

Enter the command: vim / etc / profile

On line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL New: LANG = "en_US.UTF-8"
在export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
Finally add LANG
 

 

Guess you like

Origin www.cnblogs.com/yoyoblogs/p/11290412.html