升级MacOS 10.15后跳坑记录
git➜ ~ git -h xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun发现git无法使用,先确认git是否安装好了➜ ~ which gi
git➜ ~ git -h xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun发现git无法使用,先确认git是否安装好了➜ ~ which gi
给php用户生成ssh-keysudo -Hu www ssh-keygen -t rsa # 一路回车就完事了 # 然后保存公钥到github上 cat /home/www/.ssh/id_rsa.pub检查php是否允许使用 shell_exec()<?php echo shell_exec('ls -la'); 如果无法成功执行,则需要修改 php.ini 并重启 php-fpm
php安装相关依赖安装 yum -y install libxml2 libxml2-devel curl-devel libjpeg-devel libpng-devel freetype-devel libicu-devel libmcrypt openssl openssl-devel glibc-headers gcc-c++ 到官网找一个适合的php源码包,下载回来之后解压/编译安装