Linux服務器 XAMPP後添加PHP和MYSQL環境變量

編輯/etc/profile文件 在文件末尾添加兩行代碼
vi /etc/profile
 
CentOS:
    PATH=$PATH:/opt/lampp/bin
    export PATH
Ubuntu:
    export PATH=/opt/lampp/bin:$PATH
 
執行/etc/profile
source /etc/profile
相關文章
相關標籤/搜索