TỔNG QUAN VỀ ĐỀ TÀI
GIỚI THIỆU
Nano Server có kích thước cài đặt nhỏ hơn 92% so với tùy chọn cài đặt giao diện đồ họa người dùng Windows Server (GUI) Những lợi ích vượt trội này là lý do thuyết phục để bạn bắt đầu sử dụng Nano cho các khối lượng công việc của Windows Server.
Hệ điều hành Bare-metal giúp giảm thiểu việc cập nhật và khởi động lại, vì người dùng phải truy cập vai trò máy chủ từ bên ngoài Nano, dẫn đến bề mặt tấn công an toàn hơn so với GUI Windows Server Nano có kích thước nhỏ gọn, dễ dàng di chuyển giữa các máy chủ, trung tâm dữ liệu và các địa điểm vật lý Nó hỗ trợ các khối lượng công việc phổ biến của Windows Server, bao gồm máy chủ Hyper-V, và được thiết kế để quản lý hoàn toàn từ xa Mặc dù vậy, Nano vẫn cung cấp một giao diện quản lý cục bộ tối thiểu, gọi là "Nano Server Recovery Console", cho phép thực hiện các tác vụ cấu hình ban đầu.
Docker là nền tảng cung cấp công cụ và dịch vụ cho các nhà phát triển và quản trị hệ thống, giúp họ phát triển, thực thi và chạy ứng dụng trong các container Nền tảng này cho phép xây dựng, triển khai và chạy ứng dụng một cách dễ dàng trên môi trường ảo hóa với nguyên tắc "Build once, run anywhere" Thay vì phải thiết lập môi trường chạy cho ứng dụng, người dùng chỉ cần sử dụng Docker Ứng dụng chạy trong container của Docker có thể được sử dụng trên bất kỳ hệ thống nào, từ máy tính xách tay của nhà phát triển đến hệ thống tại chỗ hoặc trên đám mây.
Deploy web, FTP, and DNS server services on Windows Nano Server for efficient management Utilizing Docker allows for independent operation without affecting the current system environment, as it runs in isolated containers This versatile platform supports various operating systems, including Linux, Microsoft Windows, and Apple OS X, making it an ideal choice for developers seeking flexibility and scalability in their server deployments.
IIS, viết tắt của Internet Information Services, là phần mềm tích hợp trong các phiên bản Windows, cung cấp dịch vụ cho máy chủ chạy trên hệ điều hành này Nó giúp phân tán thông tin trên Internet và bao gồm nhiều dịch vụ như Web Server và FTP Server.
Deploying web, FTP, and DNS server services on Windows Nano Server offers a lightweight and efficient solution for managing server tasks Windows Nano Server is designed for cloud-based environments and provides a minimal footprint, enhancing performance and security By setting up these services, users can streamline their operations and improve connectivity, making it an ideal choice for modern IT infrastructures Implementing these services effectively on Windows Nano Server can lead to better resource utilization and simplified management.
FTP, hay Giao thức truyền tập tin, là phương thức phổ biến để trao đổi tập tin qua mạng sử dụng giao thức TCP/IP, như Internet hoặc Intranet Để hoạt động, FTP yêu cầu sự kết nối giữa hai máy tính: một máy chủ và một máy khách.
Mỗi thiết bị kết nối vào mạng Internet đều giao tiếp qua địa chỉ IP (Internet Protocol) Để dễ nhớ và thuận tiện hơn, chúng ta sử dụng tên miền (domain name) để xác định thiết bị Hệ thống tên miền (Domain Name System) giúp chuyển đổi tên miền thành địa chỉ IP, tạo điều kiện thuận lợi cho việc truy cập và sử dụng Internet.
Khi muốn kết nối với các máy tính, người dùng chỉ cần sử dụng tên miền dễ nhớ như www.microsoft.com hay www.ibm.com, thay vì phải nhớ địa chỉ IP phức tạp với dãy số dài.
Trước khi có DNS, người ta sử dụng file Host.txt để lưu trữ thông tin về tên và địa chỉ IP của tất cả các máy trong mạng File này được cài đặt trên mọi máy, giúp chúng có thể truy cập lẫn nhau Tuy nhiên, việc cập nhật file Host.txt trên toàn bộ máy khi có thay đổi về tên host hoặc địa chỉ IP rất phức tạp Để khắc phục vấn đề này, vào năm 1984, Paul Mockpetris từ viện USC’s Information Sciences Institute đã phát triển Hệ thống tên miền (DNS) nhằm quản lý tên miền hiệu quả hơn.
Thông qua tìm hiểu về tổng quan ở chương I, làm cơ sở đề xuất phân tích thiết kế hệ thống sẽ được trình bày trong chương tiếp theo
Deploy web, FTP, and DNS server services on Windows Nano Server for efficient management and streamlined performance Windows Nano Server provides a lightweight environment ideal for running essential server applications By utilizing its capabilities, you can enhance security and reduce resource consumption while ensuring reliable service delivery Setting up these services on Windows Nano Server allows for improved scalability and easier maintenance, making it an optimal choice for modern IT infrastructures.
PHÂN TÍCH THIẾT KẾ HỆ THỐNG
SƠ ĐỒ MẠNG
1 Sơ đồ mạng trên VMWare
2 Sơ đồ mạng trên google Engine
Deploying web, FTP, and DNS server services on Windows Nano Server is a streamlined process that enhances server performance and resource efficiency Windows Nano Server, a lightweight version of Windows Server, is ideal for running cloud applications and microservices By utilizing this server, organizations can achieve faster deployment times and reduced overhead costs Implementing these services allows for improved management and scalability, making it a preferred choice for modern IT environments.
TRIỂN KHAI
TRIỂN KHAI TRÊN VMWare
- Sử dụng VyOS làm router, gồm có 3 network adapter o Network adapter (NAT) dùng để đi internet o Network adapter 2 (192.168.5.1) dùng cho phòng IT o Network apdater 3 (172.16.5.1) dung cho phòng kế toán
- Nanoserver được xem như là 1 server cục bộ
- Các chức năng đã triển khai trên nano server o Web Server (IIS) o DNS Server
To install Windows Nano Server, first mount the Windows Server 2016 ISO file to a physical drive Since the drives of Windows Server 2016 are fixed for use in Hyper-V, you will need to install a separate drive for VMware Mount the file located at C:\Program Files (x86)\VMware\VMware Workstation\windows.iso and run the setup.exe file or execute the command `./setup.exe /a` in the command prompt Next, copy the NanoServerImageGenerator folder from the mounted Windows Server 2016 ISO to a new folder Finally, import the module in PowerShell using the command `Import-Module \NanoServerImageGenerator.psd1`.
To deploy web, FTP, and DNS server services on Windows Nano Server, utilize PowerShell or Windows Terminal Execute the command `New-NanoServerImage -Edition Datacenter -MediaPath G:\ -BasePath \Base -TargetPath \NanoServer\` to create a new Nano Server image This streamlined process allows for efficient server setup tailored for modern applications.
NanoServerTest.vhdx -DeploymentType Guest -ComputerName NanoVM -Storage -Package Microsoft-NanoServer-IIS-
Package, Microsoft-NanoServer-DNS-Package -DriverPath /VMWareTools/Drivers Ở đây TargetPath là nơi lưu file Windows nano server MediaPath là địa chỉ ổ đĩa mà vừa mount file windows server
2016 iso ra Package là các package mà mình cần cài vào Nano Server, ở đây đang cài IIS và DNS (vào ổ đĩa vừa mount > NanoServer > Packages để lấy tên Package
DrivePath is the directory for the mounted VMWare drive After obtaining the vhdx file, it needs to be converted to a vmdk file, as VMWare operates with vmdk files Use the qemu-img tool for this conversion with the command: `./qemu-img.exe convert -p \NanoServer\NanoServer.vhd -O vmdk \NanoServer\NanoServer.vmdk`.
Tiếp đến import file vmdk qua VMWare
Deploy web, FTP, and DNS server services on Windows Nano Server for efficient and lightweight server management Windows Nano Server provides a minimal footprint, making it ideal for cloud-based and containerized applications Setting up these services enhances performance and scalability, ensuring reliable web hosting and data transfer capabilities Optimize your server environment by leveraging the advantages of Windows Nano Server for seamless deployment and management of essential server services.
Deploying web, FTP, and DNS server services on Windows Nano Server provides a lightweight and efficient solution for hosting applications Windows Nano Server's minimal footprint enhances performance and security, making it ideal for cloud environments By configuring these essential services, users can achieve streamlined operations and improved resource management This setup is particularly beneficial for organizations looking to optimize their server infrastructure while maintaining robust functionality.
Deploy web, FTP, and DNS server services on Windows Nano Server to enhance your infrastructure's efficiency and performance Windows Nano Server offers a lightweight solution for running essential server roles, making it an ideal choice for modern cloud environments By utilizing its minimal footprint, you can streamline server management while ensuring robust service delivery Implementing these services on Nano Server not only optimizes resource usage but also improves security and scalability for your applications.
Deploying web, FTP, and DNS server services on Windows Nano Server enables efficient management of lightweight server environments Windows Nano Server is designed for cloud-based applications and microservices, providing a minimal footprint for enhanced performance By leveraging Nano Server for these services, organizations can achieve streamlined operations and improved security Implementing these server services on Windows Nano Server supports modern application development and deployment, making it an ideal choice for businesses seeking to optimize their IT infrastructure.
Deploy web, FTP, and DNS server services on Windows Nano Server for a lightweight and efficient server solution Windows Nano Server is an ideal platform for hosting web applications, managing file transfers, and providing DNS services By utilizing this minimalistic operating system, organizations can enhance performance and reduce resource consumption while maintaining essential server functionalities Implementing these services on Windows Nano Server streamlines server management and optimizes operational efficiency.
Chọn sang BIOS thay vì UEFI
Deploy web, FTP, and DNS server services on Windows Nano Server for efficient and lightweight server management Windows Nano Server is optimized for cloud environments and offers a minimal footprint, making it ideal for hosting web applications and managing FTP services By leveraging Nano Server, you can enhance your infrastructure's performance while simplifying deployment and maintenance Implementing these services on Windows Nano Server allows for streamlined operations and improved resource utilization.
Deploying web, FTP, and DNS server services on Windows Nano Server provides a lightweight and efficient solution for hosting applications Windows Nano Server is designed for cloud environments and offers reduced resource consumption while maintaining robust performance By setting up these services, users can enhance their infrastructure's flexibility and scalability This deployment process ensures a streamlined approach to managing server roles, making it ideal for modern IT operations Embracing Windows Nano Server for these services can lead to improved operational efficiency and easier maintenance.
Deploying web, FTP, and DNS server services on Windows Nano Server is essential for optimizing server performance and resource efficiency Windows Nano Server provides a lightweight, headless environment that is ideal for running cloud applications and microservices By utilizing this platform, administrators can easily set up and manage web services, FTP transfers, and DNS configurations, ensuring reliable and scalable server operations Implementing these services on Windows Nano Server not only enhances security but also streamlines maintenance and updates, making it a preferred choice for modern IT infrastructures.
Deploying web, FTP, and DNS server services on Windows Nano Server offers a lightweight and efficient solution for managing server tasks Windows Nano Server is designed for cloud environments and provides a minimal footprint, making it ideal for modern applications By utilizing Nano Server, organizations can enhance their server performance while reducing resource consumption Implementing these services allows for streamlined web hosting, file transfer capabilities, and reliable domain name resolution, ensuring a robust infrastructure for any business.
Chọn đến file vmdk vừa mới convert
Deploying web, FTP, and DNS server services on Windows Nano Server is a streamlined process that enhances server performance and reduces resource consumption Windows Nano Server, a lightweight version of Windows Server, is ideal for cloud-based applications and microservices By utilizing this platform, businesses can efficiently manage their server infrastructure while ensuring high availability and security Implementing these services on Nano Server allows for quicker deployment times and easier management, making it a preferred choice for modern IT environments.
Mở file vmx trong folder máy ảo VMWare lên
Deploy web, FTP, and DNS server services on Windows Nano Server to enhance your server management capabilities Utilizing Windows Nano Server allows for a lightweight and efficient environment, ideal for hosting web applications and managing file transfers Setting up these services can streamline operations and improve performance, making it a suitable choice for modern server deployments Ensure proper configuration to maximize the benefits of these services on your Nano Server setup.
Sửa card mạng sang vmxnet3
- Cấu hình IP tĩnh cho nanoServer
Deploy web, FTP, and DNS server services on Windows Nano Server to enhance your server management capabilities Windows Nano Server is a lightweight, headless version of Windows Server, designed for cloud applications and microservices By utilizing Nano Server, you can efficiently set up and manage these essential services, ensuring optimal performance and security for your applications This streamlined approach not only saves resources but also simplifies the deployment process, making it an ideal choice for modern server environments.
Setup firewall cho phép ping đến
Inbound Firewall rules > Virtual Machine Monitoring (Echo Request – ICMPv4 – In)
Nhấn F4 để đổi sang trạng thái allow
TRIỂN KHAI TRÊN GOOGLE ENGINE
1 Thông tin về máy ảo của google Engine
- Sử dụng Docker để tạo 1 môi trưởng máy ảo khác
To deploy web, FTP, and DNS server services on Windows Nano Server, start by configuring the security protocol to Tls12 using the command `[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12` Next, register the default PowerShell repository with `Register-PSRepository -Default`, and install the Docker module by executing `Install-Module -Name DockerMsftProvider -Force` After that, use the command `Install-Package -Name docker -ProviderName DockerMsftProvider` to install Docker, followed by a system restart with `Restart-Computer -Force` to complete the setup.
- Pull image từ docker hub về o Docker pull mcr.microsoft.com/windows/nanoserver:10.0.14393.2363 o Docker pull nanoserver/iis-php o Docker pull nanoserver/iis
- Chạy nền container từ image o Docker run -it -d mcr.microsoft.com/windows/nanoserver:10.0.14393.2363 o Docker ps -a Để xem tất cả container đã tạo
- Truy cập vào windows nano server docker o Docker exec -it powershell
Deploying web, FTP, and DNS server services on Windows Nano Server provides a lightweight and efficient solution for server management Windows Nano Server is optimized for cloud environments, making it ideal for hosting applications and services By utilizing this minimalistic server option, organizations can enhance performance and reduce resource consumption while maintaining robust server functionalities Implementing these services allows for streamlined operations and improved scalability in modern IT infrastructures.
To create a basic IIS website, utilize docker-compose for easier container building and management Begin by establishing the following directory structure In the Dockerfile, create a new image by copying the files from the website directory into the virtual machine.
# Metadata indicating an image maintainer.
#LABEL maintainer="ntnguyen.19it5@vku.udn.vn"
# Creates an HTML file and adds content to this file.
To deploy web, FTP, and DNS server services on Windows Nano Server, you can utilize a Docker Compose file structured as follows: ```yamlversion: "3.3"services: iis-basic: container_name: iis-basic build: context: / dockerfile: Dockerfile image: nanoserver/iis-basic ports:```This configuration allows for efficient management of services in a lightweight environment, enhancing performance and resource utilization.
- 80:80 tty: true networks: default: external: name: nat o Build và up image lên: docker-compose up –build -d o Docker ps để xem docker container đã chạy chưa
Deploying web, FTP, and DNS server services on Windows Nano Server offers a lightweight and efficient solution for managing server roles Windows Nano Server is designed for cloud environments and provides a minimal footprint, enhancing performance and security By leveraging this technology, users can easily set up and maintain essential server functions while reducing resource consumption This streamlined approach is ideal for modern applications and services, ensuring quick deployment and management of web, FTP, and DNS services.
- Thêm PHP vào IIS o Tạo cấu trúc thư mục như sau o Ở file Dockerfile có nội dung như sau:
FROM nanoserver/iis-php:latest
# Metadata indicating an image maintainer.
#LABEL maintainer="ntnguyen.19it5@vku.udn.vn"
# Creates an HTML file and adds content to this file.
COPY /website c:/inetpub/wwwroot o Ở file docker-compose có nội dung như sau: version: "3.3" services: iis-php:
Deploy web, FTP, and DNS server services on Windows Nano Server to enhance your server capabilities Utilize the Dockerfile to build your environment with the latest nanoserver/iis-website-php image Ensure proper configuration of ports to facilitate seamless connectivity and performance This setup allows for efficient management and deployment of web applications in a lightweight Windows environment.
- 8080:80 tty: true networks: default: external: name: nat o Ở file index.php
o Build và up image lên: docker-compose up –build -d o Vào localhost:8080/index.php
- Trỏ tên miền về VPS o Sử dụng CloudFlare để quản lý tên miền dễ dàng hơn
Deploying web, FTP, and DNS server services on Windows Nano Server allows for efficient management and operation of web applications With this setup, users can easily access websites via domain names, enhancing accessibility and user experience Utilizing Windows Nano Server ensures a lightweight and optimized environment for hosting essential services, making it an ideal choice for modern server deployments.
http://qtm-nhom05.uknteam.site
http://qtm-nhom05.uknteam.site:8080
Deploying web, FTP, and DNS server services on Windows Nano Server is an efficient way to manage lightweight server environments Windows Nano Server provides a minimal footprint, making it ideal for cloud-based applications and microservices By setting up these services, users can enhance their network capabilities while benefiting from improved security and reduced resource consumption This streamlined approach allows for faster deployment and easier maintenance, ensuring optimal performance for web applications and data transfer.