陈奇网络工作室

PowerShell学习笔记——PSOnMacOS

系统运输

? PowerShell学习笔记——PS On MacOS?

irememberthatthereisacommandlinetoolonmacosxusingforconnectingtomicrosoftazure.but now,microsoftisdevelopingmacosversionponpowpowow

1. Download the pkg setup file

youcanvisitgithubwebsiteandfindthepowershellrepohere:https://github.com/powershell/powershell,thenscrolldownto " get powet powed 查找“MAC OS 10.11”链接“pkg”链接,thenDownloadwillbill

After finishing your download,findthefileinyourdownloadfolderanddoubleclickittobegininstallation。

ifyouprefercommandlinetooltosetuppowershell,it’sok,here it is :

sudo installer-pkg powershell-6.0.0-alpha.16.pkg-target /

Open a terminal window,copy and paste above command,thenpressenterkeytorun.microsoftprovidesainstallationinstructionhere:33

2. OpenSSL

To follow the instruction,youalsoneedtosetupopensslbecausemostnetworkingfunctionsdorequireopenssltoworkproperly.ontheinststruction scroll down to“OpenSSL”section,click“their instructionstofinishinstallinghomebrew”。

nowyoumustgobacktothemacosinstallationinstructionpageandrunthecommandslistonthepage。

brewinstallopenssl

brewinstallcurl---- with-OpenSSL

Then for security,youneedtopatch.net core’scryptographylibraries :

find~~/. nu get-name system.security.cryptography.native.dylib|xargssudoinstall _ name _ tool-add _ rpath/rpath

find~~/. nu get-name system.net.http.native.dylib|xargssudoinstall _ name _ tool-change/usr/lib/libcurib

3.trypowershellcommandsinmacosterminal

nowyoucanopenaterminaltothisalphaversionofpowershellbytyping“powershell”intheterminalwindowandpressingenterkey,Youe

let’strysomecmdlets。

详情请访问云服务器、域名注册、虚拟主机的问题,请访问西部数码代理商官方网站: www.chenqinet.cn

相关推荐

后台-系统设置-扩展变量-手机广告位-内容页底部广告位3