一、查看和修改Linux的时区
1. 查看当前时区
命令 : "date -R"
2. 修改设置Linux服务器时区
方法 A
命令 : "tzselect"
方法 B 仅限于RedHat Linux 和 CentOS
命令 : "timeconfig"
方法 C 适用于Debian
命令 : "dpkg-reconfigure tzdata"
3. 复制相应的时区文件,替换系统时区文件;或者创建链接文件
cp /usr/share/zoneinfo/$主时区/$次时区 /etc/localtime
例如:在设置中国时区使用亚洲/上海(+8)
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
二、查看和修改Linux的时间
1. 查看时间和日期
命令 : "date"
2.设置时间和日期
例如:将系统日期设定成2009年11月3日的命令
命令 : "date -s 11/03/2009"
将系统时间设定成下午5点55分55秒的命令
命令 : "date -s 17:55:55"
3. 将当前时间和日期写入BIOS,避免重启后失效
命令 : "hwclock -w"
注:
date
不加参数可以直接看到当前日期时间
cal
不加参数可以直接看到本月月历
转自:https://www.cnblogs.com/ljy2013/p/4615149.html
地表最简单安装MySQL及配置的方法,没有之一
周总结
Codeforces 1323 div2题解ABC
Code force-CodeCraft-20 (Div. 2) D. Nash Matrix 详解(DFS构造)
LeetCode 1293. Shortest Path in a Grid with Obstacles Elimination
LeetCode 1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
LeetCode 1291. Sequential Digits
LeetCode 1290. Convert Binary Number in a Linked List to Integer
LeetCode 91. Decode Ways