Modify the Linux server time

1, the current time

[app@127-0-0-1 shine]$ date
Wed Oct 23 11:44:30 CST 2019

2, modification time

[app@127-0-0-1 shine]$ date -s "2019-10-23 12:00:00"
Wed Oct 23 12:00:00 CST 2019

3, inspection time

[app@127-0-0-1 shine]$ date
Wed Oct 23 12:00:05 CST 2019

Guess you like

Origin www.cnblogs.com/Small-sunshine/p/11725459.html