ayonaikkereta
Member
- Aug 22, 2022
- 40
- 10
- 8
Hello friends, I want to share experiences about server optimization. i use ngix for my vps. Nginx is a web server that was first released in October 2004 by a Russian citizen, Igor Sysoev. Initially, Nginx function is as HTTP web serving only
Nginx uses asynchronous processes and applies an event-driven approach. These two things make Nginx one of the most popular web servers until now.
An asynchronous process in Nginx is the process of executing code before the initial command finishes executing. Meanwhile, the event-driven approach means that nginx only handles requests or processes (requests) in one thread.
So, the way Nginx works is that one process (worker process) will manage the same thread, where each process (worker process) consists of smaller processes or also known as worker connections. The whole process will handle the request thread.
Worker connection will send request to worker process and master process (main process). Next, the master process will display the results of the request.
Please note, each worker connection can serve up to thousands of the same request without any problems. This is also one of the reasons why Nginx is a web server that is often used for high-traffic websites such as Google, Netflix, Cloudflare and Adobe.
this is the reason i like to use nginx :
More Efficient Use of Resources — Nginx is a lightweight software and does not consume a lot of resources or memory. Its asynchronous event-driven approach will also help you make efficient use of RAM.
Multifunctional — because it doesn't only function as a web server, you don't need to bother managing additional tools to optimize the work of your website. And another advantage, you don't have to pay more to activate other tools right?
Security — this software is backed by reliable developers who regularly publish security patches and updates, so your website can avoid DDoS attacks.
Performance — when it comes to static content, Nginx outperforms its closest competitor, Apache. And again thanks to its asynchronous, this software is also able to process requests better; especially when the server is accessed by many users at the same time.
for friends who want to install the following is an event you can do. this is the procedure i use to install nginx on centos 7 operating system
1. open a terminal then login to your VPS using your username and password
2. install nginx using the following command:
done, you have finished installing nginx on your centos 7 server
Nginx uses asynchronous processes and applies an event-driven approach. These two things make Nginx one of the most popular web servers until now.
An asynchronous process in Nginx is the process of executing code before the initial command finishes executing. Meanwhile, the event-driven approach means that nginx only handles requests or processes (requests) in one thread.
So, the way Nginx works is that one process (worker process) will manage the same thread, where each process (worker process) consists of smaller processes or also known as worker connections. The whole process will handle the request thread.
Worker connection will send request to worker process and master process (main process). Next, the master process will display the results of the request.
Please note, each worker connection can serve up to thousands of the same request without any problems. This is also one of the reasons why Nginx is a web server that is often used for high-traffic websites such as Google, Netflix, Cloudflare and Adobe.

this is the reason i like to use nginx :
More Efficient Use of Resources — Nginx is a lightweight software and does not consume a lot of resources or memory. Its asynchronous event-driven approach will also help you make efficient use of RAM.
Multifunctional — because it doesn't only function as a web server, you don't need to bother managing additional tools to optimize the work of your website. And another advantage, you don't have to pay more to activate other tools right?
Security — this software is backed by reliable developers who regularly publish security patches and updates, so your website can avoid DDoS attacks.
Performance — when it comes to static content, Nginx outperforms its closest competitor, Apache. And again thanks to its asynchronous, this software is also able to process requests better; especially when the server is accessed by many users at the same time.
for friends who want to install the following is an event you can do. this is the procedure i use to install nginx on centos 7 operating system
1. open a terminal then login to your VPS using your username and password
2. install nginx using the following command:
Code:
sudo yum install epel-release
Code:
sudo yum install nginx
Code:
sudo systemctl start nginx
Code:
systemctl status nginx
Code:
nginx –v
done, you have finished installing nginx on your centos 7 server