美文网首页
解决linux配置/etc/profile环境变量每次都要 so

解决linux配置/etc/profile环境变量每次都要 so

作者: lihao_李浩 | 来源:发表于2021-05-25 16:58 被阅读0次

    在/etc/profile里配置了nodejs的文件路径,结果每次连接终端都需要 source /etc/profile才能正常执行 node -v

    解决:
    vim ~/.bashrc
    追加一行 source /etc/profile 就好了

    相关文章

      网友评论

          本文标题:解决linux配置/etc/profile环境变量每次都要 so

          本文链接:https://www.haomeiwen.com/subject/zwrcsltx.html