Squeezing Windows Server mus rau lub zog qis VPS siv Windows Server Core

Squeezing Windows Server mus rau lub zog qis VPS siv Windows Server Core
Vim yog qhov tsis txaus ntseeg ntawm Windows systems, VPS ib puag ncig yog tswj hwm los ntawm lub teeb yuag Linux faib: Mint, Colibri OS, Debian lossis Ubuntu, tsis muaj qhov hnyav desktop ib puag ncig uas tsis tsim nyog rau peb lub hom phiaj. Raws li lawv hais, tsuas yog console, tsuas hardcore! Thiab qhov tseeb, qhov no tsis yog qhov exaggeration tag nrho: tib Debian pib ntawm 256 MB ntawm lub cim xeeb thiab ib qho tseem ceeb nrog lub voj voog ntawm 1 Ghz, uas yog, ntawm yuav luag txhua "stump". Rau kev ua haujlwm yooj yim koj yuav xav tau tsawg kawg 512 MB thiab lub processor ceev me ntsis. Tab sis yuav ua li cas yog tias peb tau hais rau koj tias koj tuaj yeem ua tau zoo ib yam ntawm VPS khiav Windows? Vim li cas ho tsis koj yuav tsum yob tawm lub Windows Server hnyav, uas yuav tsum tau peb mus rau plaub hectares ntawm RAM thiab tsawg kawg yog ob peb cores clocked ntawm 1,4 GHz? Tsuas yog siv Windows Server Core - tshem tawm GUI thiab qee qhov kev pabcuam. Peb mam li tham txog yuav ua li cas ua qhov no hauv kab lus.

Leej twg yog tus Windows Server Core?

Tsis muaj cov ntaub ntawv qhia meej txog dab tsi Windows (server) Core yog txawm nyob rau ntawm lub vev xaib official ntawm Mikes, lossis zoo li, txhua yam yog qhov tsis meej pem qhov ntawd uas koj yuav tsis nkag siab tam sim ntawd, tab sis thawj zaug hais txog hnub rov qab mus rau lub sijhawm ntawm Windows Server 2008. . Qhov tseem ceeb, Windows Core yog qhov ua haujlwm Windows kernel Server (dam ntawd!), "thinner" los ntawm qhov loj ntawm nws tus kheej GUI thiab txog ib nrab ntawm cov kev pabcuam sab.

Lub ntsiab feature ntawm Windows Core yog nws cov khoom siv uas tsis xav tau thiab kev tswj hwm tag nrho ntawm PowerShell.

Yog tias koj mus rau Microsoft lub vev xaib thiab tshawb xyuas cov kev xav tau, tom qab ntawd pib Windows Server 2016/2019 koj yuav xav tau tsawg kawg 2 gigs ntawm RAM thiab tsawg kawg ib tus tub ntxhais nrog lub moos ceev ntawm 1,4 GHz. Tab sis peb txhua tus nkag siab tias nrog kev teeb tsa zoo li no peb tuaj yeem cia siab tias lub kaw lus pib, tab sis yeej tsis yog qhov kev ua haujlwm zoo ntawm peb OS. Nws yog vim li no tias Windows Server feem ntau faib ntau lub cim xeeb thiab tsawg kawg 2 cores / 4 threads los ntawm lub processor, yog tias lawv tsis muab nws nrog lub tshuab kim lub cev ntawm qee qhov Xeon, tsis yog lub tshuab virtual uas pheej yig.

Nyob rau tib lub sijhawm, cov tub ntxhais ntawm lub server nws tus kheej tsuas yog xav tau 512 MB ntawm lub cim xeeb xwb, thiab cov khoom siv ntawm cov txheej txheem uas tau siv los ntawm GUI tsuas yog kos rau ntawm lub vijtsam thiab khaws nws cov kev pabcuam ntau yam tuaj yeem siv rau qee yam tseem ceeb.

Nov yog qhov sib piv ntawm Windows Core cov kev pabcuam txhawb nqa tawm ntawm lub thawv thiab tag nrho Windows Server los ntawm Microsoft lub vev xaib official:

daim ntawv thov
neeg rau zaub mov tseem ceeb
server nrogdesktop kev paub

Hais kom ua
muaj
muaj

Windows PowerShell/Microsoft .NET
muaj
muaj

Perfmon.exe
tsis muaj
muaj

Windbg (GUI)
txhawb
muaj

