本脚本仅适用于开发,上线部署请使用项目仓库中的容器脚本。
请自行阅读并调整脚本内容后使用
适用环境: ubuntu 20.04+ / macos apple silicon
默认安装
- swoole
- redis
- composer
- PHP 8.1.27
- Swoole 5.1.2
- Composer latest
if [ -f /usr/bin/curl ];then curl -sSO https://mirror.ghproxy.com/https://raw.githubusercontent.com/Mfuns-cn/build-php-shell/master/php-81.sh;else wget -O php-81.sh https://mirror.ghproxy.com/https://raw.githubusercontent.com/Mfuns-cn/build-php-shell/master/php-81.sh;fi;sudo bash php-81.sh
if [ -f /usr/bin/curl ];then curl -sSO https://mirror.ghproxy.com/https://raw.githubusercontent.com/Mfuns-cn/build-php-shell/master/setenv_php81.sh;else wget -O setenv_php81.sh https://mirror.ghproxy.com/https://raw.githubusercontent.com/Mfuns-cn/build-php-shell/master/setenv_php81.sh;fi;sudo bash setenv_php81.sh
sudo bash ./php-81.sh
sudo bash ./setenv_php81.sh
sudo bash ./macos-php-81.sh
sudo bash ./setenv_macos_php81.sh