Qu'est-ce qui détermine si un PC peut ou non être un serveur Web?

Table des matières:

Qu'est-ce qui détermine si un PC peut ou non être un serveur Web?
Qu'est-ce qui détermine si un PC peut ou non être un serveur Web?

Vidéo: Qu'est-ce qui détermine si un PC peut ou non être un serveur Web?

Vidéo: Qu'est-ce qui détermine si un PC peut ou non être un serveur Web?
Vidéo: Comment utiliser la RAM virtuelle sous Windows 10 - YouTube 2024, Avril
Anonim
Si vous envisagez de configurer un serveur Web, avez-vous besoin d'un ordinateur spécialement conçu à cet effet ou pouvez-vous utiliser un type d'ordinateur plus courant? L’article d’aujourd’hui sur le SuperUser Q & R répond aux questions d’un lecteur curieux.
Si vous envisagez de configurer un serveur Web, avez-vous besoin d'un ordinateur spécialement conçu à cet effet ou pouvez-vous utiliser un type d'ordinateur plus courant? L’article d’aujourd’hui sur le SuperUser Q & R répond aux questions d’un lecteur curieux.

La séance de questions et réponses d’aujourd’hui nous est offerte par SuperUser, une sous-division de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.

La question

Le lecteur superutilisateur VincentTheonardo veut savoir ce qui détermine si un PC peut ou non être un serveur Web:

I have some questions about using a computer as a web server. Why can certain computers act as a web server and what features make them able to do so? Are there any cases where a computer is unable to act as a web server?

Qu'est-ce qui détermine si un PC peut ou non être un serveur Web?

La réponse

Le contributeur SuperUser, davidgo, a la solution pour nous:

Pretty much any computer can be used as a web server, provided it can connect to a network and run web server software. Since a web server can be quite simple and there are free and open source web servers available, in practice, any device can act as a web server.

The bigger problem is the networking side. In order for a system to act as a server, other machines need to be able to access it. If it is just for use in a LAN setup, there are no concerns. However, if it is for use with the wider Internet, then data needs to be routed to it. This requires either a static IP address associated with the server (or port-forwarded through a router) or an external service which can map a domain name/subdomain to a changing dynamic IP address.

For what it is worth, you can buy $10 computers that are capable of acting as a basic web server. Of course, while any device can act as a web server, the functionality of websites can vary hugely, and a cheap device (or slow connection) may not be able to keep up with the demand depending on what the specific website is.

Note that everything above talks about web servers, but the same can be said for pretty much any type of server.

Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.

Crédit d'image: Mike Shelby (Flickr)

Conseillé: