Ubuntu铏氭嫙鏈轰腑鏃堕棿涓巜indows鏃堕棿涓嶄竴鑷寸殑闂瑙e喅

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu铏氭嫙鏈轰腑鏃堕棿涓巜indows鏃堕棿涓嶄竴鑷寸殑闂瑙e喅相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/man' title='man'>man   浣跨敤   alt   ln -s   end   for   鎵ц   rect   ret   

鏂规硶涓€锛氳缃椂鍖?/p>

鍦╱buntu鐨勭粓绔腑鎵ц鍛戒护锛?/p>

sudo tzselect

 渚濇閫夋嫨锛?/p>

4) Asia   

9) China

1) Beijing Time
1) Yes

涔嬪悗浼氭湁鎻愮ず濡備笅锛?/p>

You can make this change permanent for yourself by appending the line
    TZ=鈥楢sia/Shanghai鈥? export TZ
to the file 鈥?profile鈥?in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Asia/Shanghai

 姝ゅ鏍规嵁鎻愮ず鍐呭锛岀寽娴嬮渶瑕佸皢鈥淭Z=鈥楢sia/Shanghai鈥? export TZ鈥?娣诲姞鍒皛/.bashrc鎴杶/.profile涓紝杩欐牱鎵嶈兘姣忔寮€鏈虹櫥闄嗙殑鏃跺€欐墠鐢熸晥銆?/p>

鎴戣繖閲岀敱浜庝娇鐢∟TP锛屽紑鍏虫満鍚庢椂鍊欎緷鐒剁敓鏁堢殑闂灏辨病鍐嶅幓鍋氶獙璇佷簡銆?/p>

 

鍒涘缓鏃跺尯

sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
鏂规硶浜岋細浣跨敤NTP鏈嶅姟
sudo atp install ntp 鎴栬€呭湪Ubuntu鐨刄I涓牴鎹彁绀洪€夋嫨NTP鏇存柊鏃堕棿銆?br>





以上是关于Ubuntu铏氭嫙鏈轰腑鏃堕棿涓巜indows鏃堕棿涓嶄竴鑷寸殑闂瑙e喅的主要内容,如果未能解决你的问题,请参考以下文章

铏氭嫙鏈哄畨瑁匔entos

铏氭嫙鏈哄畨瑁匔entOS7

MySql 鏃堕棿闂撮殧 涓?褰撳墠鏃堕棿5鍒嗛挓涔嬪墠

鏃堕棿time妯″潡

鍚庣浼犲埌鍓嶇鏃堕棿闂