Install and Setup Nginx

Piyush Garg
7 Mar 202313:16

Summary

TLDRThis video script is a tutorial on installing and setting up the EngineX software using Docker on an Ubuntu machine. It covers the basics of Docker, explains the process of installing EngineX, and guides viewers through verifying the installation. The script also delves into the configuration file, discussing how to edit it for multiple server setups and emphasizes the importance of understanding the configuration for successful setup.

Takeaways

  • 😀 The video is a tutorial on installing and setting up an engine, specifically Engine X1.18 on Ubuntu.
  • 🔧 The presenter uses Docker for the installation process because it allows for an isolated environment similar to a virtual machine.
  • 💻 The audience is assumed to have basic knowledge of Docker and containerization, and a link to a Docker tutorial is provided for those who need it.
  • 📡 Port mapping is discussed, with the presenter mapping port 8080 to 80, allowing the engine to run on port 80.
  • 🛠️ The video covers updating system packages and installing the engine solution, demonstrating the simplicity of installing applications with Docker.
  • 🔎 The presenter verifies the engine installation by checking the version and ensuring it's running, highlighting the importance of validation post-installation.
  • 🌐 The video explains how to access the engine's default web page and what it indicates about the installation's success.
  • 📊 The presenter discusses using the 'inspect' command to view network details and server names, providing insight into how the engine handles web traffic.
  • 📁 The script touches on file structure, showing where the engine files are located on the host machine and the importance of the 'enginex.com' file for server configuration.
  • 🖥️ The video includes instructions for editing the configuration file, emphasizing the need for understanding the role of each setting.
  • 🔄 The presenter reminds viewers to create a backup of the original configuration file before making changes, ensuring safety and the ability to revert if needed.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is about installing and setting up an engine, specifically focusing on using Docker.

  • What is Docker and why is it used in the video?

    -Docker is a platform that uses OS-level virtualization to deliver software in packages called containers. It is used in the video to facilitate the installation of the engine in an isolated environment on an Ubuntu machine.

  • What does the speaker plan to do with Docker?

    -The speaker plans to use Docker to install the engine because they want to perform an Indian exp operation within their Ubuntu machine.

  • What is the purpose of mapping port 8080 to port 80 in the video?

    -Mapping port 8080 to port 80 allows the engine to run on port 80, which is the default port for HTTP traffic, making it accessible via the local host on port 80.

  • What does the speaker mean by 'light container virtualization'?

    -The speaker is referring to Docker's ability to create lightweight containers that run applications in isolation without the need for a full virtual machine.

  • How does the speaker verify that the engine has been installed successfully?

    -The speaker verifies the successful installation of the engine by checking if the engine's default web page loads when accessing the local host on port 80.

  • What is the significance of the engine's default web page appearing?

    -The appearance of the engine's default web page indicates that the engine is running and accessible, confirming that the installation was successful.

  • What is the role of the 'enginex.com' file mentioned in the script?

    -The 'enginex.com' file is a configuration file that contains the necessary settings for the engine to operate correctly as a web server.

  • Why does the speaker create a backup of the 'enginex.com' file before editing it?

    -The speaker creates a backup of the 'enginex.com' file to ensure they have a original version in case they need to revert changes made during the editing process.

  • How does the speaker edit the 'enginex.com' configuration file?

    -The speaker edits the 'enginex.com' file using a terminal-based text editor, making changes to the configuration settings to suit the specific requirements of the engine setup.

  • What is the purpose of the 'events' section in the configuration file?

    -The 'events' section in the configuration file is used to define actions that the engine should take in response to certain events, such as reloading the configuration when changes are made.

Outlines

00:00

🚀 Setting Up Nginx on Docker

In this section, the presenter introduces the video and discusses the process of installing and setting up Nginx using Docker. The presenter explains that they will demonstrate the process on a Linux machine but mentions that the steps can be followed on Windows or Mac as well. Docker is described as a lightweight virtualization tool, and viewers are informed that a tutorial on Docker is linked in the description. After checking for running containers, the presenter explains that containers are lightweight virtual machines and proceeds to connect to a container terminal. Once inside, they explain the process of updating packages and installing Nginx. After installation, the version of Nginx is verified, and the presenter discusses port mapping (80 to 8080) to ensure that Nginx runs on the correct port.

05:00

📂 Locating and Understanding Nginx Configuration Files

