How To Install IIS In Windows Server 2016 - RootUsers
Có thể bạn quan tâm
Guides, tutorials, reviews and news for System Administrators.
How To Install IIS In Windows Server 2016
Posted by Jarrod Farncomb on August 24, 2016 Leave a comment (17) Go to commentsHere we’re going to show you how to install the Internet Information Services (IIS) web server version 10.0 in Microsoft’s Windows Server 2016 operating system.
This can be done both with PowerShell or through the GUI, we’ll cover both methods here.
Install IIS With PowerShell
If you don’t have the GUI installed or just want to use the PowerShell command line interface (CLI) instead, follow these steps. This method is a lot faster than going through all of the GUI options.
- Open PowerShell with administrative privileges and run the Install-WindowsFeature cmdlet as shown below. Install-WindowsFeature -name Web-Server -IncludeManagementTools
Here we include the management tools so that you can manage IIS on this server, as these are generally installed when using the GUI, making this PowerShell command equivalent with the GUI method below. If you do not plan on managing IIS through this server then you may prefer to not include this option.
- Once the installation has succeeded, you’ll be returned to the PowerShell prompt. At this point IIS should be running on port 80 by default with the firewall rule “World Wide Web Services (HTTP Traffic-In)” enabled in Windows firewall automatically.
- We can perform a simple test by opening up a web browser and browsing to the server that we have installed IIS on. You should see the default IIS page.
Install IIS Through GUI
If your server has the graphical user interface component installed you can also install IIS by following these steps.
- Open Server Manager, this can be found in the start menu. If it’s not there simply type “Server Manager” with the start menu open and it should be found in the search.
- Click the “Add roles and features” text.
- On the “Before you begin” window, simply click the Next button.
- On the “Select installation type” window, leave “Role-based or feature-based installation” selected and click Next.
- As we’re installing to our local machine, leave “Select a server from the server pool” with the current machine selected and click Next. Alternatively you can select another server that you are managing from here, or a VHD.
- From the “Select server roles” window, check the box next to “Web Server (IIS)”. Doing this may open up a new window advising that additional features are required, simply click the “Add Features” button to install these as well. Click Next back on the Select server roles menu once this is complete.
- We will not be installing any additional features at this stage, so simply click Next on the “Select features” window.
- Click Next on the “Web Server Role (IIS)” window after reading the information provided.
- At this point on the “Select role services” window you can install additional services for IIS if required. You don’t have to worry about this now as you can always come back and add more later, so just click Next for now to install the defaults.
- Finally on the “Confirm installation selections” window , review the items that are to be installed and click Install when you’re ready to proceed with installing the IIS web server.
No reboot should be required with a standard IIS installation, however if you remove the role a reboot will be needed.
- Once the installation has succeeded, click the close button. At this point IIS should be running on port 80 by default with the firewall rule “World Wide Web Services (HTTP Traffic-In)” enabled in Windows firewall automatically.
- We can perform a simple test by opening up a web browser and browsing to the server that we have installed IIS on. You should see the default IIS page.
As you can hopefully see, it’s quite a lot faster to use PowerShell to perform the same task.
Summary
As shown we can easily install the IIS web server in Windows Server 2016 with both the PowerShell command line or the graphical user interface.
Share this:
- Click to share on Facebook (Opens in new window)
- Click to share on Twitter (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to share on Tumblr (Opens in new window)
- Click to share on Reddit (Opens in new window)
- Click to share on Pinterest (Opens in new window)
- Click to share on Pocket (Opens in new window)
- Click to email a link to a friend (Opens in new window)
Related
How To, WindowsIIS, Microsoft, Web Server, Windows← How To Add A Nessus Scanner To SecurityCenter Using CertificatesHow To Install PowerShell On Linux →Leave a comment ?17 Comments.
- Dougal August 30, 2017 at 11:41 am
Perfect instructions thank you.
Reply - Phil Gardocki August 31, 2017 at 6:41 am
One minor edit. Do not use PowerShell x86.
Reply- bgibson135 June 28, 2018 at 3:09 am
I was getting some errors in running a script and saw your note not to used PS x86. I switched to ISE and it corrected the problem.
Reply
- bgibson135 June 28, 2018 at 3:09 am
- Thilak October 18, 2017 at 9:13 pm
Thank you for making it really simple.
Reply - Magheswari November 24, 2017 at 10:58 pm
How to check the updates related to IIS in windows server 2016
Reply - Terry February 1, 2018 at 1:50 am
Sweet thanks for the help
Reply - tharindu April 2, 2018 at 6:54 pm
Very helpful. Thank you
Reply - Claudio Maia April 18, 2018 at 3:58 am
Excellent explanation
Reply - RalfM August 10, 2018 at 6:16 pm
Hi,
one question: What can i do if IIS Express is installed, but i need the “real” IIS instead?
I thought it will install the normal IIS, if i go through the guy – unfortunately, instead IIS Express is installed :-(
Regards, Ralf
Reply- Jarrod August 12, 2018 at 3:46 pm
Honestly not too sure, is Express needed? You could try uninstall it then add the IIS role, assuming you can’t just add the full IIS role on top of the existing express.
Reply
- Jarrod August 12, 2018 at 3:46 pm
- Peter March 2, 2019 at 12:23 am
Hi Jarrod,
Thank You for making this visually useful and simple guide ;)
Reply- Jarrod March 2, 2019 at 9:20 am
No problem Peter!
Reply
- Jarrod March 2, 2019 at 9:20 am
- liz March 13, 2019 at 2:05 am
Great explanation. Thank you!
Reply - Jeff April 30, 2019 at 3:32 am
As a documentation obsessive, this was great! Appropriate and complete illustrations and each pop-up accounted for with a response. Thanks!
Reply - Ochiro June 17, 2019 at 12:32 pm
How can I install web IIS features without an internet connection?
Reply - Mark Dininio June 20, 2019 at 11:30 pm
Fantastic instructions. Thanks!
Reply - Mahesh May 4, 2021 at 2:22 pm
Hi, I am trying to ingest IIS logs to ELK for monitoring, when IIS is down for few min need to get an alert. Could you help me how to achieve this.
Reply
Leave a Comment Cancel reply
NOTE - You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
NAME
Website URL
Notify me of follow-up comments by email.
Notify me of new posts by email.
Facebook Follow me on twitter. RSS FeedSubscribe
Receive new post notifications by email for free! Unsubscribe any time.
Email Address
Subscribe
Recent Posts
- How To Enable Ping In Windows Server 2022 Firewall
- How To Enable Remote Desktop In Windows Server 2022
- How To Install IIS In Windows Server 2022
- How To Enable Telnet Client in Windows Server 2022
- How To Fix TP-Link TL-SX1008 Switch Fan Noise
Categories
- Command Examples
- Exam Guides
- How To
- Linux
- Security
- Technology
- Uncategorized
- Windows
- XenServer
Copyright © 2024 RootUsers | Privacy Policy | Terms and Conditions
↑ TopTừ khóa » Cài đặt Iis Trên Windows Server 2016
-
Cách Cài đặt Và Sử Dụng IIS Trên Windows Server 2019
-
Thủ Thuật Cài đặt IIS Trên Windows Server 2016 / VPS Với PowerShell
-
Hướng Dẫn Cài Đặt IIS Trên Windows Server 2019 - ODS
-
Hướng Dẫn Cài đặt IIS Trên Windows Server 2012 - Tenten
-
Enabling IIS And Required IIS Components On Windows Server 2016 ...
-
Cách Cài đặt Và Sử Dụng IIS Trên Windows Server 2019 - Trường Tín
-
How To: Install And Configure Internet Information Services For ...
-
Install The Web Server WEB1 | Microsoft Docs
-
Triển Khai Dịch Vụ Web Với IIS Trên Windows Server - EngISV
-
Cách Cài đặt Dịch Vụ Thông Tin Internet (IIS) Trên Windows
-
Triển Khai Dịch Vụ Web Server Với IIS Trên Windows 2016 - YouTube
-
Cài đặt & Cấu Hình IIS Web Server Trên Windows Server 2019
-
Install And Configure IIS 8 On Microsoft Windows Server 2012/2012 ...
-
Hướng Dẫn Cài đặt SSL Cho IIS 8/ IIS 10 Trên Windows Server 2012