zoukankan      html  css  js  c++  java
  • linux环境变量

    linux /etc/profile,bashrc等文件的加载流程 以及 环境变量的设置

    转载:https://blog.csdn.net/qq_29753285/article/details/69367215

    环境变量一般在profile文件中设置,

    • 如果只想本次登陆shell有效,直接在shell中输入 export 变量名=变量值1[:变量值2[:...]]
    • 如果只想对当前用户生效,就在~/.profile 中设置,
    • 如果想让设置对所有用户生效,就在etc/profile 中设置。
    .bashrc - The individual per-interactive-shell startup file.
    这个文件主要保存个人的一些个性化设置,如命令别名、路径等。每次修改.bashrc后,使用source ~/.bashrc(或者 . ~/.bashrc)就可以立刻加载修改后的设置,使之生效。
  • 相关阅读:
    10000000000
    vue生命周期
    react基础
    第一个react
    vuex状态管理2
    vue配合UI组件
    vuex
    vue-router配合vue-cli的实例
    vue-router2.0
    父子组件2.0
  • 原文地址:https://www.cnblogs.com/HITSZ/p/8641784.html
Copyright © 2011-2022 走看看