Php in linux system adds to the global environment variables

Swoole built environment, when to be a small notes, manuals:

https://linkeddestiny.gitbooks.io/easy-swoole/content/book/chapter01/install.html

Related command:

sudo vim ~/.bashrc

Increase at the end of the file:

export PATH=/usr/local/php/bin:$PATH
export PATH=/usr/local/php/sbin:$PATH

After saving reload it

source ~/.bashrc

Note: The directory needs to be php corresponding executable file directory

 

Guess you like

Origin www.cnblogs.com/xuweiqiang/p/11932788.html