Установка iis на windows server 2022


Последнее изменение:
Tuesday November 21st, 2023

  • База знаний

  • Полное руководство по выделенным серверам

  • Настройка Windows-сервера

  • Как установить и настроить веб-сервер IIS на Windows Server 2022

В данной статье описано, как установить и настроить веб-сервер IIS на Windows Server 2022.

Internet Information Services (IIS) – это веб-сервер, разработанный компанией Microsoft. Он обрабатывает запросы от удаленных клиентских компьютеров и предоставляет соответствующие ответы. IIS предоставляет надежную, легкоуправляемую и масштабируемую инфраструктуру для веб-приложений.

Установка Internet Information Services (IIS)

Для установки Internet Information Services выполните следующие шаги.

1. Откройте Мастер добавления ролей и функций.

Перейдите на панель управления сервером и выберите “Добавить роли и функции”.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 1 1

Прочтите информацию “Прежде чем начать” и нажмите Далее.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 2

2. Выберите тип установки

Выберите установку на основе ролей или функций и продолжите, нажав Далее.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 3

3. Выберите сервер назначения

Выберите хост, на котором вы хотите добавить службы, и нажмите Далее.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 4

4. Выберите роли сервера

Выберите опцию Веб-сервер (IIS) на странице выбора ролей сервера.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 5

После выбора Веб-сервера (IIS) откроется новое окно. Нажмите “Добавить компоненты”.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 6

Убедитесь, что опция Веб-сервер (IIS) отмечена, и продолжите, нажав Далее.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 7

5. Выберите функции

На окне выбора функций просто продолжайте, нажимая Далее, так как на данный момент нам не требуются дополнительные функции.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 8

На странице Роли Веб-сервера (IIS) вы найдете краткое описание Веб-сервера (IIS). Нажмите Далее, чтобы продолжить.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 9

Нажмите Далее, чтобы продолжить.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 10

6. Подтвердите выбор установки

Просмотрите свой выбор установки и затем нажмите кнопку Установить.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 11

После завершения установки нажмите на кнопку Закрыть.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 12

Откройте веб-браузер и убедитесь, что IIS функционирует правильно.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 13

Настройка основного сайта в IIS

Откройте панель управления сервером, перейдите в меню “Инструменты” и выберите Менеджер службы Internet Information Services (IIS).

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 14

Щелкните правой кнопкой мыши на “Default Web Site”, выберите “Управление сайтом” и затем выберите “Дополнительные настройки”.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 15

В разделе “Дополнительные настройки” выберите Физический путь, чтобы указать альтернативный корневой каталог документов.[/vc_column

_text]

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 16

Выберите корневой каталог документов. (C:\website)

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 17

Нажмите ОК, чтобы продолжить.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 18

В Менеджере службы Internet Information Services (IIS) функция “Default Documents” позволяет определить файлы по умолчанию.

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 19

Как установить и настроить веб сервер IIS на Windows Server 2022 install internet information services 20

Создайте файл index.html в корневом каталоге документов и проверьте доступ с помощью веб-браузера.

Was this article helpful?


Like
12

Установка IIS на Windows Server 2022

В статье расскажем, как установить службу Internet Information Services (IIS) на серверы с операционной системой Windows Server 2022. Инструкция подойдет и для ОС Windows Server 2016 и Windows Server 2019. 

IIS (Internet Information Services) — набор сервисов от компании Microsoft для работы веб-сервера и других интернет служб. IIS устанавливается на сервер и работает с протоколами  HTTP/HTTPS, POP3, SMTP, FTP, NNTP. 

Установка IIS на Windows Server 2022

1. Чтобы приступить к установке, зайдите подключитесь к серверу по RDP с правами администратора и зайдите в «Диспетчер серверов» (Server Manager). Если он не запущен, то зайдите в меню «Пуск» — «Диспетчер серверов» (Server Manager)

win_iis1.png

2. Теперь выберите слева «Панель мониторинга» (Dashboard), затем пункт «Добавить роли и компоненты» (Add roles and features).

win-iis2.png

3. Запустится мастер установки IIS, ознакомьтесь с первой страницей и нажмите «Далее» (Next)

win-iis3.png

4. Выберите тип установки «Установка ролей или компонентов» (Role-based or feature-based installation) и нажмите «Далее» (Next)

win-iis4.png

5. Выберите сервер из пула серверов (Select a server from the server pool) и отметьте имя вашего сервера. Нажмите «Далее» (Next)

win_iis5.png

6. На странице выбора ролей сервера поставьте чекбокс напротив «Веб-сервер IIS» (Web Server IIS).