This section explains how installing Nginx creates configuration files in the `/etc/nginx` directory. The presenter shows how to navigate to this folder and locate the critical configuration file `nginx.conf`. The importance of this file is highlighted as it contains settings that control how the Nginx server operates. The presenter opens the configuration file using a terminal-based editor (Nano) and discusses its basic structure. They explain that the file contains various configuration settings such as HTTP block settings, and how certain files are included for configuring different modules. The presenter also hints that these settings can be modified to customize the server's behavior.

10:03

🛠️ Editing the Nginx Configuration

In this part, the presenter starts editing the `nginx.conf` configuration file from scratch. They introduce the basic structure of the configuration, including the creation of an `events` block and the use of the `http` block, which can contain multiple servers. The `server` block is configured to listen on port 80, and the presenter explains the use of the underscore symbol `_` in the server name to handle all incoming requests. A location block is added to define how requests are handled, and the configuration is saved and reloaded. The presenter discusses how configuration changes require Nginx to be reloaded for the changes to take effect, and successfully demonstrates the changes by reloading the page, which displays a 'Hello from Nginx' message.

Mindmap

Keywords

💡Engine

In the context of the video, 'Engine' likely refers to a software engine, possibly a web server or application server like 'EngineX'. It's the core component that the video is focused on installing and setting up. The script mentions installing 'EngineX' on a local machine, indicating that it's a software solution designed to handle specific tasks such as serving web content or managing applications.

💡Install

'Install' in the video script refers to the process of setting up software on a computer system. The video provides a tutorial on how to install 'EngineX', which is a crucial step for getting the software to function. The term is used in various contexts such as 'installing EngineX' and 'docker installation', indicating the process involves multiple components or tools.

💡Setup

The term 'Setup' is used to describe the configuration and arrangement of the software or system post-installation. In the video, 'setup' is discussed in conjunction with 'EngineX', indicating that after the installation, the software needs to be configured to work properly within the user's environment.

💡Docker

Docker is a platform that uses containerization technology to simplify the deployment of applications. In the script, Docker is mentioned as a tool used for setting up 'EngineX', suggesting that the process involves creating a Docker container to house the application for easier management and portability.

💡Ubuntu

Ubuntu is a popular Linux distribution used as an operating system. The script mentions 'Ubuntu machine', indicating that the installation and setup of 'EngineX' is being demonstrated on this particular OS. Ubuntu is chosen likely for its stability and wide community support, which are beneficial for running server applications like 'EngineX'.

💡Port Mapping

'Port Mapping' refers to the process of redirecting a network port to a different device or port. In the video, port mapping is discussed in the context of Docker, where the script mentions mapping port 8080 to port 80. This is a common practice to allow external access to services running inside a container.

💡Configuration

Configuration in the video script refers to the settings and parameters defined for the software to operate correctly. The video discusses editing the 'EngineX' configuration file, which is a typical step in setting up server software to ensure it aligns with the user's specific requirements.

💡Container

A 'Container' in the script refers to a virtual package that contains all the necessary components to run an application. The video mentions Docker containers, which are used to encapsulate 'EngineX', providing a consistent environment regardless of where it's deployed.

💡Virtual Machine

A 'Virtual Machine' is an emulation of a computer system. The script touches on virtual machines when discussing Docker, which can be used to create lightweight virtual machines that are more portable and flexible than traditional VMs. This is relevant as it provides context for the type of environment 'EngineX' can be installed in.

💡EngineX

EngineX appears to be the name of the software engine that the video is focused on. It's central to the video's narrative as the script walks through the process of installing and configuring EngineX. It's used as an example to demonstrate the technical steps involved in setting up a server or application engine.

💡Reload

The term 'Reload' in the script refers to the action of refreshing the configuration of the software without needing to restart the entire system. In the context of 'EngineX', reloading is mentioned as a necessary step after making changes to the configuration file to apply those changes immediately.

Highlights

Introduction to installing and setting up the Engine

Explanation of using Docker for installing the Engine

The necessity of updating packages before installation

Installation of the Engine using simple commands

Verification of Engine installation and its version

How to access the Engine's default web page

Details on port mapping and its importance

Explanation of Docker containers and virtualization

How to check the running container in Docker

Accessing the terminal of the machine where Engine is installed

Configuration of the Engine's default web server

Explanation of the Engine's configuration file

How to create and edit the Engine configuration file

Backup of the original Engine configuration file

Instructions on editing the configuration file for multiple web servers

