Chuẩn bị cài đặt máy chủ SQL: Tạo quy tắc tường lửa của Windows, Đĩa logic, Cài đặt .NET Framework 3.5, và tạo tài khoản dịch vụ.
Create Windows Firewall rules for SQL
1. Log in to your SQL server. Nút chuột phải bấm vào Bắt đầu nút và chọn Bảng điều khiển;
2. Mở Tường lửa Windows;
3. Bấm vào Advanced settings;
4. Bấm vào Luật nội bộ và chọn Quy tắc mới;
5. Chọn tùy chọn Hải cảng và nhấp vào Kế tiếp cái nút;
6. Select options UDP, Specific local ports và nhập 1434 và nhấp vào Kế tiếp cái nút. (Default SQL UDP port, allow remote connections to SQL);
7. Leave Cho phép kết nối và nhấp vào Kế tiếp cái nút;
8. Leave check marks by default and click Kế tiếp;
9. Enter the rule name, for an example SQL UDP, và nhấp vào Hoàn thành cái nút;
10. Repeat and select the TCP lựa chọn, Specific local ports, và nhập 1433. (Default SQL TCP port). Cũng, I enter 14331 Và 8080 after the symbol “,” for my future SCCM installation. Nhấp chuột các Kế tiếp cái nút;
11. Repeat, enter the rule name, Ví dụ, SQL TCP, và nhấp vào Hoàn thành cái nút;
12. Check created tules;
Create logical disks
Create logical disks. Early I create Và connect to my SQL VM two “Virtual Disks“. trong bài này, we initialize them and create “Logical disks” in the system.
1. Nút chuột phải on the “Bắt đầu” button and select “Disk Management“;
2. First of all change the “CD-ROM” drive letter from “D" ĐẾN "r“. Nút chuột phải click on CD-ROM and select Change Drive Letter and Paths;
3. Nhấn vào Thay đổi cái nút;
4. Select the drive letter “R” and click the ĐƯỢC RỒI cái nút;
5. In the pop-up window click the Đúng cái nút;
6. Nhấn vào ĐƯỢC RỒI button to apply changes;
7. Nút chuột phải click on the first Disk and select Online;
8. Nút chuột phải click on the first Disk and select initialize Disk;
9. Select option “GPT (GUID Partition Table)” và nhấp vào “ĐƯỢC RỒI" cái nút;
10. Nút chuột phải click on first Disk “Unallocated space” and select “New Simple Volume” (to create new logical disk);
11. Nhấn vào "Kế tiếp" cái nút;
12. Leave size as default and click the “Kế tiếp" cái nút;
13. Assign a drive letter, as an example “D” và nhấp vào “Kế tiếp" cái nút;
14. Set format options:
- File System – leave “NTFS“, if you use “ReFS” – you can’t backup it with “DPM” (Data Protection Manager doesn’t understand ReFS);
- Allocation unit size – I set “64K” because I place on disk a few big files;
- Volume label – set the name for your drive. In my case “SCCM-DATA“.
Nhấn vào "Kế tiếp" cái nút;
15. Check the summary information and click the “Hoàn thành" cái nút;
16. Repeat for the second disk;
17. Open “This PC” and check newly added “Logical Disks”;
Install Net Framework 3.5
You can install it using cmd or GUI. trong bài này, we install “Nền tảng NET 3.5” from GUI.
1. If Server Manager doesn’t start at login – run it. Click on the upper menu “Manage” and select “Add Roles and Features”;
2. Nhấn vào "Kế tiếp" cái nút;
3. Nhấn vào "Kế tiếp" cái nút;
4. Select your target server and click the “Kế tiếp" cái nút;
5. Don’t install any roles, nhấn vào "Kế tiếp" cái nút;
6. Set the check mark on “.NET Framework 3.5 Features” and click the “Kế tiếp" cái nút;
7. Nhấn vào "Cài đặt" cái nút (if you don’t have an internet connection, but insert DVD or *.iso file with operating system installation files – click “Specify an alternate source path” <drive letter>:\nguồnsxs);
8. When the installation is complete click the “Đóng" cái nút;
Create Service Accounts
1. For my SQL & SCCM deployment I create folders:
- On disk “D” (“SCCM-DATA“) – SCCM and sub-folders (Hỗ trợ, Data, Nhật ký);
- On disk “E” (“TEMP“) – SCCM;
You plan and deploy SQL as you wish or by your “Corporate Policies“.
2. Let’s add “Tài khoản dịch vụ” for SQL and SCCM deployment. Nút chuột phải click on the “Bắt đầu” button and select “Computer Management”;
3. Go to “Groups” and open “Quản trị viên“;
4. Nhấn vào "Thêm vào" cái nút;
5. First add the SCCM server (“AD Object Computer“) tài khoản. Kế tiếp, add all SQL service accounts and SCCM service accounts (for client installation); After adding click the “ĐƯỢC RỒI" cái nút;
6. Also you may enable in “Tường lửa Windows” rule to allow ping;
7. And enable more rules (xem ảnh chụp màn hình) for successful SCCM deployment.
8. If you don’t do step “7” you may get the next error when installing SCCM;