打印/下载
Linux
Windows
MacOS

安装Git

pacman -S git

安装PHP7

pacman -S php php-fpm php-gd
# 查看
php -v

Phalcon框架

pacman -S yay
pacman -S php-phalcon

安装Redis

pacman -S redis php-redis
# 启动
systemctl start redis

安装Swoole

pacman -S php-swoole

安装Git

  • Git
  • 安装: 64位版 > 重启系统
  • VsCode: "ctrl+`" > "终端" > "powershell" > "选择默认 shell" > "Git Bash" > 重启
  • 终端输入: "cmd" 和 "bash" 可相互切换

安装PHP7

  • PHP7.4
  • 解压: "php-7.4.13-nts-Win32-vc15-x64.zip" 到 "D:\server\php"
  • 搜索: "环境变量" > "Path" > "添加" > "D:\server\php"
  • 配置: "D:\server\php\php.ini" , 如果没有复制"php.ini-development"或"php.ini-production"
  • 扩展目录: extension_dir = "D:/server/php/ext"
  • Bash: php -v

Phalcon框架

  • Phalcon4php-psr
  • 解压 "php_phalcon.dll" 到 "D:\server\php\ext"
  • 解压 "php_psr.dll" 到 "D:\server\php\ext"
  • 扩展 "extension=psr" 和 "extension=phalcon"
  • 查看 "php -m"

安装Redis

  • Redisphp-redis
  • 解压: "Redis-x64-3.2.100.zip" 到 "D:\server\redis"
  • 搜索: "环境变量" > "Path" > "添加" > "D:\server\redis"
  • 启动: "redis-server"
  • 解压 "php_redis.dll" 到 "D:\server\php\ext"
  • 扩展 "extension=redis"
  • 查看 "php -m"

安装MariaDB

  • MariaDB
  • 扩展 "extension=mysqli" 和 "extension=pdo_mysql"
  • 查看 "php -m"

数据库工具

安装Git

  • 终端: git

安装PHP7

  • 终端: php
  • 查看 "php -v"

安装MacPorts

环境变量

sudo vi /etc/profile
  • export PATH=/opt/local/bin:$PATH
  • export PATH=/opt/local/sbin:$PATH

清华镜像源

sudo vi /opt/local/etc/macports/macports.conf
  • rsync_server mirrors.tuna.tsinghua.edu.cn
  • rsync_dir macports/release/base/

sources.conf

sudo vi /opt/local/etc/macports/sources.conf
  • rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ [default]

刷新

sudo port -v sync
sudo port -v selfupdate

Phalcon框架

sudo port install php73-phalcon4
{{copy}}