How to set up port listening for multiple web servers

Details on creating location blocks in the configuration

Final steps to save and reload the configuration

Checking the Engine's response to ensure configuration success

How to handle multiple server configurations in one file

Discussion on future topics like reverse proxy and load balancer setup

Transcripts

play00:00

ही एवरीवन वेलकम बैक आई एम वेलकम तू इंजन

play00:02

आई सीरीज और इस वीडियो में हम इंजन को

play00:04

इंस्टॉल एंड सेटअप करने वाले हैं सो बहुत

play00:07

इजी वीडियो आने वाला है सो लेट्स स्टार्ट

play00:09

विथ डी वीडियो अब इंजन इसको इंस्टॉल करने

play00:10

से पहले यहां पर एक छोटी सी चीज जाता है

play00:13

वांट तू तेल यू डेट इंजन एक्सपी सॉल्व

play00:15

करने के लिए मैं उसे करूंगा डॉकर ओके नौ

play00:17

वही आई एम आई यूजिंग डॉकर बिकॉज मैं

play00:20

इंडियन एक्स को उसे करना चाहता हूं मेरी

play00:22

उबंटू मशीन के अंदर बट आई एम लर्निंग दिस

play00:24

राइट हो सकता है तुम्हारे पास विंडोज दो

play00:27

हो सकता है तो तुम्हारे पास मा को सो

play00:28

बेसिकली व्हाट आई वांट तू डू इस माय इंजन

play00:30

एक्सपोज सेटअप इंस्टॉल एंड उसे करना चाहता

play00:32

हूं

play00:35

ओके सो इफ यू डोंट नो व्हाट इस डॉकर डॉकर

play00:38

बेसिकली एक तरह से वर्चुअल वर्चुलाइजेशन

play00:40

है ओके इट्स नॉट अन वर्चुअल मशीन इट्स

play00:42

जस्ट लाइक अन वर्चुलाइजेशन एंड इफ यू नो

play00:45

डॉन नो व्हाट इस डॉकर तो मैं डॉकर की एक

play00:47

वीडियो का लिंक डिस्क्रिप्शन में डाल

play00:48

दूंगा यू कैन सी डेट वीडियो ओके

play00:51

अगर मैं यहां पे डॉकर स करता हूं यू विल

play00:54

सी डेट नो कंटेनर इस रनिंग ओके कंटेनर

play00:56

बेसिकली एक तरह की वर्चुअल मशीन ओके सो

play00:58

अगर तुम्हें डॉकर का आइडिया डॉकर में

play01:00

बिहाव समथिंग कंटेनर्स लाइक अन लाइट वेट

play01:04

वर्चुअल मशीन तो मैं क्या करूंगा सबसे

play01:06

पहले

play01:16

से 880 ऑन पोर्ट 80 ठीक है अभी अगर ये समझ

play01:20

नहीं ए रहा है डोंट वारी जस्ट गो डाउन ओके

play01:22

एंड जैसे ही मैं इसको इंटर करूंगा ये क्या

play01:25

करेगा ये मेरे लिए मशीन का टर्मिनल कनेक्ट

play01:28

कर देगा राइट सो दिस इस रनिंग ऊंट डू यू

play01:30

कैन सी डेट अभी मैं रूट एक्सेस है मेरे

play01:32

पास ऑन दिस पार्टिकुलर कंटेनर लाइक आई से

play01:34

यू नेम यू विल सी डेट मैं अभी किस

play01:36

डिस्ट्रीब्यूशन लिनक्स ओके इफ आई से यू

play01:39

नेम - ए एंड एंटर्स यू कैन सी डेट अभी मैं

play01:42

किस पर हूं मैं अभी लिनक्स मशीन के ऊपर

play01:44

हूं मुझे इसको ओके सो इस चीज के अंदर इस

play01:47

पार्टिकुलर वर्चुअल मशीन के अंदर इस

play01:49

पार्टिकुलर कंटेनर के अंदर हम अपने

play01:50

इंजनएक्स को इंस्टॉल करने वाले हैं सो

play01:52

इंजन सॉल्यूशन के बहुत सिंपल है सबसे पहले

play01:54

सी हैव तू अपडेट तो वो कैसे करते हैं तो

play01:57

इस पार्टिकुलर मशीन के अंदर नहीं होगा ओके

play02:00

जिसे लाइट कंटेनर वैकेंसी

play02:09

ठीक है तो इससे क्या होगा मेरे जितने भी

