Set environment variables
Edit configuration scripts to set environment variables for the command shells you use on your application server using your privileged account and sudo.
To edit files, you use commands such as the following:
$ sudo su - root
# vi <file_name>
# exit
The first command logs you in as root
. If you are
prompted for your password after entering this command, enter your password, not the
password of root.
You must log out and log in again for the changes you make in this section to take effect.
To set environment variables, perform the following:
- Edit the
/etc/profile
file as follows: - Edit the
/etc/csh.login
file as follows: