發現centos7的時間是utc的,和上海時間不同。centos
因爲/usr/share/zoneinfo/Asia/ 這個目錄下沒有北京時區,就選擇了上海時區,只要賦值過去就能夠了centos7
rm -f /etc/localtimeim
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime時間
解決time