play02:12

लोकल पैकेजेस हैं वो सारे अपडेट हो जाएंगे

play02:13

सो लेट्स वेट फॉर डी पैकेजेस तू गेट

play02:15

अपडेटेड अगेन मेरे पैकेजेस अपडेट हो सके

play02:17

नौ व्हाट आय हैव तू डू आय हाव तू इंस्टॉल

play02:19

इंजन नेक्स्ट ठीक है तो इंजन सॉल्व करना

play02:21

बहुत इजी है इल जैसे ऐप गेट इंस्टॉल

play02:25

इंजनएक्स इंटर एंड ये क्या करेगा इंस्टॉल

play02:28

कर देगा तो वेट करते हैं नेक्स्ट का

play02:30

इंस्टॉल होने का सो इंजन एक इंस्टॉल हो

play02:33

चुका है ठीक है अब इसको वेरीफाई करते हैं

play02:34

डेट क्या हमारा इंजन सॉल्व हो चुका है अब

play02:37

इंजन वेरीफाई कर रहे हैं दो तरीके नंबर

play02:39

वैन वीक है आई विल आई कैन से नेक्स्ट

play02:41

माइंस सी तो ये मेरे को बताया डेट मेरे

play02:43

पास कौन सा इंजन है ओके सो कैन सी डेट

play02:46

मेरे पास इंजन x1.18 वर्जन वैन कर ऑन

play02:49

उबंटू ओके सेकंड इफ यू रिमेंबर स्टार्टिंग

play02:52

में हमने कमांड लिखी थी जिसमें हमने बोला

play02:54

था माइंस बी डेट स्टैंड फॉर पोर्ट मैपिंग

play02:56

8080 और 80 तो मैं क्या कर सकता हूं मैं

play02:59

अपना ब्रो इसको ओपन करूंगा ओके सो दिस इस

play03:01

माय ब्राउज़र एंड इसमें मैं अपना लोकल

play03:04

होस्ट 80 रन करूंगा जैसे ही मैं इंटर

play03:07

करूंगा सो नथिंग एल्स रनिंग ओके सो इंजन

play03:10

एक सेकंड सी जैसे मैंने रिफ्रेश किया ठीक

play03:13

है तो उसको जूम आउट कर लेते हैं तो ये

play03:14

डिफॉल्ट पेज है इंजन तो मैं फर्स्ट टाइम

play03:17

दिखेगा ठीक है तो इसका मतलब है देस

play03:19

इंजनएक्स स्टार्ट हो चुका है बाय डिफाल्टर

play03:22

इंजनएक्स होता है वो पोर्ट 80 के ऊपर रन

play03:24

करता है ओके पोर्ट 80 तो एचटीटीपी का

play03:26

पोर्ट होता है अगर तुम एक वर्चुअल मशीन ऑन

play03:29

कर रहे हो या फिर तुम खुद की मशीन में

play03:30

इंटरनेट को इंस्टॉल कर रहे हो सो यू कैन

play03:32

जस्ट गो तू लोकल होस्ट 80 एंड तुम्हें ये

play03:34

वाला पेज दिख जाएगा बट बिकॉज मैं एक

play03:36

वर्चुलाइजेशन उसे कर रहा हूं बिकॉज मैं

play03:37

डॉकर कंटेनर उसे कर रहा हूं तो मैंने क्या

play03:39

किया था इफ यू आर मेंबर इन डी स्टार्टिंग

play03:41

डेट मैंने पोर्ट 80 को मैंने मैप कर दिया

play03:43

था पोर्ट 8080 से सो मेरे लिए वो पोर्ट

play03:46

8080 इस बेसिकली तू पोर्ट 80 ठीक है सो

play03:49

अगर तुमसे कोई पूछ रहा है इंटरव्यू या फिर

play03:52

जस्ट फॉर नॉलेज से

play03:53

इंजन एक्स कौन से पोर्ट पर एंड करता है

play03:55

इंजन पोर्ट 80 लेकिन मेरे केस में 8080 की

play03:59

हुआ है बिकॉज मैंने पोर्ट मैपिंग किया था

play04:01

80 को 80 टिप्स तो इस कंटेनर के अंदर इस

play04:04

कंटेनर के अंदर वो पार्टिकुलर सर्वर पोर्ट

play04:07

80 पर ही वर्क कर ओके लेकिन मैंने उसको

play04:10

