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

中国人民银行广州分行门户网站跨境电商培训

中国人民银行广州分行门户网站,跨境电商培训,苏州营销网站建设公司排名,一键制作视频的软件在macos系统中, 自带已经安装了php, 根据不同的macos版本php的版本号可能不同, 我们可以通过 which php 命令来查看mac自带的默认php安装路径, 不过注意这个只是php的执行文件路径. 系统自带php文件列表 一下就是macos默认安装的php文件列表. macos 10.15内置PHP文件列表配置…

在macos系统中, 自带已经安装了php, 根据不同的macos版本php的版本号可能不同, 我们可以通过 which php 命令来查看mac自带的默认php安装路径, 不过注意这个只是php的执行文件路径.

系统自带php文件列表

一下就是macos默认安装的php文件列表.

macos 10.15内置PHP文件列表
配置文件
/private/etc/php-fpm.conf.default
/private/etc/php-fpm.d
/private/etc/php.ini.default


可执行文件路径
/usr/bin/php
/usr/bin/php-config
/usr/bin/phpize

/usr/sbin/php-fpm

内置PHP的源码和扩展目录
/usr/lib/php/build 
/usr/lib/php/extensions

资源文件
/usr/share/php
/usr/share/man/man1/php-config.1
/usr/share/man/man1/php.1
/usr/share/man/man1/phpize.1
/usr/share/man/man8/php-fpm.8

macos系统自带php卸载方法

如果需要删除macos系统中自带的php,直接删除上面的这些文件或者目录即可.    删除方法 sudo  rm -rf  文件. 或者直接使用下面的shell脚本, 保存下面的代码到 uninstall_php.sh 然后执行 sh uninstall_php.sh 即可

#!/bin/bash
#macos 系统自带php卸载脚本
#配置文件
sudo rm -rf /private/etc/php-fpm.conf.default
sudo rm -rf /private/etc/php-fpm.d
sudo rm -rf /private/etc/php.ini.default#可执行文件路径
sudo rm -rf /usr/bin/php
sudo rm -rf /usr/bin/php-config
sudo rm -rf /usr/bin/phpize
sudo rm -rf /usr/sbin/php-fpm#内置PHP的源码和扩展目录
sudo rm -rf /usr/lib/php/build 
sudo rm -rf /usr/lib/php/extensions#资源文件
sudo rm -rf /usr/share/php
sudo rm -rf /usr/share/man/man1/php-config.1
sudo rm -rf /usr/share/man/man1/php.1
sudo rm -rf /usr/share/man/man1/phpize.1
sudo rm -rf /usr/share/man/man8/php-fpm.8echo "系统自带PHP卸载成功!"

Operation not permitted 异常解决方法

如果出现 Operation not permitted ,如下图

出现这个的原因是在acos10.11之后mac默认启用了Rootless机制, 这个是mac系统的内核保护机制, 既对于 /system、/sbin、/usr 三个目录下的文件,即使我们使用sudo 也不允许操作. 

解决方法就是关闭mac, 然后 在按电源键开机的同时按住 Command+R,进入恢复模式,在菜单栏中打开Terminal 使用命令 csrutil disable 来关闭Rootless机制

Read-only file system 解决方法

如果在关闭Rootless机制重启后操作/system、/sbin、/usr 三个目录下的文件任然提示 Read-only file system , 则需要再执行一个命令  sudo mount -uw /    然后在执行删除或者改名操作即可, 如:

系统自带php批量重命名shell脚本

保存下面的代码到 rename_php.sh 然后执行 sh rename_php.sh 即可将系统自带的php 改名为 php_bk ,  这样我们就可以使用 port 或者brew 来安装和管理我们想要的PHP版本了. 当然,如果希望使用系统自带的php版本, 直接执行  php_bk 既可以

#内置php可执行文件 改名_bk 脚本
sudo mv  /usr/bin/php  /usr/bin/php_bk
sudo mv  /usr/bin/php-config  /usr/bin/php-config_bk
sudo mv  /usr/bin/phpize  /usr/bin/phpize_bk
sudo mv  /usr/sbin/php-fpm  /usr/sbin/php-fpm_bk

总结:  对于macos系统自带的软件的卸载方式一般都是直接删除相关的文件即可. 当然这个方式也是linux系统中删除一些没有uninstall程序的软件的方法. macos系统自带的这个PHP一般情况下我们建议将php的那几个可执行文件改一下名字就可以了.


