您的位置 首页 php

mac切换PHP版本并使当前PHP版本生效

mac切换PHP版本并使当前PHP版本生效

1、安装不同版本PHP

(推荐学习:PHP视频教程)

# brew install php56# brew install php70

2、安装PHP版本切换工具

# brew install php-version# source $(brew --prefix php-version)/php-version.sh

3、查看当前安装的所有PHP版本

# php-version

4、切换版本

# php-version 5.6.5

5、使当前PHP版本生效

# sudo pkill php-fpm -D# sudo pkill php-fpm# sudo php-fpm -D

这时,在phpinfo()中当前PHP版本就生效了

以上就是mac切换PHP版本并使当前PHP版本生效的详细内容,更多请关注求知技术网其它相关文章!

文章来源:智云一二三科技

文章标题:mac切换PHP版本并使当前PHP版本生效

文章地址:https://www.zhihuclub.com/2983.shtml

关于作者: 智云科技

热门文章

评论已关闭

13条评论

  1. [url=https://radikal.host/i/gYN9v][img]https://a.radikal.host/2022/08/13/trezvod.webp[/img][/url]

    Нет причины бросать свой автомобиль возле клуба или
    ресторана, если немного выпили.
    Зачем после бурной ночи, затем утром
    возвращаться за машиной? Можно
    просто заказать услугу и мы доставим ваш
    автомобиль к вашему дому

  2. Bᥙdget Home RenovationIt’s additionally worth noting tһat simply since yoᥙ can take
    ⲟᥙt a substantial renovation mortgage, doesn’t meɑn ʏou ouցht tߋ.

    Feel free tо visit mʏ site:

  3. It’s fantastic that you are getting ideas from this post as well
    as from our dialogue made at this place.

  4. This is a really good tip especially to those new to the blogosphere.
    Brief but very accurate info… Thank you for sharing this one.
    A must read article!

  5. A motivating discussion is definitely worth comment. There’s
    no doubt that that you ought to write more on this issue,
    it might not be a taboo matter but typically folks don’t speak about such issues.
    To the next! Best wishes!!

    Also visit my webpage

  6. Thank ʏοu for another wonderful post. Tһe plwce
    elѕе may anybοdy ցеt that type of info in ѕuch a perfect method of writing?
    I’ve a presentation neⲭt week, and I’m on the loߋk for ѕuch information.

  7. I do not know whether it’s just me or if perhaps everybody else experiencing problems with your site.
    It appears like some of the written text on your posts are running off the screen. Can somebody else please comment and let me know if this
    is happening to them as well? This may be a problem with my internet browser because
    I’ve had this happen before. Cheers

  8. I jᥙst like the valuable infⲟrmation y᧐u provide foг your articles.
    І’ll bookmark yoᥙr blog and take а look at օnce more rigһt here regularly.

    Ӏ am moderately cеrtain I ᴡill bbe t᧐ld ⅼots
    օf neww stuff гight heгe! Good luck for the following!

    My weeb blog

  9. Hello, I desire to subscribe for this website to obtain latest updates, so where can i do
    it please assist.

  10. Hey there just wanted to give you a quick heads up.
    The words in your article seem to be running off the screen in Chrome.
    I’m not sure if this is a format issue or something
    to do with internet browser compatibility but I figured
    I’d post to let you know. The style and design look great
    though! Hope you get the problem resolved soon. Cheers

  11. Drinking hot coffee and reading your articles are such a great time. Nice to know you,

网站地图