win_iis6.png

7. Оставьте все без изменений в появившемся окне и нажмите «Добавить компоненты» (Add Features)

win_iis7.png

8. Нажмите «Далее» (Next)

win_iis8.png

9. Проверьте список компонентов IIS, выберите нужные или оставьте по умолчанию, нажмите «Далее» (Next)

win-iis9.png

10. Ознакомьтесь с информацией в следующем окне и нажмите «Далее» (Next)

win_iis9.png

11. Просмотрите список ролей веб-сервера IIS, которые будут установлены. Отметьте необходимые или оставьте без изменения и нажмите «Далее» (Next). Обратите внимание, что служба FTP по умолчанию не устанавливается. Если в дальнейшем вам понадобятся новые роли, то вы сможете их добавить без переустановки IIS.

win_iis10.png

12. Нажмите кнопку «Установить» (Install). При необходимости отметьте «Автоматический перезапуск конечного сервера» (Restart the destination server automatically if required), если пункт не выбран, то перезагрузите сервер самостоятельно после окончания установки.

win_iis11.png

13. Дождитесь окончания установки и нажмите «Закрыть»(Close)

win_iis12.png

14. После перезагрузки запустите «Диспетчер серверов» (Server Manager) из меню «Пуск» (Start). Теперь выберите раздел «Средства»(Tools) справа вверху. В списке содержимого появится установленная служба IIS. Запустите её.

win_iis13.png

Возможности сервера IIS

Возможности, доступные вам в службе IIS, перечислены на панели Просмотр возможностей (Features View). Отсюда управляйте возможностями IIS, настраивайте и перезапускайте. Например, настройте SSL-сертификаты.

win_iis14.png

Проверка работы Web-сервера IIS

Сразу после установки IIS по умолчанию создается пустой сайт Default Web Site.

win_iis15.png

Проверьте его работу, набрав на вашем сервере в адресной строке браузера localhost. Загрузится страница, созданная по умолчанию.

win_iis16.png

Файлы этой страницы по умолчанию расположены на диске C:\inetpub\wwwroot

web_iis16.png

Добавление нового сайта на сервер

Добавьте сайты, которые будут обслуживаться этим веб-сервером. Для этого в контекстном меню выберите слева пункт «Сайты» (Sites) и выберите справа «Добавить сайт» (Add Website).

win_iis17.png

Заполните поля формы данными о сайте и нажмите ОК. Пример заполнения данных для сайта plhost-test.ru представлен ниже.

win_iis18.png

Готово. Теперь Вы можете увидеть только что добавленный сайт в списке сайтов.

win_iis19.png

Таким образом мы установили Web-сервер IIS на операционную систему Windows Server 2022, а затем добавили сайт. Данный способ работает только для статичных html-сайтов. Если у вас сайт, созданный на движке одного из популяных CMS, таких как WordPress, Joomla, Drupal и т.д. , то вам нужно будет добавить поддержку PHP, включить необходимые расширения а также установить сервер базы данных SQL. Но это уже тема для отдельной статьи…

This Windows Server 2022 Tutorial covers how to Install and Configure IIS Web Server on Windows Server 2022. Internet Information Services(IIS) is a web server created by Microsoft. IIS web server accepts requests from remote client computers and returns the appropriate response. Web Server(IIS) provides a reliable, manageable, and scalable Web application infrastructure.

Table of Contents

  • Install Internet Information Services (IIS)
  • Configure the default site on IIS

Demo environment

  • Computer Name: server1.test.com
  • Operating System: Windows Server 2022 Datacenter
  • IP Address: 192.168.0.3

Install Internet Information Services (IIS) on Windows Server 2022

Steps for Install Internet Information Services

  1. Open Add roles and features Wizard
  2. Select installation type
  3. Select destination server
  4. Select server roles
  5. Select features
  6. Confirm installation selections

1. Open Add roles and features Wizard

Open the Server Manager dashboard and click Add roles and features.

Install and Configure IIS Web Server on Windows Server 2022

Before you begin, click Next.

Install and Configure IIS Web Server on Windows Server 2022

2. Select installation type

Select Role-based or feature-based installation and click Next.

Install and Configure IIS Web Server on Windows Server 2022

3. Select destination server

Select a Host to which you’d like to add services and click Next.

Install and Configure IIS Web Server on Windows Server 2022

4. Select server roles

Choose the Web Server (IIS) box from the server roles page.

Install and Configure IIS Web Server on Windows Server 2022

As soon as you choose Web Server (IIS) a new window appears. Click Add Features.

Install and Configure IIS Web Server on Windows Server 2022