मैप कर दिया था 88 पे थॉट्स वही मुझे यहां

play04:12

पर पोर्ट 880 ऑन करना पद रहा है ने तो अभी

play04:15

हमारा इंस्टॉलेशन है वो कंप्लीट हो चुका

play04:17

है बिकॉज आई कैन सी डेट एक तो मुझे

play04:19

इंजनिक्स का मेरा वर्जन दिख रहा है नंबर

play04:20

नंबर तू ये इंजन का डिफॉल्ट वेब पेज है

play04:24

ओके सो दिस इसे डिफाल्टर वेब पेज ऑफ

play04:25

नेक्स्ट जो बेसिकली पता है डेट यस अगर

play04:28

तुम्हें ये पेज दिखाई दे रहा है तो इसका

play04:29

मतलब है तो हमारी तो इंस्टॉलेशन है वो सही

play04:31

हुई एक और भी है इसको देखने का व्हाट यू

play04:34

कैन डू इंस्पेक्टर कर सकते हो ठीक है एंड

play04:36

यू कैन गो तू दिस नेटवर्क तब जैसे मैं

play04:38

इसको रिफ्रेश करूंगा ओके मैं इसको रिफ्रेश

play04:40

करूंगा यू विल सी डेट ये पार्टिकुलर पेज

play04:42

कौन है ये पार्टिकुलर पेज इंजनएक्स रेंडर

play04:44

कर रहा है अगर तुम्हें किसी वेबसाइट का

play04:46

पता करना है डेट क्या वो इंजन थ्रू हैंडल

play04:49

हो रही है व्हाट यू कैन डू यू कैन जस्ट सी

play04:50

दी रिस्पांस एंड सर्वर का जो भी नेम है

play04:53

डेट इसे योर सर्वेंट एंड मोस्ट ऑफ डी

play04:55

वेबसाइट फ्यूज इंजनएक्स सो यू कैन सी डेट

play04:58

दिस इस हो इंडियन एक्सेस वर्किंग सके तो

play05:00

देखते हैं डट हमारे इस पार्टिकुलर मशीन

play05:02

में इंस्टॉल करने से हुआ क्या एक्जेक्टली

play05:04

हो दिस इंजन एक्स इस रनिंग और कहां से ये

play05:07

एचटीएमएल कंटेंट ए रहा है तो यहां पर जैसे

play05:10

तुम एक इंजन को इंस्टॉल करते हो तुम्हारी

play05:12

लोकल मशीन के ऊपर एक फोल्डर बनता है ईटीसी

play05:15

डायरेक्टर के अंदर सो यू कैन डू यू लाइक

play05:17

एलएस ईटीसी राइट और इसके अंदर एक इंजन एक

play05:20

नाम का एक फोल्डर बनेगा जैसे मैं इंटर

play05:22

करूंगा ये कुछ-कुछ फाइल्स मेरी मशीन के

play05:25

ऊपर ऑलरेडी बन चुकी है राइट तो ये मेरी

play05:27

फाइल्स कैसे बनी ये बेसिकली जब हमने

play05:28

इंजनिक्स को इंस्टॉल किया था तो ये सारी

play05:31

वो फाइल है जो इंजन है इसके साथ शिप होती

play05:33

है ओके सो यू कैन जस्ट तू एंड ईटीसी तो

play05:35

ईटीसी फोल्डर होता है यहां पे अगर यहां पर

play05:37

लेस करता हूं तो यहां पर एक ईटीसी फोल्डर

play05:39

होता है ईटीसी के अंदर एक फोल्डर होता है

play05:41

इंजन सो यू कैन जस्ट तू अन सीडी ठीक है

play05:43

सीडी करते हैं ईटीसी ठीक है एलएस करते हैं

play05:46

दोबारा से तो यहां पर तो मैं दिखेगा एक

play05:48

इंजन एक नाम का एक फोल्डर होगा

play05:50

एक्स कहां पर है

play06:05

एलएस- ल ठीक है जो बेसिकली साइज भी दिखाते

play06:08

हैं फाइल का तो ये सारे इंजीनियर के होते

play06:11

हैं एंड इसमें सबसे इंपॉर्टेंट फाइल होते

play06:14

हैं engineex.com फाइल ओके दिस वैन तो ये

play06:18

वो फाइल है जिसके ऊपर हमारा इंजन एक सर्वर

play06:20

वर्क करता है इसे रिमेंबर पिछली वीडियो

play06:23

