Article Tags
How to bind domain name and set root directory to nginx server

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?

May 13, 2023 pm 09:10 PM
nginx here
How to set up Nginx and Tomcat servers to achieve load balancing under Debian

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

May 13, 2023 pm 09:01 PM
nginx tomcat debian
How to implement Nginx reverse proxy to support long connections

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

May 13, 2023 pm 08:52 PM
nginx
How to install Nginx server under CentOS7

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

May 13, 2023 pm 08:43 PM
nginx centos7
How to install nginx1.12.1 under centos6.4

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

May 13, 2023 pm 08:34 PM
centos nginx
How to install and configure the blogging program Typecho on the Nginx server

How to install and configure the blogging program Typecho on the Nginx server

1. Download #Website directory cd/usr/local/nginx/html/wgethttps://github.com/typecho/typecho/releases/download/v0.9-13.12.12-release/0.9.13.12.12.-release .tar.gz-otypecho.tar.gztart-zxvftypecho.tar.gz The source code of typecho is placed in /usr/local/nginx/html/build2. Configure the nginx virtual machine (modify www.cxy.cc for you

May 13, 2023 pm 08:31 PM
nginx typecho
How to smoothly upgrade nginx after nginx is compiled and installed

How to smoothly upgrade nginx after nginx is compiled and installed

1. Download page for the new version of nginx: wget-c http://nginx.org/download/nginx-1.13.12.tar.gz 2. Get the configuration of the old version of nginx and view the current version: /usr/local/nginx/sbin /nginx-vView the current configuration:/usr/local/nginx/sbin/nginx-v[root@zixuephpnginx-1.13.6]#/usr/local/nginx/sbin/nginx-vnginxversion:nginx/1.13.6[root @zixuep

May 13, 2023 pm 08:25 PM
nginx
What are the characteristics and differences between Nginx and Apache

What are the characteristics and differences between Nginx and Apache

1. Nginx features 1. It is lightweight and written in C. The same web service will occupy less memory and resources. 2. Anti-concurrency, nginx uses epollandkqueue as the development model, processing requests is asynchronous and non-blocking, and the load capacity is much higher than that of apache, while apache is blocking. Under high concurrency, nginx can maintain low resource consumption and high performance, while apache is prone to a surge in the number of processes and denial of service when PHP processing is slow or the front-end pressure is high. 3. When nginx is started, it will generate a master process. Then, the master process will fork multiple worker sub-processes. Finally, each user's

May 13, 2023 pm 08:10 PM
apache nginx Features
How to configure the server-side environment of Nginx+Tomcat

How to configure the server-side environment of Nginx+Tomcat

1. javajdk installation: #Download the corresponding jdk software package, then unzip and install it. The name of my package is: jdk-7u25-linux-x64.tar.gztar-xzfjdk-7u25-linux-x64.tar.gz;mkdir-p /usr/java/;mvjdk1.7.0_25//usr/java/.#Then configure the environment variables so that jdk can be referenced anywhere, configure as follows: #vi/etc/profile add the following statement at the end: exportjava_home=/usr /java/jdk1.7.0_25exportclasspath=$

May 13, 2023 pm 07:58 PM
nginx tomcat
Nginx service optimization methods

Nginx service optimization methods

Nginx service optimization can be optimized from several aspects: hiding version numbers, changing users and groups, configuring web page cache time, log cutting, and setting connection timeouts. 1. Hidden version number In the production environment, the version number of Nginx needs to be hidden to avoid leaking the Nginx version and preventing attackers from conducting attacks on specific versions. To check the Nginx version, use the command curl-Ihttp://172.16.10.10/ in CentOS. [[emailprotected]~]#curl

May 13, 2023 pm 07:28 PM
nginx
What are the methods to optimize Nginx performance?

What are the methods to optimize Nginx performance?

Nginx performance optimization 1. Number of Nginx running working processes The number of Nginx running working processes is generally set to the CPU core or the number of cores x 2. If you don’t know the number of cores of the CPU, you can press 1 after the top command to find out, or you can check the /proc/cpuinfo file grep^processor/proc/cpuinfo|wc-l[root@lx~]#vi/usr/local/nginx1 .10/conf/nginx.confworker_processes4;[root@lx~]#/usr/local/nginx1.10/sbin/nginx-sreloa

May 13, 2023 pm 07:28 PM
nginx
How to install nginx1.12.1 under centos6.4

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

May 13, 2023 pm 07:10 PM
centos nginx
How to configure nginx to limit the access frequency of the same IP

How to configure nginx to limit the access frequency of the same IP

1. Add the following code to http{} in nginx.conf: limit_conn_zone$binary_remote_addrzone=perip:10m;limit_conn_zone$server_namezone=perserver:10m; 2. Add the following code to the server{} configuration of the website that needs to limit the number of concurrencies and download bandwidth. The following code: limit_connperip2;limit_connperserver20;limit_rate100k; additional parameters: $binary_remote_addr is to limit the same client i

May 13, 2023 pm 07:04 PM
nginx ip
How to install nginx on Linux system

How to install nginx on Linux system

Nginx (enginex) is a high-performance HTTP and reverse proxy web server known for its stability, rich feature set, sample configuration files, and low system resource consumption. Introduction to nginx: Nginx (enginex) is a high-performance HTTP and reverse proxy web server. Nginx is a lightweight web server/reverse proxy server and email (IMAP/POP3) proxy server. Released under a BSD-like license. Its characteristics are that it occupies less memory and has strong concurrency capabilities. In fact, nginx’s concurrency capabilities perform better among web servers of the same type. Users of nginx websites in mainland China include: Baidu, JD.com, Sina, etc.

May 13, 2023 pm 07:01 PM
linux nginx

Hot tools Tags

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use