链接: 一步一步搭建 Perfect Swift Server 服务器 (一)

准备材料

  1. Ubuntu 16.0.4 or 16.10 镜像 (本文中使用的是 Ubuntu 16.0.4 版本)
  2. Swift 官网
  3. Perfect 官网
  4. Perfect GitHub 仓库

Ubuntu 安装 git

$sudo apt install git

一步一步搭建 Perfect Swift Server 服务器 (二)

Ubuntu 安装 Perfect + Swift

最快捷安装方式,使用官方提供的 Perfect-Ubuntu 自动安装脚本

打开 Ubuntu 终端
$git clone https://github.com/PerfectlySoft/Perfect-Ubuntu.git

进入 clone 成功的文件夹内,打开 install.sh 文件
修改 SWIFT_VERSION=4.1.2SWIFT_VERSION=4.1.3
一步一步搭建 Perfect Swift Server 服务器 (二)

保存修改,继续执行脚本

cd Perfect-Ubuntu/
chmod +x ./install.sh
sudo ./install.sh --sure

脚本会下载 Swift4.1.3 安装包,等待执行完成。
查看 swift 安装是否成功并查看版本
$swift --version
一步一步搭建 Perfect Swift Server 服务器 (二)

至此,Perfect + Swift 开发环境安装完成

相关文章: