Swift Vapor

ubuntu16.04部署vapor详细过程(vapor3、sw

2018-12-14  本文已影响2人  我是花轮

安装Swift

$ wget https://swift.org/builds/swift-4.2-release/ubuntu1604/swift-4.2-RELEASE/swift-4.2-RELEASE-ubuntu16.04.tar.gz
 sudo tar zxvf swift-4.2-RELEASE-ubuntu16.04.tar.gz -C /opt
export PATH=/opt/swift-4.2-RELEASE-ubuntu16.04/usr/bin:"${PATH}"
swift --version
结果.png
nano ~/.bashrc

如果你要保存所做的修改,按下Ctrl+O。想要退出,按下Ctrl+X。

安装Vapor

root@iZ2zeggfwl8b26cenllzu6Z:/# sudo apt-get install swift vapor
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package vapor
eval "$(curl -sL [https://apt.vapor.sh](https://apt.vapor.sh/))"
sudo apt-get install swift vapor
结果.png
上一篇 下一篇

猜你喜欢

热点阅读