For example, add the / etc / apache / bin directory to the path
1. # Path = $ PATH: / ETC / Apache / bin
Use this method, whenever you log out PATH will be restored
2. # VI / ETC / PROFILE
Add Path = $ PATH: / ETC / Apache / bin in place
This method is best, unless you enforce manually modify the value of the PATH, will not be changed.
3. # vi ~ / .bash_profile
Modify the PATH line, add / etc / apache / bin to
This method is for users to work