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 use Nginx reverse proxy and load balancing to build a multi-person test environment
- Implementation Principle When we visit a website, there will be a user-agent header in the request header, such as mozilla/5.0(macintosh;intelmacosx10.12;rv:50.0)gecko/20100101firefox/50.0. This ua can be customized, many Browser plug-ins also support adding custom UAs, such as Firefox's useragentswicher plug-in. As shown in the picture, a custom ua has been added here, and the content has been changed to its own name. By requesting the website through this ua, we can see in the request header that the ua has become our own, which is an identification. According to this ua, it is judged through nginx. Different
- Nginx 1183 2023-05-23 17:29:47
-
- Nginx service installation and software upgrade methods
- Experimental environment: [root@nginx~]#cat/etc/redhat-releaseCentOSLinuxrelease7.4.1708(Core)[root@nginx~]#uname-r3.10.0-693.el7.x86_64 Please prepare a low version Nginx server for low version environment installation. Reference: Novices can also complete the 0-based deployment of Nginx services, prepare and compile new versions of Nginx software, view old versions of Nginx: [root@nginxnginx-1.10.3]#/app/nginx/sbin/nginx-Vnginxversion:ngin
- Nginx 1407 2023-05-23 16:55:06
-
- How to install LEMP environment for Nginx server in Ubuntu
- Preparation for installing the ubuntu16.04 server version Step 1: Install nginx server 1. nginx is an advanced, resource-optimized web server program used to display web pages to visitors on the Internet. We start with the installation of the nginx server and use the apt command to obtain the nginx program from the official software repository of ubuntu. $sudoapt-getinstallnginx install nginx2 on ubuntu16.04, then enter the netstat and systemctl commands to confirm that the nginx process has been started and bound to port 80. $netstat-tlpn check nginx network port connection $s
- Nginx 997 2023-05-23 16:49:06
-
- How to configure nginx static file server
- 配置步骤配置nginx\nginx-1.13.4\conf\nginx.conf文件#usernobody;worker_processes1;#error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;events{worker_connections1024;}http{includemime.types;default_typeapplicat
- Nginx 1768 2023-05-23 16:43:13
-
- How to recompile Nginx and add modules
- 1. Find the source code root directory where nginx is installed (that is, the directory where the installation package is stored). If not, download the new source code and decompress cdsoftwaresnginx-1.10.2nginx-1.10.2.tar.gz2. Check the nginx version and compilation parameters /usr/local /nginx/sbin/nginx-v3, enter the nginx source code directory cdnginx-1.10.24, recompiled code and modules./configure--prefix=/usr/local/nginx--with-http_ssl_module5, execute make (note: thousands Never make in
- Nginx 2751 2023-05-23 15:28:50
-
- How to configure and use Nginx server in Node.js
- Node.js is a platform built on the Chrome JavaScript runtime, which is used to easily build web applications with fast response speed and easy expansion. Node.js uses an event-driven, non-blocking I/O model to be lightweight and efficient. It is very suitable for data-intensive real-time applications running on distributed devices, such as real-time chat and so on. However, gzip encoding, static files, http caching, SSL processing, load balancing and reverse proxy, etc., can all be completed through nginx, thereby reducing the load on node.js and saving website traffic through nginx's powerful cache. Improve website loading speed. The flow chart nginx configuration is as follows: http{proxy_
- Nginx 2508 2023-05-23 15:25:06
-
- How to configure Nginx to disable case sensitivity of PHP variable names
- Nginx (pronounced "engineX") is an open source, high-performance reverse proxy server that supports many load balancing algorithms. It was created by Igor Sysoev of Russia, and the first public version was released in 2004. Since then, it has become the choice of many websites and companies, including Facebook, Google, LinkedIn, Dropbox and many more. When using Nginx to forward requests for PHP websites, this may cause some problems because variable names in PHP are case-sensitive. Especially in the configuration of Nginx, if the URL contains uppercase letters when accessing the URL, a "404NotFound" may appear.
- Nginx 1587 2023-05-23 15:16:30
-
- Nginx Cache configuration plan and how to solve related memory usage problems
- 5 options for nginx caching cache 1. One of the traditional caches (404) This method is to direct the 404 error of nginx to the backend, and then use proxy_store to save the page returned by the backend. Configuration: location/{root/home/html/;#Home directory expires1d;#Expiration time of the web page error_page404=200/fetch$request_uri;#404 directed to the /fetch directory} Location/fetch/{#404 directed here internal ;#Indicates that this directory cannot be directly accessed externally
- Nginx 2518 2023-05-23 14:01:38
-
- How to build NFS server with nginx
- Introduction: What is an nfs server? NFS (Network File System) is a network file system. Its biggest function is to allow different machines and different operating systems to share files with each other through the network. Users can access files elsewhere on the network just like Same as using your own computer. Why do you need the nfs server to get data from the same place to ensure the consistency of website data? No matter which back-end server the load balancer distributes the request to, the content seen by the client is consistent. Whether nfs server is the best solution? No, nfs is a relatively cheap solution 1. Generally, companies will not use it. The performance is not particularly high. It is recommended to use a dedicated storage server. Advantages and Disadvantages of nfs
- Nginx 1297 2023-05-23 12:55:21
-
- How to compile and install nginx in lnmp environment
- The linux system I use is centos7.1. If the Linux system does not have gcc and other compilation software pre-installed, you can use the yum source to install it. To install nginx, you first need to install the dependent modules pcre, zlib, and openssl. The gzip module requires the zlib library. The rewrite module requires the pcre library. The ssl function requires the openssl library. 1. Install pcre dependencies and download pcre-8.38wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38. tar.gz decompress tar-zxvfpcre-8.38.t
- Nginx 1038 2023-05-23 12:34:06
-
- How to restart nginx service in ubuntu
- 1. Use the shortcut key [Ctrl+Alt+T] to open the terminal command mode. 2. You can restart the nginx service in the following ways. Method one, in the nginx executable directory sbin, enter the following command to restart/nginx-sreload#Restart method two, find the current nginx process number, and then enter the command: kill-HUP process number to restart the nginx service#ps-ef|grepnginx #Find the current nginx process number]#kill-TERM132#Kill the nginx process, 132 is the nginx process number
- Nginx 3282 2023-05-23 12:22:13
-
- How to install and deploy Nginx in Centos 6.5 64-bit
- 1. Introduction to nginx nginx is a web server that can also be used for load balancing and reverse proxy. The most commonly used one at present is load balancing. I will not introduce the specific introduction. Baidu has many. Let’s go directly to the installation step 2. nginx Installation 1. Download nginx and related components. The Linux system is centos6.564. I directly switch to the root user to install and enter the user directory to download the program and download related components [root@localhostsrc]#wgethttp://nginx.org/download/nginx- 1.10.2.tar.gz omit installation content...[root@localhos
- Nginx 1097 2023-05-23 12:19:06
-
- Nginx server setup and basic configuration example analysis
- nginx (enginex) is a high-performance http server and reverse proxy server. This software was developed to solve the c10k problem. The architecture of nginx takes advantage of many modern operating system features to implement a high-performance http server. For example, on Linux systems, nginx uses epoll, sendfile, fileaio, directio and other mechanisms, which makes nginx not only highly efficient, but also has a very low resource usage. Officials claim that nginx only requires 2.5m of memory to maintain 10,000 inactive httpkeep-alive connections. . nginx will run multiple processes simultaneously on demand: a main process (ma
- Nginx 1544 2023-05-23 11:22:06
-
- How to configure multiple versions of PHP with Nginx and Apache
- Sometimes our projects cannot all have the same PHP version, and each project needs to be configured with a different version of PHP. Pagoda and PHPStudy are implemented through the following configuration: Nginx cut conf (optional) add includevhosts/* in nginx.conf .conf; In this way, Nginx will automatically import all *.conf files in the current directory -> vhosts directory, making it easier for each project to manage the Nginx configuration file separately and configure multiple versions of PHP. Add server{listen80;server_namelocalhost;root"D: in the conf file: /WWW"
- Nginx 1036 2023-05-23 11:10:06
-
- How to configure Nginx server https
- Apply for a certificate There are currently many organizations online that provide free personal SSL certificates, with validity periods ranging from a few months to a few years. Take startssl: https://www.startssl.com as an example. After successful application, it will be valid for 3 years and can be renewed for free after expiration. The specific application process is also very simple. After registering and logging in, select certificateswizard>>dvsslcertificate to apply for a free SSL certificate. After verifying the domain name through email, then generate the csr of the ssl certificate in your own server. Remember the secret to generate the input. You will use it later: opensslreq-newkeyrsa:2048-keyoutwe
- Nginx 1549 2023-05-23 11:01:06