亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

PowerShell 學習筆記——PS On MacOS

發布時間:2020-07-20 11:41:51 來源:網絡 閱讀:1384 作者:loveunicom 欄目:系統運維

? PowerShell 學習筆記——PS On MacOS ?

I remember that there is a command line tool on Mac OS X using for connecting to Microsoft Azure.  But now, Microsoft is developing MacOS version PowerShell – PowerShell for MacOS v6.0 alpha.  Let’s see it.

1. Download the pkg setup file

You can visit Github website and find the PowerShell repo here: https://github.com/PowerShell/PowerShell, then scroll down to “Get PowerShell” section.  There is a table, find “macos 10.11” line and click “pkg” link, then download will begin.

PowerShell 學習筆記——PS On MacOS

PowerShell 學習筆記——PS On MacOS

PowerShell 學習筆記——PS On MacOS

After finishing your download, find the file in your Download folder and double click it to begin installation.

PowerShell 學習筆記——PS On MacOS

PowerShell 學習筆記——PS On MacOS

If you prefer command line tool to setup PowerShell, it’s OK, here it is:

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

Open a terminal window, copy and paste above command, then press Enter key to run.  Microsoft provides a installation instruction here: https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#macos-1011, read it carefully.

2. OpenSSL

To follow the instruction, you also need to setup OpenSSL because most networking functions do require OpenSSL to work properly.  On the instruction page, scroll down to “OpenSSL” section, click “their instructions” link, follow the instructions to finish installing Homebrew.

PowerShell 學習筆記——PS On MacOS

Now you must go back to the macos installation instruction page and run the commands list on the page.

brew install openssl
brew install curl --with-openssl

Then for security, you need to patch .NET Core’s cryptography libraries:

find ~/.nuget -name System.Security.Cryptography.Native.dylib | xargs sudo install_name_tool -add_rpath /usr/local/opt/openssl/lib
find ~/.nuget -name System.Net.Http.Native.dylib | xargs sudo install_name_tool -change /usr/lib/libcurl.4.dylib /usr/local/opt/curl/lib/libcurl.4.dylib

3. Try PowerShell Commands in MacOS Terminal

Now you can open a terminal to try this alpha version of PowerShell by typing “powershell” in the terminal window and pressing Enter key, you will enter PS enviroment.

PowerShell 學習筆記——PS On MacOS

Let’s try some cmdlets.

PowerShell 學習筆記——PS On MacOSPowerShell 學習筆記——PS On MacOS


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

正阳县| 铅山县| 靖江市| 平罗县| 贵南县| 兰西县| 甘南县| 梁平县| 岳阳县| 隆回县| 阿荣旗| 伊吾县| 分宜县| 武山县| 泾源县| 黑山县| 札达县| 宿松县| 贵阳市| 长海县| 宜丰县| 大姚县| 高陵县| 容城县| 涿鹿县| 海城市| 阿拉善左旗| 凤翔县| 内丘县| 河西区| 兴隆县| 丹凤县| 潢川县| 缙云县| 平安县| 柳州市| 禹州市| 邢台县| 罗定市| 呼伦贝尔市| 肇州县|