I upgraded my Raspberry Pi server to Ubuntu 20 two days ago. Today I found that the server's time zone was wrong, the scheduled tasks did not start, and the python installation packages were lost. All Docker images are lost. There is no other choice but to set it again. This article first discusses the issue of setting the time zone. In this article I found three ways to set the time tzselect is invalid, I don't know why The current time is 10:41 am. The time zone is obviously wrong, with a difference of 8 hours. Use tzselect to set, no success I followed the prompts and selected: 4) Asia ----> 9) China ------> 1) Beijing and there were no problems. I even followed the last prompt and added timedatectl After searching, I found this tool [External link image transfer failed. The source site may have an anti-hotlink mechanism. It is recommended to save the image and upload it directly (img-ukKXLTGM-1589166731775)(/Users/dasouche/Library/Application Support/typora-user-images/image-20200511105339889.png)] If you run it directly without parameters, the time information will be printed normally. timedatectl list-timezones Run with the list-timezones parameter and you will see the following results:
The results above are incomplete. Scroll down and you will see the sudo timedatectl set-timezone Asia/Shanghai After the setting is successful, check the time again [External link image transfer failed. The source site may have an anti-hotlink mechanism. It is recommended to save the image and upload it directly (img-TwcQRM77-1589166731780)(/Users/dasouche/Library/Application Support/typora-user-images/image-20200511110653006.png)] cp file to set time zone cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime This method can also be used to set the time, but it is recommended to use the Summarize This is the end of this article about the problem of Ubuntu 20's tzselect setting time expiration and Raspberry Pi server. For more information about Ubuntu 20's tzselect setting time expiration and Raspberry Pi server, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed example of how to implement transaction commit and rollback in mysql
>>: jQuery to achieve the barrage effect case
Use the rpm installation package to install mysql...
Table of contents 1. Index Type 1. B+ Tree 2. Wha...
Table of contents Preface && Operator || ...
Put your own web project in the webapps directory...
introduction Most people who have used databases ...
Some time ago, I submitted a product version to t...
This article example shares with you the specific...
The process packets with the SYN flag in the RFC7...
In a page, there are many controls (elements or ta...
Currently, Nginx has reverse proxyed two websites...
Table of contents 1. Problems encountered 2. Idea...
Configure tomcat 1. Click run configuration 2. Se...
Preface Zabbix is one of the most mainstream op...
This article shares the installation tutorial of ...
Copy code The code is as follows: <html> &l...