Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of starting nginx by linux

Shulou Source: shulou.com Published: 2022-06-02 04:40:26 09月28日 Update

How does linux start nginx? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

Nginx (engine x) is a high-performance HTTP and reverse proxy web server, as well as providing IMAP/POP3/SMTP services. Nginx was developed by Igor Sesoyev for the second most visited Rambler.ru site in Russia. The first public version 0.1.0 was released on October 4, 2004.

Nginx is a lightweight Web server / reverse proxy server and email (IMAP/POP3) proxy server, distributed under the BSD-like protocol. It is characterized by low memory and strong concurrency ability. in fact, the concurrency ability of nginx does perform well in the same type of web server. Chinese mainland uses nginx website users: Baidu, JD.com, Sina, NetEase, Tencent, Taobao and so on.

So how does linux start nginx?

1. Go to the sbin directory under the nginx installation directory

2. Execute the following command:

. / nginx-c / usr/local/nginx/nginx/conf/nginx.conf

Description:

● where / usr/local/nginx/nginx/conf/nginx.conf is your own nginx.conf path.

The ●-c parameter specifies the path to the nginx configuration file to load.

How does linux restart nginx?

Restart smoothly:

1. Go to the sbin directory under the nginx installation directory

2. Execute the following command:

. / nginx-s reload Thank you for your reading! After reading the above, do you have a general idea of how linux starts nginx? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

Tags: Services servers content directories proxies methods commands articles capabilities paths problems smoothing middle tables facts in fact memory parameters at the same time mainland files Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi NVidia Linux MariaDB