互联网服务AIX环境变量

AIX环境变量问题-至急

大家好,我遇到这样个问题。我的服务器是AIX5.3系统,应用程序在存储上!
我的.profile文件中定义一个用户变量【BFLDIR=$HOME/backup/databackup】, 并且echo $BFLDIR得到的值是正确的【BFLDIR=/jzht/backup/databackup】;但是实际应用程序中取到的值却是【BFLDIR=/backup/databackup】,而这个应用程序在生产环境中是正确执行的(生产的应用程序在主机上)。不知道这是为什么,应该怎么处理。
先谢谢各位大侠了!
参与10

9同行回答

火龙果火龙果软件开发工程师晋中市商业银行
嗯,谢谢大家。问题已经解决,还是应用的问题!有个不常用应用程序需要重新启动加载系统环境变量才行。在此,谢谢各位大侠对我的关注!显示全部
嗯,谢谢大家。问题已经解决,还是应用的问题!有个不常用应用程序需要重新启动加载系统环境变量才行。
在此,谢谢各位大侠对我的关注!收起
互联网服务 · 2011-11-30
浏览1798
bjibm1188bjibm1188系统工程师DCITS
你的问题是不是想在/etc下的profile文件中定义一个用户的环境变量,同时用root用户也能执行,如果是这样, ...guguyu7689883 发表于 2011-11-23 10:41 这个是正解的回答。显示全部
你的问题是不是想在/etc下的profile文件中定义一个用户的环境变量,同时用root用户也能执行,如果是这样, ...
guguyu7689883 发表于 2011-11-23 10:41

这个是正解的回答。收起
互联网服务 · 2011-11-23
浏览1792
guguyu7689883guguyu7689883系统运维工程师南京科技有限责任公司
以下摘自IBM AIX网站,使用顺序详情如下。http://publib.boulder.ibm.com/in ... ta/etc_env_file.htmThe /etc/environment, /etc/profile, and .profile files are run once at login time. The .env file, on the other hand, is run every time you open a new shell o...显示全部
以下摘自IBM AIX网站,使用顺序详情如下。

http://publib.boulder.ibm.com/in ... ta/etc_env_file.htm

The /etc/environment, /etc/profile, and .profile files are run once at login time. The .env file, on the other hand, is run every time you open a new shell or a window.

    * /etc/environment file
      The first file that the operating system uses at login time is the /etc/environment file. The /etc/environment file contains variables specifying the basic environment for all processes.
    * /etc/profile file
      The second file that the operating system uses at login time is the /etc/profile file.
    * .profile file
      The .profile file is present in your home ($HOME) directory and lets you customize your individual working environment.
    * .env file
      A fourth file that the operating system uses at login time is the .env file, if your .profile contains the following line: export ENV=$HOME/.env收起
互联网服务 · 2011-11-23
浏览1887
qinwen20520qinwen20520专业技术支持人员无业
5楼正解~~~显示全部
5楼正解~~~收起
2011-11-23
浏览1771
myciciymyciciy联盟成员IT顾问某金融科技公司
你的应用程序没有取到jzht用户的值 /jzht取的是root用户的 /你在查查应用程序吧显示全部
你的应用程序没有取到jzht用户的值 /jzht
取的是root用户的 /
你在查查应用程序吧收起
银行 · 2011-11-23
浏览1816
火龙果火龙果软件开发工程师晋中市商业银行
mount结果:  node       mounted        mounted over    vfs       date        options-------- ---------------  ------------...显示全部
mount结果:
  node       mounted        mounted over    vfs       date        options
-------- ---------------  ---------------  ------ ------------ ---------------
         /dev/lv_jzht     /jzht            jfs2   Oct 21 15:56 rw,log=/dev/loglv01

我的应用程序在 /jzht  放着。收起
互联网服务 · 2011-11-23
浏览1741
ryo2k3ryo2k3教师大连理工大学
可能是主机上的应用中取到的$HOME值是空显示全部
可能是主机上的应用中取到的$HOME值是空收起
科研院所 · 2011-11-23
浏览1808
myciciymyciciy联盟成员IT顾问某金融科技公司
mount看看显示全部
mount看看收起
银行 · 2011-11-23
浏览1797
guguyu7689883guguyu7689883系统运维工程师南京科技有限责任公司
你的问题是不是想在/etc下的profile文件中定义一个用户的环境变量,同时用root用户也能执行,如果是这样,建议你在根目录下面,自己建一个profile文件,然后把环境变量加在里面。显示全部
你的问题是不是想在/etc下的profile文件中定义一个用户的环境变量,同时用root用户也能执行,如果是这样,建议你在根目录下面,自己建一个profile文件,然后把环境变量加在里面。收起
互联网服务 · 2011-11-23
浏览1800

提问者

火龙果
软件开发工程师晋中市商业银行

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2011-11-23
  • 关注会员:1 人
  • 问题浏览:7896
  • 最近回答:2011-11-30
  • X社区推广