search
Article Tags
Nginx
How to install, start, restart and stop Nginx under Linux

How to install, start, restart and stop Nginx under Linux

What is Nginx? How to restart/stop Nginx in Linux system? In response to the above problems, the following article will explain to you what Nginx is specifically, as well as the installation/start/restart/stop of Nginx under Linux. What is Nginx? Nginx is a lightweight web server/reverse proxy server and email proxy server released under a BSD-like license. Developed by Russian programmer lgorSysoev, it is used by Rambler, a large Russian portal and search engine. Its characteristics are that it occupies less memory and has strong concurrency capabilities. In fact, nginx's concurrency capabilities do perform better among web servers of the same type. NginxComparison

May 19, 2023 pm 01:28 PM
Linuxnginx
How to use nginx url rewriting

How to use nginx url rewriting

nginx url rewrite 1. url rewrite module (rewrite) summary This module allows rewriting uri using regular expressions (requires pcre library), and can redirect and select different configurations based on relevant variables. If this directive is specified in the server field, it will be executed before the requested location is determined. If there are other rewrite rules in the selected location after the directive is executed, they will also be executed. If executing this directive in location generates a new URI, then location determines the new URI again. Such a loop can be executed up to 10 times, after which nginx will return a 500 error. break syntax

May 19, 2023 pm 12:37 PM
URLnginx
How to view NGINX version information command in Linux system

How to view NGINX version information command in Linux system

1. Check the nginx version number installed on the server, mainly through the -v or -V option of nginx. The viewing method is as shown in the figure below. -v displays the nginx version. -V displays the nginx version, compiler version and configuration parameters [root@zq~]#nginx-Vnginxversion:nginx/1.16.1builtbygcc4.8.520150623(RedHat4.8.5-36)(GCC)builtwithOpenSSL1.0.2k-fips26Jan2017TLSSNIsupportenabledconfigurearguments:&

May 19, 2023 pm 12:25 PM
Linuxnginx
How does Nginx not allow access via IP?

How does Nginx not allow access via IP?

