1. 显示环境变量:
[[email protected] ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
2. 修改环境变量,将 lampp/bin添加到配置文件下
[[email protected] ~]# export PATH=$PATH:/opt/lampp/bin
3. 输入命令,直接就能看到PHP的扩展模块
[[email protected] ~]# php -m
[PHP Modules]
时间: 2024-10-08 17:36:51