# vi /home/用戶名/.bash_profile
在export PATH下面加入一行
alias 自定義名=軟件安裝包bin下的可執行文件
如:
alias php=安裝包路徑/bin/php
:wq保存後,重載配置文件
# source .bash_profile
# vi /home/用戶名/.bash_profile
在export PATH下面加入一行
alias 自定義名=軟件安裝包bin下的可執行文件
如:
alias php=安裝包路徑/bin/php
:wq保存後,重載配置文件
# source .bash_profile