重新配置电脑中的环境变量

发布于:2025-07-11 ⋅ 阅读:(51) ⋅ 点赞:(0)

由于本人sb 把环境变量全部覆盖了 把系统的path的环境变量全部覆盖了
一些感想 1.不要依赖电脑 2.常备份 3.多用云服务 4. 代码尤其不要依赖环境和自己的电脑 解耦和健壮

在这里插入图片描述
This image shows a portion of the Windows System Environment Variable “Path” list. Here are some observations:

✅ Notable Entries

  1. Custom Development Paths:
    • D:\1_development\XFTP\
    • D:\1_development\XSHELL\
    • D:\1_development\SQL\Redis\
    • D:\1_development\01Enviroment\Go\bin
    • D:\1_development\01Enviroment\R-4.4.1\bin
  2. Framework/Tool Variables (environment variables):
    • %NODE_HOME%, %ROCKETMQ_HOME%, %ERLANG_HOME%, %NVM_HOME%, %VUE_HOME%, %nginx_home%, %nacos_home%
    • %ANACONDA_HOME%, %ANACONDA_LIBRARY%
    • %DJANGO% (highlighted)
  3. NVIDIA & .NET:
    • C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
    • C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR
    • C:\Program Files\dotnet\
  4. Node-related entries:
    • %NODE_HOME%\node_modules
    • %NODE_HOME%\node_global

⚠️ Recommendations

  1. Environment Variables Defined?
    • Ensure all the variables like %DJANGO%, %NODE_HOME%, etc., are properly defined in the system. Undefined variables in the PATH won’t resolve correctly.
  2. Avoid Redundant Paths:
    • Multiple node paths (%NODE_HOME%, %NODE_HOME%\node_modules, %NODE_HOME%\node_global) — be sure you need all of them.
  3. Organize and Document:
    • For maintainability, keep a text document listing your environment variable definitions and what they’re used for.
  4. Check for Typos:
    • There’s a typo in 01Enviroment (should be “01Environment”) — though harmless functionally, consistent naming helps with clarity.

Would you like help checking if the environment variables like %DJANGO% or %NODE_HOME% are defined properly?

【Windows】误删 Path 中的环境变量引发的惨案 - 知乎

D:\1_development\01Envrioment\02JDK\jdk-17.0.0.1\bin;D:\1_development\JDK1.8\bin;D:\1_development\01Envrioment\r\R-4.4.1\bin;D:\1_development\01Envrioment\Go\bin;D:\1_development\01Envrioment\03 C\mingw64\bin;D:\1_development\03SQL\MySQL\MYSQL8.0\bin;D:\1_development\Git\bin;D:\1_development\SQL\Redis;D:\1_development\05 Font\nvm;D:\1_development\05 Font\NodeJS\npm-global;D:\1_development\05 Font\NodeJS\npm-global\node_modules.bin;D:\1_development\nginx-1.18.0;D:\1_development\01Envrioment\Nacos\nacos\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;“C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH”;

软件

windows自带

软件位置

D:\1_development\01Envrioment\02JDK\jdk-17.0.0.1\bin
D:\1_development\01Envrioment\IntelliJ IDEA 2022.1.4\bin
D:\1_development\01Envrioment\r\R-4.4.1\bin
D:\1_development\01Envrioment\apache-jmeter-5.4.1\bin
D:\1_development\01Envrioment\Tomcat8.5.31\bin
D:\1_development\01Envrioment\Go\bin
D:\1_development\01Envrioment\Nacos\nacos\bin
D:\1_development\01Envrioment\Erlang OTP\bin
D:\1_development\01Envrioment\seata\seata-server-1.4.2\bin
D:\1_development\01Envrioment\03 C\mingw64\bin
D:\1_development\03SQL\MySQL\MYSQL8.0\bin
D:\1_development\Git\bin
D:\1_development\SQL\Redis
D:\1_development\nginx-1.18.0
D:\1_development\JDK1.8\bin
D:\1_development\05 Font\nvm
D:\1_development\05 Font\NodeJS\npm-global
D:\1_development\05 Font\NodeJS\npm-global\node_modules\.bin

网站公告

今日签到

点亮在社区的每一天
去签到