In what languages do servers such as apache and nginx work?

Asked 2 years ago, Updated 2 years ago, 36 views

I'm a beginner in programming.

How do you make apache and nginx?
It's written in some language because it's moving on the computer, right?

I'm wondering if it's made in fast languages like C and Java.

What language are these things usually made in, including not only web servers but also mail servers?
I think it depends on the size and requirement, but please let me know.

linux

2022-09-29 22:04

2 Answers

It's really fast to download the source and see what's inside.

For example, Apache is

http://httpd.apache.org/download.cgi

for nginx

http://nginx.org/en/download.html

You can download a complete set of sources from the .Both are written in C.

For example, Docker is written in Go language if it is written outside of C.


2022-09-29 22:04

Socket communications projects are mostly written in C language.
This is because almost all Unix subspecies (Linux, FreeBSD, HP-UX, etc.) have almost perfect compatibility code.
It is also easy to port to Windows.

Speed is often the top priority, and for that reason language C is used.

Speed is a top priority because, for example, if you need 100 servers and 120 servers because of software, it costs 20 servers, so no one will use it.

Conversely, any language is used for a single computer (speed is not important).

Recently, the problem with parallel processing has become so serious that programming languages are being sought to replace C, but I don't think there are any widely used languages yet.


2022-09-29 22:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.