में मैंने तो मैं स्लाइड दिखाई थी जहां पे

play06:24

हमने बोला था डेट हमें कंफीग्रेशन लिखते

play06:26

हैं जो इंजीनियर को पता है डेट किस तरह से

play06:28

उसको कॉन्फ़िगर करना है आज अन वेब सर्वर

play06:30

तो यही वो फाइल है ओके सो ये जो इंजन है

play06:33

कंफीग्रेशन फाइल है इसके अंदर सारा वो कोड

play06:36

है इसके अंदर सारे वो कंफीग्रेशन है जो

play06:38

हमें इंजनिक्स को चाहिए अभी कम करते हैं

play06:40

लेट्स डू अन नैनो ओके पहले देखते हैं नैनो

play06:43

इस नॉट इन दिस मशीन क्या वे

play06:47

सो पहले हम को इंस्टॉल कर लेते हैं ठीक है

play06:53

इंस्टॉल वें इंटर एंड बेसिकली एक टर्मिनल

play06:58

बेस्ड एडिटर है ओके बिकॉज मुझे फाइल्स के

play07:00

साथ वर्क करना है मुझे कोर्ट्स खोलें सॉइल

play07:02

एडिटर सो यहां पर अलेक्स करते हैं दोबारा

play07:05

से सो उसे फाइल का नाम क्या था उसे फाइल

play07:08

का नाम था engineer.com फेडरेशन फाइल तो

play07:10

ये रही ये रही वो फाइल सॉइल जस्ट सेम एंड

play07:13

इंजन एक्स ठीक है तो enginex.com जैसे मैं

play07:17

तय करूंगा ये वो कॉन्फ़िगरेशन फाइल है

play07:19

जिसको हमें एडिट करना है ओके तो इसको

play07:21

थोड़ा सा एक्सपेंड कर लेते हैं एंड देखते

play07:22

हैं डेट इस फाइल के अंदर क्या हो रहा है

play07:24

ओके सो ये बेसिकली एक बहुत ही सिंपल कोल्ड

play07:28

ड्रिंक लैंग्वेज है एक बहुत ही सिंपल

play07:29

कॉन्फ़िगरेशन फाइल है तो इसमें बेसिकली हो

play07:31

क्या रहा है ठीक है तो ओवरव्यू देता है

play07:33

तुमने एक एचडीपीआई ओवर बनाया और कैसे दें

play07:35

एचडी टीवी ब्लॉक तो बेसिकली हमें

play07:37

एचटीटीपीएस ओवर बना रहे हैं विच इस ओके

play07:39

इसमें

play07:41

# का मतलब होता है डेट ये कमेंटेड लाइन

play07:42

ओके # का मतलब होता है कमेंटेड सो इग्नोर

play07:45

करते हैं इसको तो अगर हम नीचे चलते हैं यू

play07:47

कैन सी डेट यहां पर काफी तरह के सेटिंग्स

play07:49

है यहां पर जिप सेटिंग्स हैं तो यहां पर

play07:51

हम कुछ इंक्लूड कर रहे हैं डेट इस ईटीसी

play07:54

इंजन एक्साइनेबल डिफॉल्ट तो इंक्लूड

play07:56

बेसिकली लाइक इंपोर्ट तो यह बेसिक वह

play07:59

कॉन्फ़िगरेशन फाइल है जिसको हम एडिट करना

play08:00

है ओके सो हम क्या करेंगे

play08:03

ओके सो

play08:06

इस पार्टिकुलर फाइल को हम स्क्रैच से

play08:09

लिखेंगे तू अंडरस्टैंड वर्क करता है ओके

play08:12

उससे पहले उससे पहले हम क्या करेंगे इस

play08:14

इंजनिक्स कॉन्फ़िगरेशन फाइल का एक बैकअप

play08:16

ले लेते हैं सो आई जस्ट तू मूव ठीक है तो

play08:19

मूव कमांड मुझे इंजनिक्स कंफीग्रेशन को

play08:21

मूव करना है इंजनएक्स ठीक है इंजनएक्स मैं

play08:23

इसको नाम दूंगा नॉट मेंशंसएक्स इंजनएक्स

play08:26

बैकअप डॉट कंफीग्रेशन ओके डॉट कॉम ओके तो

play08:31

इंटर करते हैं तो अभी अगर मैं एलएस करूंगा

play08:33

यू विल सी डेट हमारे पास यहां पर एक बैकअप