Please ensure the Web Server (IIS) option is selected and click Next.

Install and Configure IIS Web Server on Windows Server 2022

5. Select features

On the select features console, just click Next because we do not require any extra features at the moment.

Install and Configure IIS Web Server on Windows Server 2022

On the Web Server Role (IIS) console, you can read brief information about the Web Server (IIS). Click Next to continue.

Install and Configure IIS Web Server on Windows Server 2022

Click Next to continue.

Install and Configure IIS Web Server on Windows Server 2022

6. Confirm installation selections

Verify installation selections and click Install.

Install and Configure IIS Web Server on Windows Server 2022

After finishing Installation, click Close.

Install and Configure IIS Web Server on Windows Server 2022

Run Web browser and verify IIS is running normally.

Install and Configure IIS Web Server on Windows Server 2022

Configure the default site on IIS

Open the Server Manager dashboard, click Tools, and select Internet Information Services(IIS) Manager.

Install and Configure IIS Web Server on Windows Server 2022

Right-click on Default Web Site, Click Manage Website, and select Advanced Settings.

Install and Configure IIS Web Server on Windows Server 2022

In Advanced Settings, click on Physical Path to choose a different document root.

Install and Configure IIS Web Server on Windows Server 2022

Select the document root folder. (C:\website)

Install and Configure IIS Web Server on Windows Server 2022

Click OK to continue.

Install and Configure IIS Web Server on Windows Server 2022

The Default documents feature in IIS Manager helps you to specify the default files.

Install and Configure IIS Web Server on Windows Server 2022

Default Documents.

Install and Configure IIS Web Server on Windows Server 2022

Create an index.html file in the document root and Verify access with a Web browser.

Install and Configure IIS Web Server on Windows Server 2022

Windows Server 2022 Tutorials

In this guide from the Windows Tutorials, we want to teach you how to Set up IIS on Windows Server 2022. Windows Server 2022 is the tenth and latest major LTSC release of the Windows Server operating system by Microsoft, as part of the Windows NT family of operating systems.

Internet Information Services (IIS) is a flexible, general-purpose web server from Microsoft that runs on Windows systems to serve requested HTML pages or files.

An IIS web server accepts requests from remote client computers and returns the appropriate response. This basic functionality allows web servers to share and deliver information across local area networks (LAN), such as corporate intranets, and wide area networks (WAN), such as the Internet.

Table of Contents

Steps To Configure and Set up IIS on Windows Server 2022

To Set up IIS on Windows Server 2022 follow the steps below:

Install IIS on Windows Server 2022

1- From your start menu, type server manager and open it.

2- In your server manager dashboard click on the Add roles and features:

Server manager - Set up IIS on Windows Server 2022

3- Click next to continue on the Before you begin window:

server manager-2

4- In the Select installation type window, you should click on the Role-based or feature-based installation and press next to continue:

Installation type window

5- At this step, you need to select the destination server. As you are set up IIS on your local machine, choose Select a server from the server pool and press Next.

On the other hand, you can select another server that you are managing from here or a VHD.

Select destination server for IIS

6- Now on the Select server roles check the box next to the Web Server (IIS):

Server roles ( IIS web server)

6- This will open a new window advising that additional features are required, click the Add Features button to install these as well. Click Next back on the Select Server roles menu when this is complete:

Add feature roles for IIS

7- At this point, you don’t need to install any additional features. So click next to continue.

8- Read the information about the IIS web server role and press next.

9- Here on the Select role services window, you can install additional services for IIS. You can always come back and add more later, so press next to install the defaults:

Role services for IIS

10- In the Confirm installation selections window, review the items that are to be installed and click Install when you’re ready to proceed Set up IIS on Windows Server 2022:

Confirm IIS installation

Note: With the standard IIS installation, no reboot should be required. If you remove the role a reboot will be needed.

11- When your IIS installation is completed, press the close button.

Access IIS Default Page

At this step of Set up IIS on Windows Server 2022, IIS should be running on port 80 by default with the firewall rule HTTP traffic enabled in Windows firewall automatically.

Now you can access the default IIS page by typing your server’s IP address in your web browser:

http://server-ip-address
access default IIS page

If you see this page means that you have set up IIS on your Windows server 2022 correctly.

By installing IIS, a website called Default Web Site is created by default, which can be used to test the health of IIS.

This website is configured to respond to user requests from the HTTP protocol over port 80.

In this guide, you are going to use the default site by getting to know where its document root is and how to host a simple website within it.

To configure the default site in IIS on Windows Server 2022, follow the steps below.

Configure the Default Site in IIS Server 2022