Resmon.exe
tsis muaj
muaj

Regedit
muaj
muaj

Fsutil.exe
muaj
muaj

Disksnapshot.exe
tsis muaj
muaj

Diskpart.exe
muaj
muaj

Diskmgmt. msc
tsis muaj
muaj

devmgmt.msc
tsis muaj
muaj

Tus thawj tswj hwm neeg rau zaub mov
tsis muaj
muaj

mmc.exe ua
tsis muaj
muaj

Eventvwr
tsis muaj
muaj

Wevtutil (Event queries)
muaj
muaj

Services.msc
tsis muaj
muaj

Control Vaj Huam Sib Luag
tsis muaj
muaj

Windows Update (GUI)
tsis muaj
muaj

lub qhov rais Explorer
tsis muaj
muaj

Taskbar
tsis muaj
muaj

Taskbar ceeb toom
tsis muaj
muaj

Taskmgr
muaj
muaj

Internet Explorer lossis Edge
tsis muaj
muaj

Ua-nyob rau hauv pab system
tsis muaj
muaj

Windows 10 Plhaub
tsis muaj
muaj

Lub qhov rais Media neeg uas ua ntawv
tsis muaj
muaj

PowerShell
muaj
muaj

PowerShell ISE
tsis muaj
muaj

PowerShell IME
muaj
muaj

Mstsc.exe
tsis muaj
muaj

Tej thaj chaw deb Desktop Services
muaj
muaj

Hyper-V Manager
tsis muaj
muaj

Raws li koj tuaj yeem pom, ntau tau raug txiav los ntawm Windows Core. Cov kev pabcuam thiab cov txheej txheem cuam tshuam nrog GUI ntawm lub kaw lus, nrog rau txhua "khoom khib nyiab" uas tsis xav tau ntawm peb lub tshuab virtual console, piv txwv li, Windows Media Player, mus hauv qab riam.

Yuav luag zoo li Linux, tab sis tsis yog nws

Kuv yeej xav sib piv Windows Server Core nrog Linux faib, tab sis qhov tseeb qhov no tsis yog lawm. Yog lawm, cov tshuab no zoo ib yam li kev txo cov peev txheej vim kev tso tseg ntawm GUI thiab ntau cov kev pabcuam sab, tab sis hais txog kev ua haujlwm thiab qee qhov kev sib dhos, qhov no tseem yog Windows, thiab tsis yog Unix system.

Qhov piv txwv yooj yim tshaj plaws yog los ntawm kev tsim lub Linux ntsiav thiab tom qab ntawd txhim kho cov pob khoom thiab cov kev pabcuam, txawm tias lub teeb yuag Linux faib tuaj yeem hloov mus ua ib yam dab tsi hnyav thiab zoo ib yam li Swiss Army riam (ntawm no kuv xav ua ib qho lus tso dag txog Python. thiab ntxig ib daim duab los ntawm koob "Yog hais tias Programming Languages ​​Weapons", tab sis peb yuav tsis). Hauv Windows Core muaj kev ywj pheej tsawg dua, vim tias peb yog, tom qab tag nrho, cuam tshuam nrog Microsoft cov khoom.

Windows Server Core los npaj ua, lub neej ntawd teeb tsa uas tuaj yeem kwv yees los ntawm cov lus saum toj no. Yog tias koj xav tau ib yam dab tsi los ntawm cov npe tsis txhawb nqa, koj yuav tau ntxiv cov ntsiab lus uas ploj lawm hauv online los ntawm lub console. Muaj tseeb, koj yuav tsum tsis txhob hnov ​​​​qab txog Feature ntawm kev thov thiab muaj peev xwm rub tawm cov khoom raws li CAB cov ntaub ntawv, uas tuaj yeem muab ntxiv rau lub rooj sib txoos ua ntej kev teeb tsa. Tab sis tsab ntawv no tsis ua haujlwm yog tias koj twb pom thaum lub sijhawm ua haujlwm uas koj tau ploj lawm ib qho ntawm cov kev pabcuam txiav.

Tab sis qhov txawv ntawm Core version los ntawm tag nrho cov version yog lub peev xwm los hloov kho lub kaw lus thiab ntxiv cov kev pabcuam yam tsis muaj kev tso tseg. Windows Core txhawb nqa kub dov ntawm pob khoom, tsis muaj reboot. Raws li qhov tshwm sim, raws li kev pom zoo: lub tshuab ua haujlwm Windows Core yuav tsum tau rov pib dua ~ 6 zaug tsawg dua li ib qho kev khiav Windows Server, uas yog, ib zaug txhua rau lub hlis, thiab tsis yog ib hlis ib zaug.

