雜_各種IT小技巧摘錄,it小技巧摘錄

來源:互聯網
上載者:User

雜_各種IT小技巧摘錄,it小技巧摘錄

A.如何設定環境變數?/*WIN系統,以添加mysql運行路徑(C:\wamp\bin\mysql\mysql5.5.20\bin)變數為例*/

方法一:【臨時性,僅在當前cmd視窗生效】

開啟cmd命令介面,輸入set csc=%path%;C:\wamp\bin\mysql\mysql5.5.20\bin

方法二:【重啟cmd視窗生效】

我的電腦>>屬性>>進階>>環境變數>>系統變數>>Path

參考如下設定:

Path原值:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;

修改後的值:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\wamp\bin\mysql\mysql5.5.20\bin;

PS:在cmd視窗下,可使用 echo %path% 命令查看環境變數

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.