拯救我的C盤

系統

關閉休眠

管理員運行cmd

執行:powercfg -h off

分頁文件改變位置

 

 

 

 

修改Windows APP默認保存位置(其它選項按需要切換):

 

Python

建議使用Conda

conda

增加或修改配置文件C:\Users\用戶\.condarc

 ​
 // 配置示例
 channels:
   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
   - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
   - defaults
 show_channel_urls: true
 envs_dirs:
   - D:\conda\envs                         
 pkgs_dirs:
   - D:\conda\pkgs

 

未使用Conda的情況是將庫安裝到Python的的安裝目錄

pip 鏡像加速

 #新建文件夾 C:\Users\用戶名\pip
 #新新文件 C:\Users\用戶名\pip\pip.ini
 [global]  
 index-url=https://mirrors.aliyun.com/pypi/simple/  
 [install]  
 trusted-host=mirrors.aliyun.com 

 

 

nodejs

增加或修改配置文件C:\Users\用戶名\.npmrc

 prefix=D:\nodejs\node_global
 cache=D:\nodejs\node_cache
 registry=https://registry.npm.taobao.org/

最後將D:\nodejs\node_global添加到系統環境變量Path中

Android

Gradle

經常要編譯別人源碼時會自動下載gradle的包,並下載依賴,默認存在C盤下。

解救他,增加環境變量

 GRADLE_USER_HOME = D:\GradleHome

 

Java

Maven

默認存在C盤用戶目錄有個“.m2”的文件夾,尤其使用IDEA 的同學注意,IDEA默認使用內部的maven,在設置中切換一下即可,切換後IDEA自動顯示存儲的文件夾,如下圖:

 

修改settings.xml

 <localRepository>D:/Maven/repo</localRepository>

鏡像加速

 <mirror>  
     <id>alimaven</id>  
     <name>aliyun maven</name>  
     <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
     <mirrorOf>central</mirrorOf>          
 </mirror> 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章