Ib qho txiaj ntsig zoo rau cov thawj coj yog tias yog tias lub kaw lus siv tau raws li qhov xav tau - los ntawm lub console, tsis muaj RDP - thiab tsis hloov mus rau qhov thib ob Windows Server, ces nws yuav muaj kev nyab xeeb heev piv rau tag nrho cov version. Tom qab tag nrho, feem ntau ntawm Windows Server vulnerabilities yog vim RDP thiab cov kev ua ntawm cov neeg siv uas, los ntawm no heev RDP, ua ib yam dab tsi uas yuav tsum tsis txhob ua. Nws yog ib yam dab tsi zoo li zaj dab neeg nrog Henry Ford thiab nws tus cwj pwm ntawm cov xim ntawm lub tsheb: "Txhua tus neeg siv khoom tuaj yeem muaj lub tsheb pleev xim rau xim uas nws xav tau ntev npaum li nws yog. dub" Nws zoo ib yam nrog lub kaw lus: tus neeg siv tuaj yeem sib txuas lus nrog lub kaw lus hauv txhua txoj kev, qhov tseem ceeb yog nws ua nws los ntawm cov console.

Nruab thiab tswj Windows Server 2019 Core

Peb tau hais ua ntej tias Windows Core yog qhov tseem ceeb Windows Server yam tsis muaj GUI wrapper. Ntawd yog, koj tuaj yeem siv yuav luag txhua qhov version ntawm Windows Server raws li cov qauv tseem ceeb, uas yog, tso tseg GUI. Rau cov khoom lag luam hauv Windows Server 2019 tsev neeg, qhov no yog 3 tawm ntawm 4 server tsim: hom tseem ceeb muaj rau Windows Server 2019 Standard Edition, Windows Server 2019 Datacenter thiab Hyper-V Server 2019, uas yog, tsuas yog Windows Server 2019 Qhov Tseem Ceeb tsis suav nrog los ntawm daim ntawv no.

Hauv qhov no, koj tsis tas yuav nrhiav Windows Server Core installation pob. Nyob rau hauv tus txheej txheem Microsoft installer, cov tub ntxhais version yog muab los ntawm lub neej ntawd, thaum lub GUI version yuav tsum tau xaiv manually:

Squeezing Windows Server mus rau lub zog qis VPS siv Windows Server Core
Qhov tseeb, muaj ntau txoj hauv kev los tswj cov kab ke dua li qhov hais txog PowerShell, uas yog muab los ntawm cov chaw tsim khoom los ntawm lub neej ntawd. Koj tuaj yeem tswj hwm lub tshuab virtual ntawm Windows Server Core tsawg kawg tsib txoj hauv kev:

  • Chaw taws teeb PowerShell;
  • Chaw Taws Teeb Tswj Cov Cuab Yeej (RSAT);
  • Windows Admin Center;
  • Sconfig;
  • Tus thawj tswj neeg rau zaub mov.

Thawj peb txoj haujlwm yog qhov txaus siab tshaj plaws: tus qauv PowerShell, RSAT thiab Windows Admin Center. Txawm li cas los xij, nws yog ib qho tseem ceeb kom nkag siab tias thaum peb tau txais cov txiaj ntsig ntawm ib qho ntawm cov cuab yeej, peb kuj tau txais cov kev txwv nws txwv.

Peb yuav tsis piav txog lub peev xwm ntawm lub console; PowerShell yog PowerShell, nrog nws cov txiaj ntsig pom tseeb thiab qhov tsis zoo. Nrog RSAT thiab WAC txhua yam yog qhov nyuaj me ntsis. 

WAC muab rau koj nkag mus rau cov kev tswj hwm tseem ceeb xws li kho cov npe thiab tswj cov disks thiab cov khoom siv. RSAT hauv thawj rooj plaub tsuas yog ua haujlwm hauv hom saib thiab yuav tsis tso cai rau koj hloov pauv, thiab tswj hwm cov disks thiab lub cev cov cuab yeej siv chaw taws teeb tswj hwm cov cuab yeej yuav tsum muaj GUI, uas tsis yog hauv peb rooj plaub. Feem ntau, RSAT tsis tuaj yeem ua haujlwm nrog cov ntaub ntawv thiab, raws li, hloov tshiab, kev teeb tsa / tshem tawm cov kev pab cuam hauv kev kho cov npe.

