Method for modifying PATH under Linux

xiaoxiao2021-03-06  95

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

转载请注明原文地址:https://www.9cbs.com/read-96752.html

New Post(0)