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 install SSL certificate and configure WordPress CDN under Linux Nginx
- 1. nginx requires two configuration files to install the SSL certificate (warm reminder: please back up the server configuration file you need to modify before installing the certificate) 1_root_bundle.crt; 2_domainname.com.key. Note: These three certificate files are all in the folder fornginx.zip. For example: 1_root_bundle.crt is the root certificate chain (public key), and 2_domainname.com.key is the private key. (Among them: the certificate public key and private key files are generally named after your domain name; the nature of the certificate suffixes crt and cer are the same). 2. Modify nginx certificate code 1. Open the conf directory in the nginx installation directory
- Nginx 1393 2023-05-13 22:43:17
-
- How to deploy DoNetCore to Alibaba Cloud with Nginx
- To configure the domain name and server for the basic environment, please first purchase and create an application instance based on the cloud server ecs. Select the system image as ubuntu16.04, connect remotely through ssh on this machine, and perform related configurations ssh...sudoapt-getupdatesudpapt-getupgradesudoapt- getautoremovesudoapt-getclean install and configure nginxsudoapt-getinstallnginxsudoservicenginxstartsudogedit/etc/nginx/sites-available/defau
- Nginx 953 2023-05-13 22:37:11
-
- How to install and configure nginx for LNMP compilation and installation
- 1. Preface This installation uses source code installation. The main resource package is downloaded from the official website, and the secondary dependencies are installed using yum. This article only involves the installation of nginx, not the configuration of nginx. Corresponding to how nginx accesses php, this article does not involved. 2. Installation steps nginx2.1, download nginxwgethttp://nginx.org/download/nginx-1.12.0.tar.gz2.2, download pcre installation package wgetftp://ftp.csx.cam.ac.uk/pub /software/programming/pcre/pcre-8.39.tar.gz package
- Nginx 754 2023-05-13 22:22:18
-
- nginx JavaScript capabilities nginScript example analysis
- nginx can mainly do the following: 1. Working on the seventh layer of tcp, it can analyze and process all contents of the http protocol. 2. Support lua, perl, javascript dynamic language 3. Support third-party plug-ins Let’s talk about nginscript1. nginscript is a subset of javascript/ecmascript. It implements most of the capabilities of the JavaScript language, does not fully comply with the ECMAScript standard, and abandons the more difficult parts of JavaScript. 2. nginscript is not implemented through the v8 engine. But through a smaller, lower energy consumption, more consistent with nginx application
- Nginx 1162 2023-05-13 22:04:10
-
- nginx installation example code analysis
- nginx installation system platform: centosrelease6.6 (final) 64-bit. 1. Install the compilation tools and library files yum-yinstallmakezlibzlib-develgcc-c++libtoolopensslopenssl-devel 2. First, install pcrepcre to enable ngnix to support the rewrite function. 1. Download the pcre installation package, download address: [root@bogonsrc]#wgethttp://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8
- Nginx 1098 2023-05-13 21:58:10
-
- Nginx reverse proxy cross-domain basic configuration method
- nginx interface service reverse proxy basic configuration server{listen8443;#Listening port number server_namea.test.com;#Server name client_max_body_size100m;#Define the timeout for reading the client request header sslon;ssl_certificatetest.pem;ssl_certificate_keytest.key;ssl_session_timeout5m ;ssl_protocolssslv3tlsv1.2;ssl_ciphersecdhe-rsa-aes256-sha38
- Nginx 1403 2023-05-13 21:49:10
-
- Tomcat7 Nginx Redis configuration method under CentOS6.5
- 1. Installation and configuration of tomcat 1. In the server.xml file, modify the port of tomcat2. A total of 3 modifications are required, namely 8080, 8005 and 8009, which are modified to 9080, 9005 and 9008 respectively. After configuring this step, enter http://localhost:8080 and http://localhost:9080 in the browser to see the tomcat homepage. 2. nginx configuration to achieve load balancing. 2.1Install pcre. Because the rewrite module of nginx requires pcre support, the pcre library needs to be installed. 2.1.1. Obtain the pcre compilation and installation package at http
- Nginx 1291 2023-05-13 21:34:04
-
- How to upgrade nginx to support HTTP/2 server push
- Upgrade nginx to 1.14.01 and configure the official yum source of nginx. Create the configuration file /etc/yum.repos.d/nginx.repo and write the following content [nginx]name=nginxrepobaseurl=http://nginx.org/packages/centos/7/$basearch/gpgcheck=0enabled=12, Update nginxyumupdate3, restart nginxsystemctlrestartnginx4, verify nginx version $curl-i127.0.0.1http/1.1301
- Nginx 958 2023-05-13 21:25:13
-
- Analysis of Nginx installation and configuration examples under Linux
- 1. Install compiled files and library files yum-yinstallmakezlibzlib-develgcc-c++libtoolopensslopenssl-devel 2. Install pcre. The pseudo-static matching rules of nginx's rewrite require regular expressions, and pcre plays this role. Download address: wgethttp://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz If wget is not installed, you need to install wget first, yum-yinstallwget.
- Nginx 1094 2023-05-13 21:16:04
-
- How to configure multiple virtual hosts in nginx
- It is very convenient to configure the virtual host vhost under nginx. Mainly add a server to the nginx configuration file nginx.conf. For example, I want to configure two virtual hosts and access them through the domain names linux.com and linux2.com. The corresponding directories are /usr/htdocs/linux and /usr/. htdocs/linux2 (this directory is where your development project files are placed). Because I installed a local virtual machine, I first added two redirections to the hosts file: 192.168.20.250linux.com//192.168.20.250 is my virtual machine. The IP of the machine, the bridge mode used is 192
- Nginx 1547 2023-05-13 21:13:09
-
- How to bind domain name and set root directory to nginx server
- It is very convenient for the nginx server to bind the domain name and set the root directory. First, enter the nginx installation directory, then execute vimconf/nginx.conf to open the nginx configuration file, and find the code snippet of server{........}, here The code snippet is used to configure the corresponding site. First, we should resolve the domain name to the IP address of our server in the domain name control panel, and then the binding can take effect. First, find the server_name item in our code snippet and then add the following domain name. Change it to the domain name we want to bind. Root is the specified root directory. Just set it to the directory we specify. What if we want to bind multiple domain names?
- Nginx 2367 2023-05-13 21:10:18
-
- How to set up Nginx and Tomcat servers to achieve load balancing under Debian
- 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 1323 2023-05-13 21:01:04
-
- How to implement Nginx reverse proxy to support long connections
- Preface The connection between nginxupstream and the backend is a short connection by default. It initiates a connection to the backend through http/1.0 and sets the "connection" header of the request to "close". The connection between nginx and the front end is a long connection by default. After a user establishes a connection with nginx, he sends multiple requests through this long connection. If nginx is only used as a reverseproxy, one user connection may require multiple short connections to the backend. If the back-end server (origin site or cache server) is not strong enough to handle concurrent connections, bottlenecks may occur. nginx current upst
- Nginx 2294 2023-05-13 20:52:04
-
- How to install Nginx server under CentOS7
- The environment required for installation nginx is developed in C language. It is recommended to run on Linux. Of course, you can also install the windows version. This article uses centos7 as the installation environment. 1. gcc installation To install nginx, you need to compile the source code downloaded from the official website first. Compilation depends on the gcc environment. If there is no gcc environment, you need to install: yuminstallgcc-c++ 2. pcrepcre-devel installation pcre (perlcompatibleregularexpressions) is a perl library, including perl Compatible regular expression library. nginx's http module uses PCRE to parse regular expressions, so
- Nginx 3468 2023-05-13 20:43:04
-
- How to install nginx1.12.1 under centos6.4
- Installation required environment 1.gcc installation To install nginx, you need to compile the source code downloaded from the official website first. The compilation depends on the gcc environment. If there is no gcc environment, you need to install: yuminstallgcc-c++2.pcrepcre-devel installation pcre (perlcompatibleregularexpressions) is A perl library that includes a perl-compatible regular expression library. The http module of nginx uses pcre to parse regular expressions, so the pcre library needs to be installed on Linux. pcre-devel is a secondary development library developed using pcre. nginx also requires this library. Command: yu
- Nginx 1615 2023-05-13 20:34:15