Bài đăng

Hiển thị các bài đăng có nhãn Nginx

Nginx là gì? Giới thiệu về Nginx.

  Nginx là gì? Nginx (phát âm là "engine-x") là một máy chủ web (web server) mã nguồn mở, có hiệu suất cao và khả năng xử lý đồng thời hàng nghìn kết nối. Ngoài chức năng làm web server, Nginx còn được dùng phổ biến làm: Reverse proxy (Proxy ngược) Load balancer (Cân bằng tải) HTTP cache (Bộ nhớ đệm HTTP) Streaming media server (Máy chủ phát trực tuyến) I. Tại sao nên dùng Nginx? Hiệu suất cao: Xử lý hàng nghìn kết nối với mức tiêu thụ tài nguyên thấp. Không đồng bộ, event-driven: Khác với Apache (dùng mô hình thread/process), Nginx sử dụng mô hình event-driven nên xử lý tốt hơn trong môi trường nhiều người dùng. Dễ cấu hình, mạnh mẽ: Cấu hình qua các file .conf rất linh hoạt. Phổ biến: Được sử dụng bởi các website lớn như Netflix, Dropbox, GitHub, WordPress, v.v. II. Cài đặt Nginx 1. Trên Ubuntu/Debian bash Copy Edit sudo apt update sudo apt install nginx 2. Trên CentOS/RHEL bash Copy Edit sudo yum install epel-release sudo yum ...

10 Most Used Nginx Commands Every Linux User Must Know

  10 Most Used Nginx Commands Every Linux User Must Know Aaron Kili Last Updated: July 4, 2022   Read Time: 6 mins Categories Nginx   13 Comments Nginx  (pronounced Engine x) is a free, open-source, high-performance, scalable, reliable, full-featured and popular HTTP and  reverse proxy server , a mail proxy server, and a generic TCP/UDP proxy server. Nginx  is well known for its simple configuration, and low resource consumption due to its  high performance , it is being used to power several high-traffic sites on the web, such as  GitHub ,  SoundCloud ,  Dropbox ,  Netflix ,  WordPress  and many others. Read Also :  3 Useful Hacks Every Linux User Must Know In this guide, we will explain some of the most commonly used Nginx service management commands that, as a developer or system administrator, you should keep at your fingertips. We will show commands for both  Systemd  and  SysVinit . All of these f...