current location:Home > Technical Articles > Operation and Maintenance > Nginx
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- 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 1722 2023-05-11 20:52:04
-
- 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 1465 2023-05-11 20:37:06
-
- 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 1024 2023-05-11 20:28:11
-
- 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 4556 2023-05-11 20:07:04
-
- 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 1487 2023-05-11 19:34:04
-
- 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 5050 2023-05-11 19:28:16
-
- 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 2084 2023-05-11 19:19:04
-
- 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 5557 2023-05-11 18:52:06
-
- 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 3113 2023-05-11 18:28:18
-
- 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 1188 2023-05-11 18:22:19
-
- 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 1642 2023-05-11 18:16:12
-
- 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 1375 2023-05-11 18:04:06
-
- 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 1708 2023-05-11 17:19:15
-
- 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 1274 2023-05-11 16:55:19
-
- 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 1617 2023-05-11 16:43:13