▍ Kev tswj hwm qhov system

 

WAC
RSAT

Component Management
Yog
Yog

Registry editor
Yog
Tsis

Network tswj
Yog
Yog

Event Viewer
Yog
Yog

Shared folders
Yog
Yog

Kev tswj hwm disk
Yog
Tsuas yog rau cov servers nrog GUI

Teem caij ua haujlwm
Yog
Yog

Kev tswj cov cuab yeej
Yog
Tsuas yog rau cov servers nrog GUI

Tswj ntaub ntawv
Yog
Tsis

kev tswj tus neeg siv
Yog
Yog

Pawg tswj hwm
Yog
Yog

Kev tswj xyuas daim ntawv pov thawj
Yog
Yog

Tshiab
Yog
Tsis

Uninstalling cov kev pab cuam
Yog
Tsis

System Monitor
Yog
Yog

Ntawm qhov tod tes, RSAT muab rau peb ua tiav kev tswj hwm lub luag haujlwm ntawm lub tshuab, thaum Windows Admin Center tuaj yeem ua tsis muaj dab tsi hauv qhov no. Nov yog qhov kev sib piv ntawm cov peev txheej ntawm RSAT thiab WAC hauv qhov no, kom pom tseeb:

▍ Kev tswj hwm lub luag haujlwm

 

WAC
RSAT

Advanced Thread Protection
PREVIEW
Tsis

Qhov Rais Tawm Sab Nraud
PREVIEW
Yog

Ntim
PREVIEW
Yog

AD Administration Center
PREVIEW
Yog

AD Domain thiab Trusts
Tsis
Yog

AD cov chaw thiab cov kev pabcuam
Tsis
Yog

DHCP
PREVIEW
Yog

DNS
PREVIEW
Yog

DFS Manager
Tsis
Yog

GPO Manager
Tsis
Yog

IIS Manager
Tsis
Yog

Ntawd yog, nws twb paub meej tias yog tias peb tso tseg GUI thiab PowerShell hauv kev pom zoo ntawm lwm yam kev tswj hwm, peb yuav tsis tuaj yeem tawm mus nrog kev siv qee yam ntawm cov cuab yeej mono: rau kev tswj hwm tag nrho ntawm txhua sab, peb yuav xav tau tsawg kawg. ua ke ntawm RSAT thiab WAC.

Txawm li cas los xij, koj yuav tsum nco ntsoov tias koj yuav tau them 150-180 megabytes ntawm RAM siv WAC. Thaum txuas nrog, Windows Admin Center tsim 3-4 ntu ntawm lub server sab, uas tsis raug tua txawm tias lub cuab yeej raug txiav tawm ntawm lub tshuab virtual. WAC kuj tsis ua haujlwm nrog cov laus dua ntawm PowerShell, yog li koj yuav xav tau tsawg kawg PowerShell 5.0. Tag nrho cov no mus tawm tsam peb lub tswv yim ntawm austerity, tab sis koj yuav tsum tau them nyiaj rau kev nplij siab. Hauv peb qhov xwm txheej - RAM.

Lwm qhov kev xaiv rau kev tswj hwm Server Core yog los nruab GUI siv cov cuab yeej thib peb, kom tsis txhob rub ib ncig ntawm cov khib nyiab uas tuaj nrog lub interface hauv kev sib sau ua ke.

Hauv qhov no, peb muaj ob txoj kev xaiv: yob tawm tus thawj Explorer mus rau lub kaw lus lossis siv Explorer ++. Raws li lwm txoj hauv kev tom kawg, txhua tus neeg saib xyuas cov ntaub ntawv tsim nyog: Total Commander, FAR Manager, Double Commander, thiab lwm yam. Qhov tom kawg yog qhov zoo dua yog tias txuag RAM yog qhov tseem ceeb rau koj. Koj tuaj yeem ntxiv Explorer ++ lossis lwm tus neeg saib xyuas cov ntaub ntawv los ntawm kev tsim lub network nplaub tshev thiab tso tawm los ntawm lub console lossis lub sijhawm teem sijhawm.