play08:35

बन चुका होगा तो वो बैकअप ये रहा तो ये

play08:38

बेसिकली से फाइल है ओके सो दिस इसे डी से

play08:40

फाइव सो यू कैन सी डेट हमारी जो ओरिजिनल

play08:43

फाइल थी वो रिमूव हो चुकी है राइट

play08:48

टच बेसिकली होता है किसी न्यू फाइल को

play08:52

क्रिएट करने के लिए

play09:07

हो बिकॉज इंजन एक्सपो हर रिफ्रेश के बाद

play09:10

हर चेंज के बाद हमें रीलोड करना पड़ता है

play09:12

तो इंजन इसको रीलोड करना है इस रियली

play09:14

सिंपल यू कैन जैसे नेक्स्ट माइंस

play09:17

ओके रीलोड एंड यू कैन सी डेट देयर इस नो

play09:20

इवेंट सेक्शन तो बेसिकली वो कह रहा है की

play09:21

यार कोई इवेंट सेक्शन नहीं है

play09:23

कॉन्फ़िगरेशन में तो वो रीलोड नहीं होगा

play09:24

ओके नौ लेट्स स्टार्ट विद आर कॉन्फ़िगरेशन

play09:27

आई विल डू वीं ठीक है तो वे में चलते हैं

play09:28

वीं के अंदर में क्या लिखूंगा वीं के अंदर

play09:30

आई विल जस्ट तू अन इंजीनियर

play09:36

कंफीग्रेशन फाइल को लिखना स्टार्ट करते

play09:37

हैं तो आई तू इंसर्ट मोड तो सबसे पहले हम

play09:41

यहां पर एक इवेंट बना दें ठीक है और इसको

play09:42

छोड़ देंगे खाली ठीक है तो इवेंट क्या

play09:44

होता है बाद में डिस्कस करते हैं सबसे

play09:46

पहले

play09:50

किसी पार्टिकुलर पोर्ट के ऊपर

play09:53

है तो यहां पर बोलूंगा एचटीटीपी ओके

play09:58

तो एचटीटीपी के अंदर मेरे पास मल्टीपल वेब

play10:02

सर्वर हो सकते हैं राइट हो सकता है एक वेब

play10:04

सर्वर मेरा पोर्ट ₹8000 हो सकता है मेरा

play10:06

एक वेब सर्वर 188 एपिसोड आई कैन हैव

play10:09

मल्टीपल वेब सर्विस ठीक है सो मैं यहां पे

play10:11

बोलूंगा तो मुझे एक सर्वर बनाना है ठीक है

play10:13

सो अवर डैन ओके कूल एंड इस ओवर के अंदर

play10:18

मैं इसको बोलूंगा डेट यू हैव तू लिसन ठीक

play10:21

है ये पार्टिकुलर सर्वर को मैं बोल रहा

play10:22

हूं की लिसन करो पोर्ट नंबर 80 के ऊपर ठीक

play10:25

है इस ओवर का नेम क्या है

play10:28

अंडरस्कोर मतलब इस सर्वर का नेम इस सर्वर

play10:31

नेम बेसिकली होता है डेट किस तरह की

play10:33

इनकमिंग रिक्वेस्ट को हैंडल करना है सो

play10:35

अंडरस्कोर का मतलब होता है एवरीथिंग ओके

play10:37

डोंट वारी एंड यहां पर मैं बोलूंगा लोकेशन

play10:40

ठीक है तो अगर तुम्हें याद होगा एक्सप्रेस

play10:43

में हम करते द ना आप डॉट गेट आप डॉट गेट

play10:45

तो उसमें लाइक फॉर एग्जांपल

play10:47

तो ये बेसिकली वही लोकेशन है तो यहां पर

play10:50

हम बोलेंगे रूट ठीक है तो यानी की सारी

play10:52

लोकेशन ठीक है तो रूट लोकेशन एंड यहां पर

play10:55

ऐसे रिटर्न

play11:03

कॉन्फ़िगरेशन फाइल ठीक है

play11:15

अब हम करेंगे कंट्रोल

play11:18

राइट क्यूट इंटर तो अब अगर मैं इस

play11:22

कॉन्फ़िगरेशन फाइल को देखूंगा यू कैन सी

play11:23

डेट दिस इसे आर कंफीग्रेशन ठीक है सो इसको

play11:25

क्यूट करते हैं एंड अब हम बोलेंगे रीलोड

