current location:Home > Technical Articles > Operation and Maintenance > Nginx

  • How to install PHP7.4 and Nginx on Centos
    How to install PHP7.4 and Nginx on Centos
    Preparation 1. Download the required installation package wgetwget2 and install the required extension yuminstall-ygccgcc-c++makecmakebisonautoconfwgetlrzszlibtoollibtool-ltdl-develfreetype-devellibjpeg.x86_64libjpeg-devellibpng-develgd-develpython-develpatchsudoopenssl*opensslopenssl-develncurses-develbzip*bzip2 unzipzlib-de
    Nginx 934 2023-05-20 08:55:05
  • How to install and configure Nginx
    How to install and configure Nginx
    Environment preparation 1. Operating system centos6.4x86_642. Software version nginx1.4.23. Experimental topology 4. Install yum source [root@nginx~]#rpm-ivhhttp://download.fedoraproject.org/pub/epel/6/x86_64/ epel-release-6-8.noarch.rpm[root@web1~]#rpm-ivhhttp://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch
    Nginx 1083 2023-05-20 08:43:18
  • How does Nginx configure a site with multiple domain names?
    How does Nginx configure a site with multiple domain names?
    Configure multiple domain names for one site server{listen80;server_nameops-coffee.cnb.ops-coffee.cn;}server_name followed by multiple domain names, separate multiple domain names with spaces. Configure multiple sites for one service server{listen80;server_namea .ops-coffee.cn;location/{root/home/project/pa;indexindex.html;}}server{listen80;server_nameops-coffee.cnb.ops-coff
    Nginx 3566 2023-05-20 08:19:05
  • How to compile and install Nginx
    How to compile and install Nginx
    1. Download the nginx source file and enter the nginx official website to download the stable version of nginx. I downloaded 1.10.0. Unzip: tar-zxvfnginx-1.10.0.tar.gz 2. Check the installation dependencies and execute the following command to install the nginx dependency library: yum-yinstallgccpcrepcre-develzlibzlib-developensslopenssl-devel 3. Configure the nginx installation options. I only configure the installation here. In the /opt directory, other options can be viewed by executing ./configuration–help. cdnginx installation directory, execute the following command: ./co
    Nginx 5233 2023-05-19 23:58:05
  • How to implement Nginx domain name forwarding
    How to implement Nginx domain name forwarding
    Introduction to nginx nginx ("enginex") is a high-performance web and reverse proxy server developed by Russian programmer Igorsysoev. It is also an imap/pop3/smtp proxy server. In the case of high connection concurrency, nginx is a good alternative to the apache server. nginx installation 1. Install the compilation tools and library files yum-yinstallmakezlibzlib-develgcc-c++libtoolopensslopenssl-devel2. Install pcre and download and decompress the source code package by yourself cd installation directory./configuremake&&
    Nginx 1996 2023-05-19 23:43:05
  • How to check nginx version in Linux
    How to check nginx version in Linux
    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:&amp
    Nginx 14068 2023-05-19 23:31:04
  • How to set the upper buffer capacity limit for Nginx server
    How to set the upper buffer capacity limit for Nginx server
    Setting the upper limit of the buffer capacity can prevent buffer overflow attacks (also the Server module) client_div_buffer_size1k; client_header_buffer_size1k; client_max_div_size1k; large_client_header_buffers21k; After setting, no matter how many HTTP requests there are, the buffer of the server system will not overflow.
    Nginx 1045 2023-05-19 23:19:04
  • What are the methods for Nginx to implement grayscale publishing?
    What are the methods for Nginx to implement grayscale publishing?
    Method 1: By adjusting the load balancing weight, load balancing is built on the existing network structure. It provides a cheap, effective and transparent method to expand the bandwidth of network devices and servers, increase throughput, strengthen network data processing capabilities, and improve network performance. Flexibility and availability. Load balancing, whose English name is loadbalance, means to allocate execution to multiple operating units, such as web servers, ftp servers, enterprise key application servers and other mission-critical servers, etc., so as to jointly complete work tasks. The simple configuration is as follows: http{upstreamcluster{ip_hash;#If you do not use a third-party cache management tool in your system, it is recommended to use this method server
    Nginx 2769 2023-05-19 23:10:05
  • What is the meaning of nginx.conf configuration file
    What is the meaning of nginx.conf configuration file
    The structure of the nginx.conf configuration file is as follows: ......#Mainly defines the global configuration of nginx events{#events (events) block: mainly configures network connection related}http{#http block: most of the proxy cache and log definitions The configuration of functions and third-party modules can be placed here...#http global block server{#server block: Each server is equivalent to a virtual host. It can have multiple hosts jointly providing services and providing them to the outside world logically. A group of closely related services...#server global block location/{#location: Based on the request string received by the nginx server, except the virtual host
    Nginx 1415 2023-05-19 23:04:04
  • How to build Nginx and Tomcat servers under Debian to achieve load balancing
    How to build Nginx and Tomcat servers under Debian to achieve load balancing
    The basic concept of load balancing Load balancing (loadbalancing) is a computer network technology used to distribute load among multiple computers (computer clusters), network connections, CPUs, disk drives or other resources to achieve optimal resource usage. The purpose is to maximize throughput, minimize response time, and avoid overload. Using multiple server components with load balancing instead of a single component can improve reliability through redundancy. Load balancing services are usually performed by specialized software and hardware. One of the most important applications of load balancing is the use of multiple servers to provide a single service. This solution is sometimes called a server farm. Usually, load balancing is mainly used in web websites, large-scale Internet
    Nginx 1597 2023-05-19 22:31:04
  • How to install and configure nginx HTTP server
    How to install and configure nginx HTTP server
    The http server is relatively slow in processing static resources by tomcat, so the first thing that comes to mind is to put all static resources (js, css, image, swf) into a separate server and use a faster http server. Here I chose nginx, nginx Compared with apache, it is more lightweight and simpler to configure, and nginx is not only a high-performance http server, but also a high-performance reverse proxy server. At present, many large websites use nginx. Sina, NetEase, QQ, etc. all use nginx, which shows that the stability and performance of nginx are still very good. 1.nginx installation (linux) download the latest stable version according to your needs
    Nginx 1575 2023-05-19 20:58:04
  • What is the meaning of events configuration in nginx
    What is the meaning of events configuration in nginx
    worker_connections1024; Defines the maximum number of connections that each work_process can open at the same time, that is, only so many connections are allowed at most. accept_mutexon; When there is only one network connection requesting the server at a time, multiple sleeping processes on the server will be awakened at the same time, which will consume a certain amount of server performance. Set accept_mutex in Nginx to on, which will serialize multiple Nginx processes (workerprocessers) when receiving connections to prevent multiple processes from competing for resources. The default is on. multi_accepton;nginxworkerprocesse
    Nginx 1226 2023-05-19 20:40:11
  • How to use YUM to install Nginx under CentOS7 system
    How to use YUM to install Nginx under CentOS7 system
    Introduction nginx was developed by igorsysoev for Russia's second most visited rambler.ru site. The first public version 0.1.0 was released on October 4, 2004. It releases its source code under a BSD-like license and is known for its stability, rich feature set, sample configuration files, and low system resource consumption. The steps in the centos7 conditional tutorial require root user privileges. 1. Add nginx to the yum source. Add the centos7nginxyum resource library, open the terminal, and use the following command: sudorpm-uvhhttp://nginx.org/packages/centos/7/noarch/r
    Nginx 1703 2023-05-19 20:32:17
  • How to use nginx to access local static resources on a linux server
    How to use nginx to access local static resources on a linux server
    1. Check whether port 80 is occupied. Generally, port 80 is mostly occupied by the apache service. netstat-anp|grep802. Modify the port number of the apache service vim/etc/apache2/ports.conf3. Modify the port number to 80804. Modify the nginx service configuration vim/etc/nginx/conf.d/nginx.conf5. Restart the nginx service servicenginxrestart6. The page tries to access local resources 7. The access is successful!
    Nginx 1757 2023-05-19 19:46:04
  • How to add http_stub_status_module module to nginx
    How to add http_stub_status_module module to nginx
    1. Description of the function of stub_status Compilation option function – with-http_stub_status_module Client status of Nginx 2. Check the existing nginx compilation parameters./nginx-V# If there is no module we need, such as –with-http_stub_status_module added in this experiment, then then You need to recompile and install it. 3. Use parameters to reconfigure configure and add --with-http_stub_status_module on the original basis. The configure file is a file in the installation package directory. For details, please refer to c
    Nginx 2363 2023-05-19 19:28:04

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!