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

  • How to solve the problem of setting up file upload and download service with nginx+lua
    How to solve the problem of setting up file upload and download service with nginx+lua
    The main logical upload front-end requests the nginx service, and nginx calls the upload script. The script finds the corresponding logical storage path and the agent's IP and port of the physical storage machine by searching the configuration, sends the package to the corresponding agent through tcp, and the agent deployed on the corresponding machine accepts the data. , and write to a local file. Download http download request nginx, nginx calls the download script, the script parses the link parameters, finds the corresponding agent address according to the parameters, and requests to return the binary content of the file. The script receives the data returned by the agent and returns it to the requesting end. Configuring nginx + lua Next, we will mainly talk about the nginx installation configuration (this includes the lua binary
    Nginx 1559 2023-05-11 20:52:04
  • How to build Nginx+PHP+MySQL environment with Docker and deploy WordPress
    How to build Nginx+PHP+MySQL environment with Docker and deploy WordPress
    Preparation: Use Alibaba Cloud kelude to create a project, such as a dockerfile. After that, we place all related dockerfile and configuration files of the wordpress environment into the centosbz directory. Use Alibaba Cloud Image Warehouse Alibaba Cloud Docker Image Warehouse address is, which is used to store docker images. You can push the image locally, or you can pull the dockerfile from kelude to automatically build the image. We log in first, and then create a new namespace, such as centos-bz. After that, all nginx, php, and mysql images will be stored in this namespace. Install docker-co
    Nginx 1185 2023-05-11 20:37:06
  • Analysis of Nginx installation examples under CentOS
    Analysis of Nginx installation examples under CentOS
    Installation environment: linux server centos7.3, root permission 1, installtheprerequisites:sudoyuminstallyum-utils2, tosetuptheyumrepository, createthefilenamed/etc/yum.repos.d/nginx.repowiththefollowingcontents: (note to replace the os version: $releasever, if the centos version is 7, Replace it with 7) command: use vim to edit the nginx.repo file vim/etc/yum.re
    Nginx 869 2023-05-11 20:28:11
  • How Nginx implements load balancing
    How Nginx implements load balancing
    1. Introduction to Nginx Nginx is a high-performance Http and reverse proxy server. It is also an IMAP/POP3/SMTP server (email proxy). One of the earliest purposes of developing this product is also as a mail proxy server. It is widely used in various production deployments due to its stability, rich feature set, sample configuration files, low system resource consumption and high concurrency performance. Moreover, nginx implements I/O multiplexing based on the event-driven model (epoll), and processes requests in an asynchronous and non-blocking manner. In the case of high connection concurrency, Nginx is a good alternative to the Apache server. And why should we choose Nginx? 2. Nginx features
    Nginx 4405 2023-05-11 20:07:04
  • How to install multiple versions of PHP for Nginx under Linux system
    How to install multiple versions of PHP for Nginx under Linux system
    Linux version: 64-bit centos6.4nginx version: nginx1.8.0php version: php5.5.28&php5.4.44 Note that if php5.5 is the main version and has been installed in the /usr/local/php directory, then install other versions of php again Just specify a different installation directory. Install php#wgethttp://cn2.php.net/get/php-5.4.44.tar.gz/from/this/mirror#tarzxvfphp-5.4.44.tar.gz#cdphp-5.4.44#./configure --pr
    Nginx 1223 2023-05-11 19:34:04
  • How to forward nginx configuration to other websites
    How to forward nginx configuration to other websites
    There is a requirement: jump to a certain address in the project, but this address does not want to be exposed to users. Therefore, we thought of making a layer of proxy and directly use ngnix to proxy to this address through a certain path in the project. After querying relevant documents, we found that the solution is as follows: use return302location/myBaidu{return302http://baidu.com;}. This solution will jump directly to baidu and change the domain name, which is equivalent to direct location.href='baidu.com' , obviously does not suit our needs. The effect we want is to proxy to Baidu, but the URL box of the browser is still
    Nginx 4764 2023-05-11 19:28:16
  • How to build a personal blog using nginx and WordPress
    How to build a personal blog using nginx and WordPress
    0x01 precondition has a domain name. My own domain name is nomansky.xyz, a vps or cloud host. If it is a domestic IP, it needs to be registered as a user with sudo permissions or root permissions. Here I create a new wordpress user to run the program, and Use the following command to set it to nologina.sudouseradd-s/sbin/nologinwordpress. Use sudoyuminstall-yepel-release to install the epel source and close firewalld. I prefer to use iptables for security reinforcement a.sudosystemctlstopfirewall
    Nginx 1851 2023-05-11 19:19:04
  • How to configure Nginx server under Windows system
    How to configure Nginx server under Windows system
    Start nginxcdd:cdnginx-1.2.4startnginx View tasks There will be nginx processes in the task manager. Enter http://127.0.0.1 in the browser. At this time, the nginx welcome interface will appear, indicating that nginx has been started successfully. welcometonginx!ifyouseethispage,thenginxwebserverissuccessfullyinstalledandworking.furtherconfigurationisrequired.foronlinedocumentationandsupplor
    Nginx 5324 2023-05-11 18:52:06
  • How to deploy Nginx on Docker
    How to deploy Nginx on Docker
    1. Download the Nginx image dockerpullnginx from docker. 2. Put the file after creating the mounting directory here. Map the directory corresponding to Nginx in docker, so you don’t need to change the file into the container. mkdir-p/data/nginx/{conf , conf.d, html, logs} 3. In order to ensure the correctness of the files, it is recommended to enter the container first and copy the corresponding files. If it is inconvenient, you can open two windows, enter one into the container, and copy the left to the right. This is to ensure that the file is correct#Start the container dockerrun-itdnginx/bin/bash#Enter the container dockerattachx
    Nginx 2972 2023-05-11 18:28:18
  • How to bind domain name with nginx in ubuntu
    How to bind domain name with nginx in ubuntu
    Example of ubuntu using nginx to bind a domain name: 1. Prepare the configuration and put the following configuration file contents into the /etc/nginx/sites-available/node-app file. Content: upstreamnode_server{server127.0.0.1:3000fail_timeout=0 ;server127.0.0.1:5000fail_timeout=0;server127.0.0.1:5001fail_timeout=0;}server{listen80;listen[::]:80def
    Nginx 1031 2023-05-11 18:22:19
  • nginx current limiting module source code analysis
    nginx current limiting module source code analysis
    High-concurrency systems have three weapons: caching, downgrading, and current limiting; the purpose of current limiting is to protect the system by limiting the rate of concurrent access/requests. Once the rate limit is reached, it can deny service (direct to an error page), queue and wait ( Flash kill), downgrade (return to bottom-up data or default data); common current limits in high-concurrency systems include: limiting the total number of concurrencies (database connection pool), limiting the number of instantaneous concurrencies (such as nginx's limit_conn module, which is used to limit the number of instantaneous concurrent connections) ), limit the average rate within the time window (nginx's limit_req module is used to limit the average rate per second); in addition, the current can also be limited based on the number of network connections, network traffic, cpu or memory load, etc. 1. The current limiting algorithm is the simplest and crudest
    Nginx 1434 2023-05-11 18:16:12
  • How to install Nginx and integrate Lua on Centos7
    How to install Nginx and integrate Lua on Centos7
    Preparation work If the installed Linux can be connected to the Internet, and the Linux port can be used normally externally, then you can ignore the following two steps 1. Set up automatic acquisition of IP (1) Enter the command [root@localhost~]ipaddr# to view ip[ root@localhost~]nmcliconnectionshow can view the current network card information. Mine is ens33(2). Modify the information [root@localhost~]vi/etc/sysconfig/network-scripts/ifcfg-ens33 and change the last line onboot=no to onboot=yes. (
    Nginx 1196 2023-05-11 18:04:06
  • How does Nginx allow users to access web sites through username and password authentication?
    How does Nginx allow users to access web sites through username and password authentication?
    Experimental environment: Now the company has opened an internal website called www1.rsyslog.org. Everyone is required to enter the default user name and password before viewing the web page information. In order to browse the web page, use nginx to build a virtual host www1.rsyslog. org for testing. www1.rsyslog.org192.168.100.107dns1192.168.100.102 1. View the current system parameters [root@rhel6u3-2~]#uname–r//View the system kernel version number 2.6.32-279.el6.i686[root@ rhel6u3-2~]#cat/etc/r
    Nginx 1580 2023-05-11 17:19:15
  • How to configure and use NGINX web server in Ubuntu 16.04
    How to configure and use NGINX web server in Ubuntu 16.04
    Nginx is specially developed for performance optimization. Its most well-known advantages are its stability and low system resource consumption, as well as its high processing capabilities for concurrent connections (a single physical server can support 30,000 to 50,000 concurrent connections). It is a high-performance High performance HTTP and reverse proxy server, also an IMAP/POP3/SMTP proxy server. The first step to install Certbot is to install certbot, a software client that can automate almost all processes. Certbot developers maintain their own Ubuntu repositories that contain newer software than what exists in the Ubuntu repositories. Add Certbot repository: #add-apt-repositoryppa:ce
    Nginx 1143 2023-05-11 16:55:19
  • Nginx proxy function and load balancing instance analysis
    Nginx proxy function and load balancing instance analysis
    Configuration instructions for nginx proxy service 1. There is the following configuration in the http module. When the proxy encounters a status code of 404, we direct the 404 page to Baidu. error_page404https://www.baidu.com;#Error page However, careful friends can find that this configuration does not work. If we want it to work, we must use the copy code in conjunction with the following configuration: proxy_intercept_errorson; #If the status code returned by the proxy server is 400 or greater than 400, the set error_page configuration will take effect. The default is off. 2. If our agent is only allowed to accept g
    Nginx 1470 2023-05-11 16:43:13

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!