咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

Centos 7上面安装Powershell

2018-11-16 08:48:46 4375次

powershell开源已经有一段时间了,在technet的blog上面也有简单的介绍。

PowerShell on Linux and Open Source! | Windows PowerShell Bloghttps://www.landui.com/powershell/2016/08/18/powershell-on-linux-and-open-source-2/

上面这个链接里面包含丰富的开源powershell的资源供大家学习和参考。

下面是在centos 7上面安装powershell工具。

centos 7的powershell的rpm安装包的下载地址是:

https://www.landui.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm

把安装包下载到centos 7上,运行下图的命令进行安装即可,特别简单。

image.png
安装完成后,我们可以运行get-command查看一下Linux上面的powershell目前支持的cmdlet。
image.png
然后我们测试一下命令的执行情况,比如write-host命令,用户体验方面和window版本的完全一致。
image.png

首页
最新活动
个人中心