1.执行vi /etc/profile,添加如下:
PATH=$PATH:你的php路径/php/bin:你的mysql路径/mysql/bin
export PATH
保存退出
2.执行source /etc/myprofile
3.执行php -m,如果正常则设置成功。
1.执行vi /etc/profile,添加如下:
PATH=$PATH:你的php路径/php/bin:你的mysql路径/mysql/bin
export PATH
保存退出
2.执行source /etc/myprofile
3.执行php -m,如果正常则设置成功。