Preparations

In this guide, we will set up a file server running on Nginx on Linux.

Step 1: Set up a server with the following OS and software:

Any version within the support period is supported. This guide takes CentOS 7 as an example.

  • CentOS 7 (64-bit)

  • Nginx

    The next section Installing Nginx has detailed installation instructions.

Step 2: Configure the CentOS user account: you can either use the root account or create a new account with administrative privileges.

Step 3: Set up a firewall on the server and make sure the firewall allows the port (the HTTP port is 80 in this guide) to go through.

Step 4: Make sure the server can connect to Internet during the installation of Nginx.