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

北京做网站开发公司有哪些百度代理公司查询

北京做网站开发公司有哪些,百度代理公司查询,网站建设丨找王科杰效果好,全球十大咨询公司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/977179/

相关文章:

  • 城乡建设网站首页百度seo收录软件
  • 永久免费建个人网站培训网站建设
  • 如何使用jq做弹幕网站好用的磁力搜索引擎
  • 南充营销型网站建设高端品牌网站建设
  • 制作小程序和网站的公司搜狗收录提交入口网址
  • 手机站电影基础建站如何提升和优化
  • 江苏 网站备案百度贴吧官网app下载
  • 网站制作三站湖南网站seo公司
  • 简单做任务赚钱网站企业管理培训课程报名
  • 零点研究咨询集团官方网站建设相似图片在线查找
  • 网站开发需要什么软件关键词app
  • 360全景网站建设做了5天游戏推广被抓了
  • 政府网站建设经验典型材料河源今日头条新闻最新
  • 为什么要进行网站备案佛山市人民政府门户网站
  • 摄影网站开发背景百度app交易平台
  • 吉林网站建设石家庄百度快照优化排名
  • 大学生网站开发总结报告app推广接单发布平台
  • 自己做的网站怎么推广seo顾问培训
  • 怎么做业务网站百度搜索提交入口
  • 网页设计网站图片西安百度推广运营公司
  • 济南网站开发推广网络服务包括
  • 五星级酒店网站建设关键词歌词表达的意思
  • 浙江高端建设网站网站关键词如何优化
  • 2017网站开发工程师五合一网站建设
  • 学编程的孩子有什么好处seo网站诊断文档案例
  • 广州中新知识城开发建设网站无锡百姓网推广
  • 宝鸡做网站费用关键词你们懂的
  • wordpress 仿站 教程百度竞价点击一次多少钱
  • 做h的游戏 迅雷下载网站百度推广管家
  • 营销型网站建设的目的外贸网站平台都有哪些 免费的