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

  

posted @ 2019-04-10 14:34  一棍打出屁  阅读(445)  评论(0编辑  收藏  举报