当前位置: 首页 > news >正文

宿豫建设局网站网站推广seo招聘

宿豫建设局网站,网站推广seo招聘,广西南宁市城乡建设委员会网站,图片预览网站 末班Mac M2芯片配置PHP环境 1. XAMPP2. PHPBrew(PHP版本管理)安装php7.4.33版本 3. 直接使用homebrew 安装php环境参考 1. XAMPP 官网地址 https://www.apachefriends.org/ 安装 安装完成 web server打开后,在打开localhost 成功! 2. PHPBrew(PHP版本管…

Mac M2芯片配置PHP环境

  • 1. XAMPP
  • 2. PHPBrew(PHP版本管理)
    • 安装php7.4.33版本
  • 3. 直接使用homebrew 安装php环境
  • 参考

1. XAMPP

官网地址 https://www.apachefriends.org/

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

安装
在这里插入图片描述
安装完成
在这里插入图片描述

web server打开后,在打开localhost 成功!
在这里插入图片描述

在这里插入图片描述

2. PHPBrew(PHP版本管理)

官方文档 https://github.com/phpbrew/phpbrew/blob/master/README.cn.md
HomeBrew关于 PHPBrew的文档 https://formulae.brew.sh/formula/phpbrew

安装
这里我们通过homebrew安装

brew install phpbrew

在这里插入图片描述
在这里插入图片描述

init
在这里插入图片描述

Using root: /Users/fanzhen/.phpbrew
Initialization successfully finished!
<=====================================================>
Phpbrew environment is initialized, required directories are created under/Users/fanzhen/.phpbrewPaste the following line(s) to the end of your ~/.bashrc and start a
new shell, phpbrew should be up and fully functional from there:source /Users/fanzhen/.phpbrew/bashrcTo enable PHP version info in your shell prompt, please set PHPBREW_SET_PROMPT=1
in your `~/.bashrc` before you source `~/.phpbrew/bashrc`export PHPBREW_SET_PROMPT=1To enable .phpbrewrc file searching, please export the following variable:export PHPBREW_RC_ENABLE=1For further instructions, simply run `phpbrew` to see the help message.Enjoy phpbrew at $HOME!!<=====================================================>

在这里插入图片描述

# phpbrew
source /Users/fanzhen/.phpbrew/bashrc
export PHPBREW_SET_PROMPT=1
export PHPBREW_RC_ENABLE=1

之后就可以正常使用了
在这里插入图片描述

安装php7.4.33版本

phpbrew install 7.4.33 +default

在这里插入图片描述
但是这里下载的速度太慢了需要解决!!!

3. 直接使用homebrew 安装php环境

1、查看 php 版本

php -v

此时发现没有php环境的话,就全新安装

2、brew tap加速,使用github库
homebrew默认使用官方的库,但这个源很慢,一般我们会使用第三方tap

brew tap shivammathur/php

3、安装php7.4

brew install shivammathur/php/php@7.4

4、创建link,这样可以在全局环境里访问

brew link --overwrite --force php@74

在这里插入图片描述
在这里插入图片描述

==> Summary
🍺  /opt/homebrew/Cellar/php@7.4/7.4.33_5: 499 files, 72.9MB
==> Running `brew cleanup php@7.4`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> php@7.4
To enable PHP in Apache add the following to httpd.conf and restart Apache:LoadModule php7_module /opt/homebrew/opt/php@7.4/lib/httpd/modules/libphp7.so<FilesMatch \.php$>SetHandler application/x-httpd-php</FilesMatch>Finally, check DirectoryIndex includes index.phpDirectoryIndex index.php index.htmlThe php.ini and php-fpm.ini file can be found in:/opt/homebrew/etc/php/7.4/php@7.4 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.If you need to have php@7.4 first in your PATH, run:echo 'export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH"' >> ~/.zshrcecho 'export PATH="/opt/homebrew/opt/php@7.4/sbin:$PATH"' >> ~/.zshrcFor compilers to find php@7.4 you may need to set:export LDFLAGS="-L/opt/homebrew/opt/php@7.4/lib"export CPPFLAGS="-I/opt/homebrew/opt/php@7.4/include"To start shivammathur/php/php@7.4 now and restart at login:brew services start shivammathur/php/php@7.4
Or, if you don't want/need a background service you can just run:/opt/homebrew/opt/php@7.4/sbin/php-fpm --nodaemonize

在这里插入图片描述

# php7.4
export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH"
export PATH="/opt/homebrew/opt/php@7.4/sbin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/php@7.4/lib"
export CPPFLAGS="-I/opt/homebrew/opt/php@7.4/include"

在这里插入图片描述

参考

  1. PHPBrew 使用指南 https://www.jianshu.com/p/d5b0d40e56ee
  2. phpbrew set mirror(加速)https://minbaby.github.io/post/2018-11/phpbrew-set-mirror/
http://www.hkea.cn/news/303285/

相关文章:

  • 齐河网站开发seo服务内容
  • 北京微信网站建设费用想卖产品怎么推广宣传
  • 网站上线的步骤厦门网站推广公司哪家好
  • 网站做app的软件有哪些百度一下你就知道下载
  • 界面设计的重要性百度seo关键词排名推荐
  • 股票做T网站直播营销
  • 北京手机网站建设公司排名技术优化seo
  • wordpress可爱的主题seo优化教程
  • 自己可以申请网站做外卖吗网站描述和关键词怎么写
  • 公司网站网页设计seo站长工具推广平台
  • 重庆南岸营销型网站建设公司哪家专业真实的网站制作
  • 郑州企业网站建设兼职推广渠道
  • 网站哪些数据优化大师的作用
  • 政府网站集约化建设总结营销软文推广平台
  • 学网站开发跟那个专业最相近百度站长平台注册
  • 网站开发python电脑培训班有哪些科目
  • 惠州响应式网站哪家好云盘搜索
  • spring做网站合肥seo排名收费
  • 做58网站怎么赚钱二十个优化
  • 做企业手机网站北京seo网站开发
  • 关于网站建设中原创文章的一些想法体育热点新闻
  • 天河做网站开发免费留电话号码的广告
  • 成都市金堂县网站建设免费seo在线工具
  • 计算机培训中心网站高端网站建设的公司
  • 成都建设路小学网站大作设计网站
  • 桂林创新大厦网站今日十大热点新闻事件
  • 做网站空间哪家好windows7系统优化工具
  • 网站建设首选公司seo推广一个月见效
  • 微信做模板下载网站有哪些推广网站要注意什么
  • 做网站 java c常德seo快速排名