今天遇到个蛋疼的问题 vagrant起需要powershl 偏偏gho的windows7没有powershell,于是研究怎么装,最后发现这种方法比较通用。
https://github.com/PowerShell/PowerShell
Platform | Downloads | How to Install |
---|---|---|
Windows 10 / Server 2016 (x64) | .msi | Instructions |
Windows 8.1 / Server 2012 R2 (x64) | .msi | Instructions |
Windows 7 / Server 2008 R2 (x64) | .msi | Instructions |
Windows 7 (x86) | .msi | Instructions |
Ubuntu 16.04 | .deb | Instructions |
Ubuntu 14.04 | .deb | Instructions |
Debian 8 | .deb | Instructions |
CentOS 7 | .rpm | Instructions |
Red Hat Enterprise Linux 7 | .rpm | Instructions |
OpenSUSE 42.1 | .rpm | Instructions |
Arch Linux | Instructions | |
Many Linux distributions | .AppImage | Instructions |
macOS 10.12 | .pkg | Instructions |
Docker | Instructions | |
Kali Linux | .deb | Instructions |
直接从这里下载 你的版本 并且安装
附加:
如果下来 建议把powershell执行exe文件 你的操作系统path环境变量 这样就能识别了