thekll
V2EX  ›  问与答

linux 环境变量问题

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

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