Building a file server in Windows Server 2016

1: Enter the system and add roles and functions in the server manager dashboard.

 2: Next step.

3: Continue to the next step.

4: Next step.

5: Check the Web server (IIS)

6: Add functions.

7: Next step.

8: Next step.

9: Next step.

10: There are no special requirements for role services. Keep the default and next step. I have selected IP and domain restrictions and Windows authentication here. The purpose of adding IP and domain restrictions is to prepare for restricting IP access in the future. Windows authentication means that if you want to access a certain folder, you need to enter a user name and password. Later, I found out what services were missing. Can be added at any time.

11: Installation.

12: Installation successful, close.

13: Open IIS Manager.

14: Add website.

15: The website name can be filled in with the physical path and IP address according to your actual situation. The physical path must be real.

 16: At this time, accessing the web page cannot be opened. We need to set the directory permissions.

17: Double-click the directory to browse.

18: Click Start and browse the directory.

19: Visit the webpage again and you can see the relevant content.

 20: By default, a web.config file will be generated under the physical path, which is c:\test. You can hide this file if you don't want to display it.

21: Refresh the web page again, and there will only be the folder you created.

22: We create two folders under C:\test, one is test and the other is test1. When accessing test, you need to enter the user name and password, but accessing test1 is not required.

23: Create a new username user on the server.

24: Double-click Authentication.

23: Start Windows Authentication. 

24: Share the c:\test\test folder and add user user.

25: Visit the webpage again, click test, and you will be prompted to enter your username and password.

26: Enter the username and password created before and you can enter.

Guess you like

Origin blog.csdn.net/yleihj/article/details/129198920