Txhim kho qhov ua tiav Explorer yuav muab sijhawm ntau rau peb ntawm kev ua haujlwm nrog software nruab nrog UI. Rau qhov no peb yuav tau tiv tauj rau Server Core App Compatibility Feature on Demand (FOD) uas yuav xa rov qab MMC, Eventvwr, PerfMon, Resmon, Explorer.exe thiab txawm Powershell ISE rau lub kaw lus. Txawm li cas los xij, peb yuav tau them rau qhov no, ib yam li WAC: peb yuav tsis rov qab poob txog 150-200 megabytes ntawm RAM, uas yuav tsis muaj kev cia siab gobbled los ntawm explorer.exe thiab lwm yam kev pabcuam. Txawm hais tias tsis muaj cov neeg siv nquag ntawm lub tshuab.

Squeezing Windows Server mus rau lub zog qis VPS siv Windows Server Core
Squeezing Windows Server mus rau lub zog qis VPS siv Windows Server Core
Qhov no yog dab tsi nco noj los ntawm lub kaw lus zoo li ntawm cov cav tov nrog thiab tsis muaj cov pob Explorer haiv neeg.

Cov lus nug tshwm sim ntawm no: vim li cas txhua qhov kev seev cev no nrog PowerShell, FOD, cov tswj hwm cov ntaub ntawv, yog tias ib kauj ruam sab laug lossis sab xis ua rau nce RAM noj? Vim li cas smear koj tus kheej nrog ib pawg ntawm cov cuab yeej thiab sib tsoo los ntawm ib sab mus rau sab kom ntseeg tau tias kev ua haujlwm zoo ntawm Windows Server Core, thaum koj tuaj yeem rub tawm Windows Server 2016/2019 thiab nyob zoo li tus txiv neej dawb?

Muaj ntau qhov laj thawj los siv Server Core. Ua ntej: tam sim no nco noj yog yuav luag ib nrab ntawd. Yog tias koj nco qab, tus mob no yog lub hauv paus ntawm peb tsab xov xwm thaum pib. Rau kev sib piv, ntawm no yog lub cim xeeb noj ntawm Windows Server 2019, piv nrog cov screenshots saum toj no:

Squeezing Windows Server mus rau lub zog qis VPS siv Windows Server Core
Thiab yog li, 1146 MB ntawm lub cim xeeb noj tsis yog 655 MB ntawm Core. 

Piv txwv tias koj tsis xav tau WAC thiab yuav siv Explorer ++ hloov qhov qub Explorer, ces koj koj tseem yuav yeej yuav luag ib nrab hectar ntawm txhua lub tshuab virtual khiav Windows Server. Yog tias tsuas muaj ib lub tshuab virtual xwb, qhov nce yog qhov tsis tseem ceeb, tab sis yog tias muaj tsib ntawm lawv? Qhov no yog qhov uas muaj GUI tseem ceeb, tshwj xeeb tshaj yog tias koj tsis xav tau. 

Qhov thib ob, txhua qhov kev seev cev nyob ib puag ncig Windows Server Core yuav tsis coj koj los tawm tsam qhov teeb meem tseem ceeb ntawm kev khiav haujlwm Windows Server - RDP thiab nws txoj kev ruaj ntseg (ntau dua, nws tsis ua tiav). Windows Core, txawm tias coated nrog FOD, RSAT thiab WAC, tseem yog tus neeg rau zaub mov tsis muaj RDP, uas yog, nws tsis raug rau 95% ntawm kev tawm tsam uas twb muaj lawm.

Tseem tshuav

Feem ntau, Windows Core tsuas yog me ntsis fatter dua li cov khoom lag luam Linux faib, tab sis nws ua haujlwm ntau dua. Yog tias koj xav tau tso tseg cov peev txheej thiab npaj ua haujlwm nrog lub console, WAC thiab RSAT, thiab siv cov tswj hwm cov ntaub ntawv es tsis txhob siv GUI tag nrho, ces Core yog qhov tsim nyog them rau. Ntxiv mus, nrog rau nws koj yuav muaj peev xwm zam kom tsis txhob them nyiaj ntxiv rau lub qhov rais puv puv, thiab siv cov nyiaj khaws tseg rau kev kho dua tshiab koj li. VPS, ntxiv muaj, piv txwv li, RAM. Txhawm rau kom yooj yim, peb tau ntxiv Windows Server Core rau peb kiab khw.

Squeezing Windows Server mus rau lub zog qis VPS siv Windows Server Core

Tau qhov twg los: www.hab.com

Ntxiv ib saib