鍓嶉潰涓绡囨枃绔犳彁鍒颁簡Windows Server 2016 Core鐨勯厤缃紝浠婂ぉ瑕佷粙缁嶇殑鏄浣曟纭畨瑁匰QL Server Express骞朵笖寮鏀1433绔彛杩滅▼璁块棶銆傜敱浜庢湰鏂囩殑閰嶇疆鐜鏄疭erver Core绯诲垪锛岄偅涔堝緢閬楁喚鎵鏈夊浘褰㈡搷浣滃皢浼氬彉寰楀洶闅撅紝鎵浠ョ綉涓婂ぇ閮ㄥ垎閰嶇疆鏂囩珷涓嶅啀閫傜敤锛岃繖閲岃繕鏄富瑕佷互浠嬬粛鍛戒护琛岄厤缃负涓汇
鑷充簬涓轰粈涔堥夋嫨SQL Server Express锛岄鍏堣冻澶熻交閲忥紝鍗犵敤璧勬簮灏忚屼笖瓒冲搴斾粯缁濆ぇ澶氭暟鍦烘櫙锛屼篃鍏嶅幓姝e紡鐗堢殑鑺遍攢锛岃繖鍑犲勾閮ㄧ讲鐨凷QL Server Express 2005鍜2008鐗堟湰涓鐩寸ǔ瀹氳繍琛岋紝鎵浠ュ浜庝竴浜涗俊鎭郴缁熸垨鑰匴eb缃戠珯锛岃交閲忕骇Express鐗堟湰鐨凷QL Server鎵嶆槸浣抽夛紝濂戒笅闈㈣繘鍏ユ鏂囥
棣栧厛闇瑕 涓嬭浇SQL Server Express 锛屾湰鏂囦笅杞界殑鏄疭QL Server 2017 Express Edition锛屼笅杞藉畬鎴愬悗閫氳繃杩滅鎴栬呭鍒跺湪Server Core绯荤粺閲屾墽琛岋紝鐢变簬Server Core浠嶇劧鏀寔鍥惧舰鏄剧ず锛岄偅涔堟墽琛屽畨瑁呭寘鍚庝綘灏嗙湅鍒颁笅闈㈢殑瀹夎鐣岄潰锛屽垏璁颁笉瑕佹ョ潃瀹夎锛屾垜浠厛閫夋嫨 Download Media 銆
鎺ヤ笅鏉ヤ竴姝ラ渶瑕佹敞鎰忕殑鏄垜浠夋嫨鏈绮剧畝鐨勫畨瑁呭寘锛 Express Core 锛岀劧鍚庢敞鎰忎笅闈㈢殑 SELECT DOWNLOAD LOCATION 锛岃繖涓湴鍧鎴戜滑鎺ヤ笅鏉ヤ細鐢ㄥ埌锛岀偣鍑 Download 鎸夐挳涓嬭浇銆
鍛戒护鎻愮ず绗︿笅鍒囨崲鍒板垰鎵嶇殑涓嬭浇鍦板潃锛屾壘鍒版墍涓嬭浇鐨勫畨瑁呭寘锛屾垜浠繖閲屾槸 SQLEXPR_x64_ENU.exe 锛岀洿鎺ユ墽琛岃繖涓猠xe鏂囦欢锛屽脊鍑鸿В鍘嬫枃浠惰矾寰勶紝璁颁綇杩欎釜璺緞鎴栬呬綘鍙﹁瑙e帇鍒板叾浠栦綅缃紝濡備笅鍥炬墍绀猴細
鍒囨崲鍒板垰鎵嶈В鍘嬬殑璺緞锛屾壘鍒拌矾寰勪笅Setup.exe瀹夎鍖咃紝鐒跺悗浣跨敤涓嬮潰鐨勫懡浠よ锛堥渶瑕佷慨鏀癸級鎵ц锛
Setup.exe /QS /ACTION=Install /FEATURES=SQLEngine /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="NT Authority\System" /SQLSYSADMINACCOUNTS="DOMAIN\Administrator" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /SECURITYMODE=SQL /SAPWD="Az123456" /TCPENABLED=1 /IACCEPTSQLSERVERLICENSETERMS=1娉ㄦ剰杩欓噷鐨 /SQLSYSADMINACCOUNTS="DOMAIN\Administrator" 锛 DOMAIN 鏀规垚浣犳墍鍦ㄥ煙鎴栬呰绠楁満鍚嶇О锛 /SAPWD="Az123456" 涓 Az123456 鏄綘鐨勬暟鎹簱鍦ㄦ贩鍚堟ā寮忥紙Mixed Mode锛変笅鐨剆a璐︽埛瀵嗙爜锛屼綘闇瑕佹敼鎴愯嚜宸辫缃殑瀵嗙爜锛屾敞鎰忓瘑鐮佸己搴︺
鎵ц瀹屼笂杩板懡浠ゅ悗灏嗕細寮瑰嚭瀹夎鐣岄潰锛岀瓑瀹夎瀹屾垚鍚庤嚜鍔ㄩ鍑猴紝鑷虫甯﹁繙绋嬭闂殑SQL Server Express宸茬粡瀹夎瀹屾瘯锛岄氳繃 netstat -ano 鍛戒护鎴戜滑鍙互鏌ョ湅1433绔彛鏄惁姝e父寮鍚
褰撶劧鍒拌繖閲屾垜浠繕娌℃湁缁撴潫锛屽洜涓烘垜浠繀椤诲紑鍚槻鐏鍏佽1433绔彛鏁版嵁閫氳繃锛屽惁鍒欏叾浠栬绠楁満鏄棤娉曟甯歌闂拰杩炴帴鏁版嵁搴撶殑锛屽紑鍚殑鏂规硶涔熷緢绠鍗曪紝閫氳繃涓嬮潰鐨勪袱鏉″懡浠ゅ嵆鍙細
netsh firewall set portopening protocol = TCP port = 1433 name = SQLPort mode = ENABLE scope = SUBNET profile = CURRENT netsh advfirewall firewall add rule name = SQLPort dir = in protocol = tcp action = allow localport = 1433 remoteip = localsubnet profile = DOMAIN瀹屾垚涓婅堪涓ゆ潯鍛戒护鍚庯紝鎴戜滑灏卞彲浠ラ氳繃瀹㈡埛绔痶elnet妫鏌1433 TCP绔彛鏄惁寮鏀撅紝骞朵笖浣跨敤Microsoft SQL Server Management Studio杩滅▼杩炴帴Server Core鐨勬暟鎹簱浜嗐
鍙傝冭祫鏂
- Configure the Windows Firewall to Allow SQL Server Access
- Can SQL Express be installed on Server Core?
浠ヤ笂灏辨槸Windows Server 2016 Core瀹夎SQL Server Express骞跺紑鏀1433绔彛鐨勮缁嗗唴瀹癸紝鏇村淇℃伅璇峰叧娉∣D浜戝叾瀹冪浉鍏虫枃绔狅紒