thekll
V2EX  ›  问与答

linux 环境变量问题

  •  
  •   thekll · Jan 8, 2015 · 2273 views
    This topic created in 4235 days ago, the information mentioned may be changed or developed.
    centos下的一个用户,有两个环境变量设置文件,在su到该用户并执行不同命令脚本时需要能应用其中某一个环境变量设置。
    这样的需求能不能实现?
    2 replies    2015-01-08 15:57:02 +08:00
    rrfeng
        1
    rrfeng  
       Jan 8, 2015
    一个用户两个环境?

    那只能手动加载了。或者脚本里覆盖当前。
    Lax
        2
    Lax  
       Jan 8, 2015
    执行命令前用 source 命令来加载
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1044 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:33 · PVG 02:33 · LAX 11:33 · JFK 14:33
    ♥ Do have faith in what you're doing.