Nginx server Basics
I. Nginx Introduction
Nginx: Nginx is a software server (lightweight). Therefore, its primary function can be combined with server hardware. Our applications can be released on the nginx server, the effect has been achieved by
The domain names www.s135.com & nbsp; and blog.s135.com both point to the IP address of the Nginx server. The user access the http://www.s135.com, load balancing its 192.168.1.2: 80, 192.168.1.3: 80, 192.168.1.4: 80, 192.168.1.5: 80 four servers.
The nginx server cannot be started under Windows 7 due to port occupation. Today, I want to learn about the nginx server, and I don't want to go to linux (the OS is Windows 7). For convenience, I just want to try it in this book. I don't want to
If usage in Nginx Server Configuration
The configuration of Nginx Server takes php as an example, as follows:
Server {Root/var/webproject/www/mytools-php;Index index.html index. php;5 location ~. +? \. Php (/| $ ){Fastcgi_split_path_info ^ (. +? \.
In this record the Nginx server nginx.conf configuration file description, some comments collected with the network.
Run user
User Www-data;
Start process, usually set to equal to the number of CPUs
Worker_processes 1;
Global error log and PID file
This article mainly introduces the Nginx server configuration PathInfo mode (to solve the dolphin PHP background infinite redirection problem), has a certain reference value, now share to everyone, the need for friends can refer to
server {Listen 80
: This article mainly introduces the nginx server system optimization. if you are interested in the PHP Tutorial, refer to it. 1 linux default core file size is 0
What is a core file? when a program crashes, the stored images of the process are
: This article mainly introduces several methods for nginx server load balancer to process session sharing. For more information about PHP tutorials, see.
1) use cookie instead of sessionBy changing the session into a cookie, you can avoid some
Briefly describe how to install the Nginx server in CentOS 7
Download the Nginx bundle (package) corresponding to the current system version# wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
Build
Data collection-Upgrade Nginx server, add HTTPS process problems encountered
tags (space delimited): Blog DevOps
Operation and maintenance students to help the server with SSL certificate, after modifying the Nginx conf file.
In the local test to
First, Nginx introductionnginx: Nginx is a software server (lightweight), so its main function is to be able to integrate with the server hardware, our application can be placed on the Nginx server to publish, has reached the effect of users to
This section describes the problems encountered after nginx Server Load balancer is used:
Session Problems
File Upload/download
Generally, multi-server load splitting is used to solve server load problems. Common solutions include:
Nginx server configuration tutorial (centos6.0) in linux, nginxcentos6.0
Configure the nginx server in linux.
In the download and installation of pcre and nginx, the root identity should be used, generally downloaded to/usr/local/src/, download to
I deploy the nginx server In Debian 7 in VMware and deploy it offline. The process is as follows:
1. Prepare the required offline installation package
Links (the download links are provided at the end of these package articles)
2. Install PCRE
Tar
Summary: For a large website, Server Load balancer is an eternal topic. With the rapid development of hardware technology, more and more Server Load balancer hardware devices are emerging, such as F5 big-IP, Citrix NetScaler, and radware, however,
Before installing Nginx, first install the compilation environment GCC and g++, and then use CentOS as an example to install Nginx, install nginx need Prce Library, zlib Library and SSL support, in addition to SSL outside the other we are to the
Concurrent Linux under the high concurrency of Nginx server, when the number of TCP time_wait sockets often reach 20,000 or 30,000, the server can easily be dragged to death. By modifying the Linux kernel parameters, you can reduce the number of
First introduce the environment used: CentOS 7.4, PHP 7.0, Nginx 1.12The Linux system version can be viewed via the command: Lsb_release-a.Now it's time to get to the chase!1. First check to see if Nginx has been installed successfully.Linux command:
Typically, an optimized Nginx Linux server can achieve 500,000–600,000/sec request processing performance, while my Nginx server can stabilize the processing performance of 904,000 times/sec, and I test over 12 hours with this high load, The server
In this article, I will introduce nginx about location processing, we all know nginx configuration file There will be a lot of location,nginx configuration instructions can be divided into the scope of main,server,location these 3 species, In fact,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.