Centos 7上面安裝Powershell的方法
powershell開源已經(jīng)有一段時(shí)間了,在technet的blog上面也有簡(jiǎn)單的介紹。

PowerShell 2.0 win2003中文版
- 類型:腳本軟件
- 大小:6.4MB
- 語(yǔ)言:簡(jiǎn)體中文
- 時(shí)間:2012-12-05
PowerShell on Linux and Open Source! | Windows PowerShell
Blog https://blogs.msdn.microsoft.com/powershell/2016/08/18/powershell-on-linux-and-open-source-2/
上面這個(gè)鏈接里面包含豐富的開源powershell的資源供大家學(xué)習(xí)和參考。
下面是在centos 7上面安裝powershell工具。
centos 7的powershell的rpm安裝包的下載地址是:
https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm
把安裝包下載到centos 7上,運(yùn)行下圖的命令進(jìn)行安裝即可,特別簡(jiǎn)單。

安裝完成后,我們可以運(yùn)行g(shù)et-command查看一下Linux上面的powershell目前支持的cmdlet。

然后我們測(cè)試一下命令的執(zhí)行情況,比如write-host命令,用戶體驗(yàn)方面和window版本的完全一致。

相關(guān)文章:
1. centos7緊急修復(fù)模式怎么進(jìn)入?2. Win10系統(tǒng)中使用PowerShell校驗(yàn)文件具體流程介紹3. CentOS7.3怎么安裝?使用DVD ISO鏡像安裝CentOS7.3的方法4. centos7如何快速啟動(dòng)應(yīng)用程序?5. centos7安裝clickhouse并設(shè)置用戶名密碼案例詳解6. Win10使用PowerShelll讓Cortana朗讀小說的操作技巧7. Centos7安裝部署免費(fèi)confluence wiki(知識(shí)庫(kù))詳細(xì)操作步驟8. CentOS7版本系統(tǒng)破解講解9. Centos7下刪除virbr0網(wǎng)卡信息的方法10. Centos7 yum安裝git服務(wù)器

網(wǎng)公網(wǎng)安備