1- Open your server manager, click on the tools option, and choose the Internet Information Services (IIS) Manager.

2- You need to expand the server name:

Expand the server name

3- Then, expose the default site on IIS server 2022:

Expose the default site

You will see the Default website icon:

IIS Default website on Windows Server 2022

The default site on IIS server 2022 stores its files in a particular directory. To display this information, double click on it, choose the Manage Website then, choose the Advanced settings:

Advanced settings of Default website

This will open a window with all of the Default Sites information such as files or Document Root. If you click on “Physical Path”, you can choose a different document root.

Physical path - IIS on Windows server 2019

4- The “Default documents” feature in IIS Server 2022 helps you to specify the default files to return when a client does not request a specific file from the web server. Double-click on it to check the files shown.

Default document for IIS on Windows server 2022

You will see:

display IIs default document on Windows server 2022

5- Now create an index.html file in the document root and check if it gets loaded in IIS server 2022.

To do this, open your notepad and add the following HTML code to it:

<html>
<head>
<title>Welcome To IIS!</title>
</head>
<body>
<h1>Success! It is working correctly!</h1>
</body>
</html>

Then, save it to the below path:

This PC>Local Disk(C):>inetpub>wwwroot

In your web browser type your server’s IP address:

http://server-ip-address

You will see a page like this:

Default website for IIS server 2022

If you see this page means that it loaded successfully.

Set Up IIS on Windows Server 2022 Video

Conclusion

IIS is compared with Apache, which is also a kind of web server that is freely available to everyone. We can simply say that both work the same except that Apache can be used almost on any operating system such as Windows, Linux, and Mac, While the IIS is only available for Windows.

At this point, you have learned to Configure and Set up IIS on Windows Server 2022. Hope you enjoy this article on Orcacore.

Also, you may like these articles:

Install and Configure Apache on Windows Server 2022

Install and Run Nginx on Windows Server 2022

FAQs

What is IIS in Windows Server 2022?

IIS (Internet Information Services) is a web server that hosts websites and web applications.

How do I install IIS on Windows Server 2022?

You can install IIS using the Server Manager by adding the Web Server (IIS) role. The guide steps described above on Set up IIS on Windows Server 2022.

Can I host multiple websites on a single IIS server?

Yes, IIS allows you to host multiple sites using different bindings like IP addresses or ports.

How do I configure SSL on IIS?

You need to install an SSL certificate and configure it in the IIS bindings for secure communication.

This article describes how to install Web Server IIS in Windows Server 2022 using a GUI developed by Microsoft. Internet Information Services aren’t installed by default in the installation of the Microsoft Server 2022 operating system.

To be able to use the web server IIS, we need to install it on the server in question and then configure it. To enable IIS service on a server that is running Microsoft Windows Server 2022, follow the steps below. Visit Microsoft to learn more in detail.

Install Web Server IIS on Server 2022

To install the web server IIS, we are using Windows Server 2022. On the Server Manager window, under the dashboard, click on Add Roles and Features.

Server manager

Click next to continue.

Add roles and features wizard

Select the installation type page; you must click on role-based or feature-based installation, and then press next to continue.

Role-based or feature-based installation

Now you need to choose the destination server. As you are installing web server IIS on your local machine, select a server from the server pool and then press next.

Select a server from the server pole

Now on the Select Server Roles page, choose the box next to the Web IIS Server.

Install web server IIS

On the required feature screen, it says that we have to install the features that are required for the IIS management. Select the Add Features button and continue.

Add features that are required

Click next

Enable web server IIS server roles

Click next to continue.

Add roles and features wizard features

Read the information about the web server role, IIS, and then press next.

Install web server role (IIS)

On the Select role services page, you can enable additional services for IIS and then press Next to install the defaults.

Select role services

At this stage, you can confirm the installation selection before the setup and extract the configuration file. Choose the install button to start the web server IIS installation process.

Confirm installation selection IIS

Once the web server installation has been done, press the close button.

Access IIS on Windows Server 2022

Web server IIS should be running on “port 80” by default with the firewall rule HTTP traffic enabled in Windows firewall automatically.

Jamilhttp://jamiltech.com

A Professional Technology Blog Writer | An energetic professional with more than 20+ years of rich experience in Technology, Planning, Designing, Installation, and Networking.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как поменять назначение клавиши fn на клавиатуре ноутбука windows 10
  • Lego mindstorms for windows
  • Что будет после переустановки windows 10
  • Как отключить обязательную проверку цифровой подписи драйверов в windows 7
  • Как открыть диспетчер задач в windows 11 какие клавиши