wordpress建企业网站教程,公司邮箱域名怎么起,网络营销论文题目,在线网站建设平台哪个好linux 安装 powershellIntropowershell 已经推出了一个 Powershell Core#xff0c; 版本号对应 Powershell 6.x#xff0c;可以跨平台#xff0c;支持 Linux 和 mac. 这使得对于熟练使用 Powershell 进行开发运维的一些开发者来说无疑是个福音。PowerShell 和 PowerShell C… linux 安装 powershellIntropowershell 已经推出了一个 Powershell Core 版本号对应 Powershell 6.x可以跨平台支持 Linux 和 mac. 这使得对于熟练使用 Powershell 进行开发运维的一些开发者来说无疑是个福音。PowerShell 和 PowerShell Core那Windows PowerShell与PowerShell Core 6.0又有什么区别呢主要几个区别如下Windows PowerShell是基于.NET Framework的所以它也只能在Windows中使用。 PowerShell Core 6.0发布时Windows PowerShell 最新的版本在5.*但PowerShell Core 6.0 可不是Windows PowerShell的升级版本。PowerShell Core 6.0因为它的跨平台自然不仅可以在 Windows 上运行也可以在其它平台如macOS与Linux上运行因为它是基于.NET Core基础之上的。Windows PowerShell在 Windows 中的执行文件为powershell.exe而PowerShell Core 6.0在Windows中的执行文件是pwsh.exe在 macOS 和 Linux 中的执行文件是 pwshPowerShell Core 平台支持情况PowerShell 现在官方支持 macOS 和 Linux包括Windows 7、8.1 和 10Windows Server 2008 R2、2012 R2、2016Windows Server 半年频道Ubuntu 14.04、16.04 和 17.04Debian 8.7 和 9CentOS 7Red Hat Enterprise Linux 7OpenSUSE 42.2Fedora 25、26macOS 10.12我们社区也为以下平台提供包但是它们不受正式支持Arch LinuxKali LinuxAppImage可在多个 Linux 平台上运行我们还对以下平台提供试验版本不受支持ARM32/ARM64 上的 WindowsRaspbian (Stretch)在 Linux上安装 PowerShell这里以 Centos 为例介绍如何安装 PowerShell其他 Linux 系统可以参考这里的文档这里有两种方式可以安装注册微软的镜像源推荐# Register the Microsoft RedHat repositorycurl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo# Install PowerShellsudo yum install -y powershell直接下载文件安装sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.1.0/powershell-6.1.0-1.rhel.7.x86_64.rpm安装完成之后可以直接执行 pwsh 就可以进入 powershell 了如果可以正常进入则证明安装成功了。卸载sudo yum remove powershellReferencehttps://docs.microsoft.com/zh-cn/powershell/scripting/whats-new/what-s-new-in-powershell-core-60?viewpowershell-6https://docs.microsoft.com/zh-cn/powershell/scripting/setup/installing-powershell-core-on-linux?viewpowershell-6#centos-7ContactContact me: weihanlioutlook.com