Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official



Recommended Posts


cd /Applications/MAMP/bin/php

ls -ls



2.编辑修改 .bash_profile 文件(没有.bash_profile 文件的情况下回自动创建)

sudo vim ~/.bash_profile


export PATH="/Applications/MAMP/bin/php/php7.2.20/bin:$PATH"


3. 执行以下命令

source .bash_profile 

如果报错的话请先进入 ls ~ 目录再执行,没报错的话证明你已经操作成了。

输入命令:php -v 查看






 图一为未切换前的版本,图二为切换成功的 7.2.20


Link to post
Link to comment
Share on other sites


discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    • Create New...