mac下好用的php环境变量,php-mac系统 环境变量设置

在Mac系统中,为了设置PHP环境变量,可以编辑.bash_profile文件,添加指定的PHP版本路径到PATH变量中,例如将/Applications/MAMP/bin/php/php5.4.10/bin目录添加进去,然后运行.bash_profile使更改生效。通过`which php`命令可以验证PHP的路径是否已正确设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

php-mac环境变量设置

sudo vi ~/.bash_profile

# 添加一行。注意 PHP5.4.10 修改成你正在运行的 PHP 版本目录名称

export PATH="/Applications/MAMP/bin/php/php5.4.10/bin:$PATH"

# 保存,退出

# 运行一下 .bash_profile 文件

. .bash_profile

# 确认当前正在运行哪个 PHP

which php

/Applications/MAMP/bin/php/php5.4.10/bin/php

新疆阿克苏地区 马鞍山新闻 试管宝宝 阿克苏行署 阿克苏行政公署

http://www.cere.cc/editor/attached/file/20200520/20200520225629_7073.html

http://www.cere.cc/editor/attached/file/20200520/20200520225623_6136.html

http://www.cere.cc/editor/attached/file/20200520/20200520225909_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520230101_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520225701_2230.html

http://www.cere.cc/editor/attached/file/20200520/20200520225805_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520225615_4886.html

http://www.cere.cc/editor/attached/file/20200520/20200520225925_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225549_3636.html

http://www.cere.cc/editor/attached/file/20200520/20200520225725_2230.html

http://www.cere.cc/editor/attached/file/20200520/20200520225957_2855.html

http://www.cere.cc/editor/attached/file/20200520/20200520230029_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520225941_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225709_3323.html

http://www.cere.cc/editor/attached/file/20200520/20200520230005_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520225605_2698.html

http://www.cere.cc/editor/attached/file/20200520/20200520230021_2698.html

http://www.cere.cc/editor/attached/file/20200520/20200520230037_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520225829_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225933_3792.html

http://www.cere.cc/editor/attached/file/20200520/20200520225646_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225821_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225653_3167.html

http://www.cere.cc/editor/attached/file/20200520/20200520225749_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520230013_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520225853_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225949_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225813_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225541_4261.html

http://www.cere.cc/editor/attached/file/20200520/20200520230109_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520225733_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520230053_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520230045_3480.html

http://www.cere.cc/editor/attached/file/20200520/20200520225845_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225741_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225837_2542.html

http://www.cere.cc/editor/attached/file/20200520/20200520225557_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225901_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225637_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225917_2386.html

http://www.cere.cc/editor/attached/file/20200520/20200520225757_3480.html

http://www.cere.cc/editor/attached/file/20200520/20200520225717_2386.html

php-mac系统 环境变量设置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值