play11:28

अब यहां पर वो क्या बोल रहा है अननोन

play11:30

डायरेक्टर इवेंट बिकॉज उसका नाम इवेंट था

play11:32

ओके तो इसको ठीक करते हैं सो इंसर्ट मोड

play11:34

तो इवेंट्स करना नॉट एवं सो इट शुड बी

play11:37

इवेंट्स राइट सो दोबारा से कंट्रोल सी

play11:40

राइट क्यूट उसके बाद हम बोलेंगे रीलोड

play11:42

रीलोड हो चुका है गुड अब अगर मैं यहां पे

play11:45

रिफ्रेश करता हूं तो हमें क्या मिल रहा है

play11:46

हमें मिल रहा है हेलो फ्रॉम इंजनएक्स

play11:48

कंफीग्रेशन फाइव सो बेसिकली हुआ क्या ठीक

play11:51

है तो यहां पे एक सेकंड के लिए लॉक्स को

play11:53

बंद करके रिफ्रेश करते हैं सो यू कैन सी

play11:55

डेट हमारे पास जो रिस्पांस आया ठीक है

play11:57

हमारे पास एक रिस्पांस आया जिसका कंटेंट

play12:00

टाइप के टेक्स्ट प्लेन मतलब ये बेसिकली

play12:02

टेक्स्ट फाइल है

play12:03

के बेसिकली बस एक टेक्स्ट फाइल एंड इसका

play12:05

जो प्रीव्यू है बेसिकली

play12:08

कंफीग्रेशन फाइव एंड स्टैटिसटिक्स क्या

play12:11

आया 200 ओके तो बेसिकली इससे पता लगता है

play12:13

डेट मेरी जो इंजनिक्स कंफीग्रेशन है वो

play12:16

सक्सेसफुल हो चुके हैं इंजनएक्स मैंने

play12:17

इंस्टॉल कर लिया है सो व्हाट यू कैन डू इस

play12:20

तुम यहां पे मल्टीपल सर्वर भी रन कर सकता

play12:21

है लाइक एंड हैव वैन मोर सर्वर ब्लॉक हर

play12:23

ठीक है यहां पे एक और सर्वर हो सकता है वो

play12:25

अलग पोर्ट पे लिसेन कर सकता है एंड उसके

play12:28

अंदर अलग तरह के कंफीग्रेशन हो सकते हैं

play12:29

सो सिमिलरली तुम यहां पे चेंज कर सकते हो

play12:32

सो यू कैन प्ले अराउंड विद दिस फाइल एंड

play12:34

आई नो डेट अभी हमें नहीं पता डेट ये फाइल

play12:37

कैसे वर्क कर रही है सो दिस वीडियो वास

play12:39

मोर ऑन इंस्टॉलेशन के इंजन इसको सेटअप

play12:41

कैसे करते हैं इंस्टॉल कैसे करते हैं तो

play12:43

ये चीज बस मुझे दिखाना था डेट दिस इस हो

play12:46

इंडियन एक्स कॉन्फ़िगरेशन फाइल लुक ठीक है

play12:47

तो ये वो पार्टिकुलर फाइल है जिसके अंदर

play12:49

हम अपनी सारी कंफीग्रेशन सारे कोडिंग

play12:52

करेंगे एंड जिससे हमारा इंजन हमारे

play12:55

अकॉर्डिंग वो करेगा हम देखेंगे आने वाली

play12:57

वीडियोस में इंडियन को हम अगर रिवर्स

play12:59

प्रोक्सी कैसे कॉन्फ़िगर कर सकते हैं आज

play13:01

अन सो वर्क कैसे कॉन्फ़िगर कर सकते हैं हम

play13:03

आज अन लोड बैलेंसर कैसे कर सकते हैं तो

play13:05

सारे कॉन्फ़िगरेशन इस पार्टिकुलर फाइल में

play13:07

आने वाली है सो थॉट्स ऑल फॉर दिस वीडियो

play13:10

वीडियो अच्छा लगा तो लाइक एंड सब्सक्राइब

play13:11

जरूर करना मिलते हैं आपको नेक्स्ट वीडियो

play13:13

में उन तेल दें बाय टेक केयर

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
Enginex InstallUbuntu SetupDocker TutorialEnginex ConfigWeb ServerPort MappingIT TutorialTech GuideDevOpsNetworking
هل تحتاج إلى تلخيص باللغة الإنجليزية؟