Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting Environment Variables | ||||||||
Changed: | ||||||||
< < | APPX offers five levels at which environment variables may be set: | |||||||
> > | APPX offers six levels at which environment variables may be set: | |||||||
Line: 10 to 10 | ||||||||
Specific Environment Variables are documented in detail at Environment Variables List. | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Global OS Environment VariablesThe "classic" and most general place to set environment variables is at the OS level. In Windows, they are set in the autoexec.bat or System Environment on APPX/Client machine. In UNIX, they are typically set in /etc/profile | ||||||||
Line: 22 to 17 | ||||||||
DISADVANTAGES:
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
Per-user OS Environment Variables
| ||||||||
Line: 37 to 28 | ||||||||
Also overrides any global appx.env settings. | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Startup script or batch filesThe next technique for setting APPX-related environment variables, is to do so directly in the script or batch file invoked by system users to start APPX, or invoked by the system to start AppxD. | ||||||||
Line: 55 to 41 | ||||||||
AppxD startup script (UNIX only)
| ||||||||
Deleted: | ||||||||
< < | ||||||||
Global appx.env Environment VariablesThe recommended method for setting environment variables is in Global appx.env.
| ||||||||
Deleted: | ||||||||
< < | ||||||||
Per-user appx.env Environment VariablesPer-user appx.env is not available for APPX/Client users. | ||||||||
Line: 71 to 55 | ||||||||
Overrides any OS settings. Also overrides any global appx.env settings.
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | Setting Environment Variables on the Command lineYou can also set environment variables from the command line. Just prefix the variable with 2 dashes as follows: appx --APPX_SQL_LOG=c:\logs\appx.log --APPX_CMD_LOG=0xFFFFFFFF This will set APPX_SQL_LOG and APPX_CMD_LOG for the duration of this session only. | |||||||
GotchasTech support sees various issues related to environment variables come up on a regular basis. Since forewarned is forearmed, here they are. |