Access to the server via IP is not allowed {listen80default;server_name_;return404;} There may be some unregistered domain names or domain names you do not want pointing the server address to your server. This will have a certain impact on your site. Need to To prohibit IP or unconfigured domain name access, we use the default rule mentioned above to redirect all default traffic to 404. The above method is rough. Of course, you can also configure all unconfigured addresses to be redirected directly to 301 when accessing. It can also bring a certain amount of traffic to your website server{rewrite^/(.*)$https://ops-c

May 19, 2023 am 11:43 AM
nginxip
How to solve the image access 404 problem after Nginx image server configuration

How to solve the image access 404 problem after Nginx image server configuration

My wrong configuration is: server file root address: I want to enter this address through the browser to access the picture: but I will find that the file cannot be found and it will always 404. The reason is that the root path configuration is wrong. Let’s take a look at the root path principle: root configuration This means that the directory configured by root will be followed by the URL to form the corresponding file path. This means that the address we enter in the browser actually accesses /home/ftpuser/images/images/~~~ We will spell /images after our location to the actual accessed path, and then there are two processing methods. One: 1. The processing method is to remove the images behind the root, as follows: In this way, enter in the browser

May 19, 2023 am 11:22 AM
nginx
How to install nginx through yum in centos6.5

How to install nginx through yum in centos6.5

The following is: centos6.5 installs nginx through yum and prompts nopackagenginxavailable. You need to install epe first: yuminstallepel-release. After installing epel, yum-yinstallnginx is installed. After the installation is completed, servicenginxstart starts nginx. You can see the nginx interface by accessing the machine IP in the browser. If it cannot be accessed, check the Linux firewall status. After adding port 80 to access nginx, we need to modify the configuration file as needed. You can first use ps-ef|grepnginx to view the configuration file currently used by nginx.

May 19, 2023 am 10:28 AM
CentOSnginxyum
How to configure nginx static resource server

How to configure nginx static resource server

Enter the conf directory of the nginx installation directory, modify the nginx.conf file, and add a location part of the configuration code in a server{} as follows: root@ubuntu:/usr/local/nginx/conf#vinginx.confserver{listen80;server_namelocalhost;location /{roothtml;indexindex.htmlindex.htm;}location/image/{root/usr/local/myimage/;autoindexon;}} from

May 19, 2023 am 10:13 AM
nginx
How to use Keepalived+Nginx+Tomcat to implement high-availability web cluster

How to use Keepalived+Nginx+Tomcat to implement high-availability web cluster

keepalived+nginx+tomcat implements high-availability web cluster 1. nginx installation process 1. Download the nginx installation package and install the dependent environment package (1) Install the c++ compilation environment yum-yinstallgcc#c++ (2) Install pcreyum-yinstallpcre-devel (3 )Install zlibyum-yinstallzlib-devel(4) Install nginx, locate the nginx decompression file location, and execute the compile and installation command [root@localhostnginx-1.12.2]#pwd/usr/local/nginx/nginx-1.12

May 19, 2023 am 10:01 AM
nginxtomcatkeepalived
How to configure nginx load balancing

How to configure nginx load balancing

Polling nginx distributes all requests evenly to each server in the cluster. upstreamtest{server127.0.0.1:7001;#Equivalent to server127.0.0.1:7001weight=1;server150.109.118.85:7001;#Equivalent to server150.109.118.85:7001weight=1;}server{listen8081;server_namelocalhost ;location/{proxy_passhttp://test/;}}upstream: Define a service cluster

May 19, 2023 am 09:59 AM
nginx
What is the method to start and stop nginx in Linux system

What is the method to start and stop nginx in Linux system

Startup code format: nginx installation directory address-cnginx configuration file address For example: [root@LinuxServersbin]#/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf Stop nginx There are three ways: stop calmly 1. Check the process number [root@LinuxServer~]#ps-ef|grepnginx 2. Kill the process [root@LinuxServer~]#kill-QUIT2072 Stop quickly 1. Check the process number [root@LinuxSer

May 19, 2023 am 09:34 AM
Linuxnginx
How does NGINX count the PV, UV, and independent IP of the website?

How does NGINX count the PV, UV, and independent IP of the website?

Concept: uv (uniquevisitor): unique visitor, each independent Internet computer (based on cookies) is regarded as a visitor, and the number of visitors who visit your website within a day (00:00-24:00). Visits to the same cookie within a day are only counted once PV (pageview): visits, that is, page views or clicks, each visit to the website by the user is recorded once. When a user visits the same page multiple times, the total number of visits is counted. Independent IP: The same IP address is only counted once within 00:00-24:00. Friends who do website optimization are most concerned about this. Let me first state the environment. This run nginx version 1.7, the backend tomcat runs dynamic

May 19, 2023 am 09:13 AM
nginxip
How to set nginx upload directory without execution permission

How to set nginx upload directory without execution permission

Copy the code as follows: orderallow, denydenyfromall and the one on the Internet that does not have execution permissions for the nginx upload directory. Copy the code as follows: location~^/upload/.*\.(php|php5)${denyall;} These configurations look like There is no problem, indeed it can be said under Windows. But *nux is different. Everyone knows that the *nux operating system is case-sensitive. If you change it to an uppercase suffix such as *.php, it will be bypassed. Here I will tell you my personal solution: copy the code. The following://? is a string that matches as many .php as possible, i is not

May 19, 2023 am 08:55 AM
nginx
How to configure and use the index directory under Nginx server

How to configure and use the index directory under Nginx server

nginx configuration location~^/2589(/.*){autoindexon;//Turn on autoindex_localtimeon;//Turn on the display function}auto_index command syntax: autoindexon|off; Configuration section: autoindexoff; Configuration section: http, server, location enabled/only Use nginx directory indexing function. Syntax: autoindex_exact_sizeon|off; configuration section: autoindex_exact_sizeon; configuration section: http, server, location to determine whether

May 19, 2023 am 08:43 AM
nginx
How to configure TCP load balancing in Nginx

How to configure TCP load balancing in Nginx

Assuming that the Kubernetes cluster has been configured, we will create a virtual machine for Nginx based on CentOS. The following are the details of the settings in the experiment: Nginx (CenOS8Minimal)–192.168.1.50KubeMaster–192.168.1.40KubeWorker1–192.168.1.41KubeWorker2–192.168.1.42 Step 1) Install the epel repository because the nginx software package is not in the CentOS system default repository. So you need to install e

May 19, 2023 am 08:29 AM
TCPnginx

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use