日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產(chǎn)品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Debian服務器安裝PowerShell教程(debian服務器安裝)
在Debian服務器上安裝PowerShell,首先更新軟件包列表,然后添加Microsoft的公鑰,最后使用apt-get命令安裝。

安裝前準備

1、確保服務器已經(jīng)安裝了Debian操作系統(tǒng)。

創(chuàng)新互聯(lián)專注于企業(yè)全網(wǎng)營銷推廣、網(wǎng)站重做改版、莊浪網(wǎng)站定制設計、自適應品牌網(wǎng)站建設、H5響應式網(wǎng)站、商城開發(fā)、集團公司官網(wǎng)建設、成都外貿網(wǎng)站建設公司、高端網(wǎng)站制作、響應式網(wǎng)頁設計等建站業(yè)務,價格優(yōu)惠性價比高,為莊浪等各大城市提供網(wǎng)站開發(fā)制作服務。

2、連接到服務器,使用SSH工具(如PuTTY)登錄到服務器。

3、確保服務器具有足夠的磁盤空間和內存資源。

更新系統(tǒng)軟件包

在安裝PowerShell之前,需要先更新系統(tǒng)軟件包,執(zhí)行以下命令:

sudo aptget update
sudo aptget upgrade

安裝PowerShell

1、添加Microsoft PowerShell的官方倉庫:

wget https://packages.microsoft.com/config/debian/9/packagesmicrosoftprod.deb O packagesmicrosoftprod.deb
sudo dpkg i packagesmicrosoftprod.deb

2、再次更新系統(tǒng)軟件包:

sudo aptget update

3、安裝PowerShell:

sudo aptget install powershell

配置PowerShell

1、運行PowerShell:

pwsh

2、按照提示設置PowerShell的配置文件路徑:

$Home\Documents\WindowsPowerShellprofile.ps1

3、編輯配置文件,添加以下內容:

導入模塊和別名設置等自定義內容
ImportModule /usr/share/powershell/Modules/PoshGit/PoshGit.psm1
ImportModule /usr/share/powershell/Modules/PSReadLine/PSReadLine.psm1
SetPSReadLineOption PredictionSource History
SetPSReadLineKeyHandler Key "Tab" Function MenuComplete
SetPSReadLineKeyHandler Key "Ctrl+d" Function ReadLineDeleteCharOrExit
SetPSReadLineKeyHandler Key "Ctrl+z" Function Undo
SetPSReadLineKeyHandler Key "Ctrl+a" Function StartOfLine
SetPSReadLineKeyHandler Key "Ctrl+e" Function EndOfLine
SetPSReadLineKeyHandler Key "Ctrl+b" Function BackwardChar
SetPSReadLineKeyHandler Key "Ctrl+f" Function ForwardChar
SetPSReadLineKeyHandler Key "Alt+f7" Function MenuComplete
SetPSReadLineOption HistoryNoDuplicates true
SetPSReadLineOption BellStyle None
SetPSReadLineOption PredictionSource UserInput, History, CommandKeywords, CommandAliases, FunctionKeywords, ScriptKeywords, Acronyms, HistoryLookupOrder, MatchingCommand, CompleteWord, AutoSuggestionSourceHistory, AutoSuggestionIgnoreCase, AutoSuggestionListView, AutoSuggestionTrimFilter, PotentialCompletionsToDismiss, VimMode, VimEscapeCharacter, VimInsertModeNormal, VimInsertModeVisualBlock, VimInsertModeReplace, VimMapLocalToRemote, VimMapRemoteToLocal, VimMovementCommands, VimNavigationCommands, VimSelectMode, VimSurround, VimVisualMode, VimEnterModeDefault, VimLeaveModeDefault, VimCloseCurrentTab, VimCloseOtherTabs, VimNextTab, VimPreviousTab, VimGoToLastEditLocation, VimRestoreCursorPositionAfterSearch, VimSaveCursorPositionBeforeSearch, VimSwitchToLastEditedFile, VimFindFileUnderCursor, VimFindNextFileUnderCursor, VimFindPrevFileUnderCursor, VimFindFileInProjectUnderCursor, VimFindNextFileInProjectUnderCursor, VimFindPrevFileInProjectUnderCursor, VimFindFileInDirectoryUnderCursor, VimFindNextFileInDirectoryUnderCursor, VimFindPrevFileInDirectoryUnderCursor, VimFindFileInVimPathUnderCursor, VimFindNextFileInVimPathUnderCursor, VimFindPrevFileInVimPathUnderCursor, VimFindFileInGrepPathUnderCursor, VimFindNextFileInGrepPathUnderCursor, VimFindPrevFileInGrepPathUnderCursor, VimFindFileInTagUnderCursor, VimFindNextFileInTagUnderCursor, VimFindPrevFileInTagUnderCursor, VimFindFileInBookmarkUnderCursor, VimFindNextFileInBookmarkUnderCursor, VimFindPrevFileInBookmarkUnderCursor, VimFindFileInRegisterUnderCursor, VimFindNextFileInRegisterUnderCursor, VimFindPrevFileInRegisterUnderCursor, VimUseSystemClipboardForCopyAndPasteEnabled, VimUseSystemClipboardForCutEnabled, VimUseSystemClipboardForPasteEnabled, VimUseSystemClipboardForUndoCutEnabled, VimUseSystemClipboardForUndoCopyEnabled, VimUseSystemClipboardForUndoPasteEnabled, VimUseSystemClipboardForDeleteEnabled, VimUseSystemClipboardForYankEnabled, VimUseSystemClipboardForUndoDeleteEnabled, VimUseSystemClipboardForUndoYankEnabled, VimUseSystemClipboardForChangeEnabled, VimUseSystemClipboardForReplaceEnabled, VimUseSystemClipboardForSubstituteEnabled, VimUseSystemClipboardForTransposeEnabled, VimUseSystemClipboardForUndoSubstituteEnabled, VimUseSystemClipboardForUndoTransposeEnabled, VimUseSystemClipboardForUndoChangeEnabled, VimUseSystemClipboardForUndoReplaceEnabled
source $Profile # 加載配置文件中的自定義設置和模塊等

網(wǎng)站題目:Debian服務器安裝PowerShell教程(debian服務器安裝)
文章路徑:http://www.dlmjj.cn/article/cochocs.html