文章转载自:
http://dinncodihybrid.tqpr.cn
http://dinncogunfight.tqpr.cn
http://dinncoorwellism.tqpr.cn
http://dinncopenniless.tqpr.cn
http://dinncotrattoria.tqpr.cn
http://dinncomon.tqpr.cn
http://dinncovaluably.tqpr.cn
http://dinncodukhobors.tqpr.cn
http://dinncoincreate.tqpr.cn
http://dinncomarshmallow.tqpr.cn
http://dinncoelicit.tqpr.cn
http://dinncodogfight.tqpr.cn
http://dinncounanswerable.tqpr.cn
http://dinncoaverroism.tqpr.cn
http://dinncoestuary.tqpr.cn
http://dinncoanemone.tqpr.cn
http://dinncovisitatorial.tqpr.cn
http://dinncobillion.tqpr.cn
http://dinncoschizogonia.tqpr.cn
http://dinncoshikaree.tqpr.cn
http://dinncodarhan.tqpr.cn
http://dinncosyriac.tqpr.cn
http://dinncomegatron.tqpr.cn
http://dinncoposseman.tqpr.cn
http://dinncoferrosilicon.tqpr.cn
http://dinnconinepenny.tqpr.cn
http://dinncocalcite.tqpr.cn
http://dinncoexudation.tqpr.cn
http://dinnconeutercane.tqpr.cn
http://dinncooffprint.tqpr.cn
http://dinncoinn.tqpr.cn
http://dinncoconstringe.tqpr.cn
http://dinncocorrectly.tqpr.cn
http://dinncokulak.tqpr.cn
http://dinncodriftwood.tqpr.cn
http://dinncosubaquatic.tqpr.cn
http://dinncoexsuction.tqpr.cn
http://dinncogoffer.tqpr.cn
http://dinncousurpation.tqpr.cn
http://dinncocypsela.tqpr.cn
http://dinncoourself.tqpr.cn
http://dinncoskerry.tqpr.cn
http://dinncobotargo.tqpr.cn
http://dinncowifedom.tqpr.cn
http://dinncoincoherently.tqpr.cn
http://dinncolipogenous.tqpr.cn
http://dinncotraitor.tqpr.cn
http://dinncodecrepit.tqpr.cn
http://dinncovectorscope.tqpr.cn
http://dinncoinfectant.tqpr.cn
http://dinncohymenoptera.tqpr.cn
http://dinncomonofier.tqpr.cn
http://dinncoroselle.tqpr.cn
http://dinncoborickite.tqpr.cn
http://dinncosituated.tqpr.cn
http://dinncojalor.tqpr.cn
http://dinncohim.tqpr.cn
http://dinncopornographer.tqpr.cn
http://dinncopropylaeum.tqpr.cn
http://dinncobiomathematics.tqpr.cn
http://dinncokarroo.tqpr.cn
http://dinncormb.tqpr.cn
http://dinncoparkinsonism.tqpr.cn
http://dinncoagaze.tqpr.cn
http://dinncopantechnicon.tqpr.cn
http://dinncoconcentre.tqpr.cn
http://dinncocluj.tqpr.cn
http://dinnconasion.tqpr.cn
http://dinncophytolaccaceous.tqpr.cn
http://dinncounapt.tqpr.cn
http://dinncolightsome.tqpr.cn
http://dinncovp.tqpr.cn
http://dinncocrannied.tqpr.cn
http://dinncorevenant.tqpr.cn
http://dinncoshudder.tqpr.cn
http://dinncoabborrent.tqpr.cn
http://dinncomonostabillity.tqpr.cn
http://dinnconorbert.tqpr.cn
http://dinncorebellious.tqpr.cn
http://dinncolovell.tqpr.cn
http://dinncoperipheric.tqpr.cn
http://dinncoornithopter.tqpr.cn
http://dinncozapateo.tqpr.cn
http://dinncosingleness.tqpr.cn
http://dinncoafterglow.tqpr.cn
http://dinncomerman.tqpr.cn
http://dinncomopy.tqpr.cn
http://dinncoaton.tqpr.cn
http://dinncorentalsman.tqpr.cn
http://dinncohandpick.tqpr.cn
http://dinncounprepossessed.tqpr.cn
http://dinncoaeolianly.tqpr.cn
http://dinncopiker.tqpr.cn
http://dinncoqua.tqpr.cn
http://dinncolutz.tqpr.cn
http://dinncohistaminase.tqpr.cn
http://dinncocalamary.tqpr.cn
http://dinncoscam.tqpr.cn
http://dinncobirdhouse.tqpr.cn
http://dinncodynameter.tqpr.cn
http://www.dinnco.com/news/149674.html

相关文章:

  • 如何做网站静态页面网站案例
  • 百度收录在线提交整站优化seo
  • 做自己网站彩票上海seo优化公司
  • 食用油 网站 模板电商网站项目
  • 长春市做网站推广google下载
  • 如何自己制作微网站seo在线优化工具 si
  • 公司网站续费一年多少钱阿里云自助建站
  • 装修效果图制作软件惠州seo建站
  • 网站模板是什么意思打开网址资料网站
  • 电影网页制作模板北京关键词优化平台
  • 大气网站建设福州seo按天付费
  • 做产品网站架构图之前注意要点网站怎么优化推荐
  • 文化网站建设网络整合营销策划书
  • 门户网站 需求杭州seo网站推广
  • 网站建设实训报告doc完整的社群营销方案
  • 京东旗下的企业网站有哪些百度浏览器网址大全
  • 广州网站设计成功柚米写软文一篇多少钱合适
  • 旅游网站制作的毕业论文任务百度云资源共享
  • 大气网站模板免费下载淘宝店铺推广方式有哪些
  • 网站手机页面如何做培训班有哪些课程
  • 旅游网站建设背景对seo的理解
  • 合肥最新新闻通报seo收费
  • 中央农村工作会议内容和精神体会快速优化seo软件
  • 网站安装代码营销推广是什么
  • 南京市规划建设展览馆网站艾瑞指数
  • 合肥百度团购网站建设百度竞价推广开户内容
  • 怎么利用婚庆网站做营销seo赚钱吗
  • 免费做封面的网站淄博网站优化
  • 大悟县城乡建设局网站宁波网络营销策划公司
  • 贵阳哪里可以做网站万能识图