LNMP environment setup-Nginx, lnmp build nginx
1. Nginx configuration file test
root@kallen:/usr/local/nginx/sbin# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is
LNMP environment setup-Nginx, lnmp build nginx
1. Nginx configuration file test
root@kallen:/usr/local/nginx/sbin# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is
Nginx configuration file full version (use the latest stable version NGINX1.8.0), nginxnginxnginx1.8.0
# Used users and groupsUser nginx;
# Specify the number of work-derivative processes. Generally, several CPU cores are configured. Number of
Nginx http 500 Error Analysis and Solution, nginx500Scenario: When nginx is used as the Server Load balancer server to test the system concurrency, Nginx reports an Http 500 error when the concurrency is large. Error cause:When traffic is high,
More and more sites are using Nginx. ("engine x") is a high-performance HTTP and reverse proxy server, and is also an IMAP/POP3/SMTP proxy server. Nginx was developed by the Rambler.ru site with the highest access volume in Russia as Igor Sysoev. It
Window XP install nginx one, first go to the official website to download nginx Windows version, official website download: http://nginx.org/download/download to the software package, unzip the nginx-nginx.zip package to your favorite root directory,
Deployment and Management of nginx with source code of saltstack
Saltstack has been in touch for some time. I feel that saltstack is powerful in state file deployment, which can save us a lot of time for mass deployment, today, we will deploy nginx
Build rpmbuild of local yum source and yumrpmbuild
Before creating an internal yum source, you must standardize the installation directory of the software and package the existing applications.
There are currently two rpm packaging tools available:
Use FPM tool to create an RPM package
This rpm package is made using the fpm tool, and FPM is very easy to use. This command can make the installation and uninstallation of the rpm package more elegant. You can make some preparations before
Linux installation and configuration tutorial, linuxnginx tutorialInstallation and configuration of nginx in Linux
Worker_processes 4; error_log/data/logs/nginx/error. log; # pid logs/nginx. pid; worker_rlimit_nofile 51200; events {use epoll; worker_
Run the command in the/usr directory to download the latest nginxSource code:
Wget http://nginx.org/download/nginx-1.2.0.tar.gz
After decompression you can see the nginx-1.2.0 directory:
Tar zxvf nginx-1.2.0.tar.gz
Install the PCRE
For more information about how to compile and install, see my other blog: http://blog.csdn.net/sheismylife/article/details/6744394
For how to use the default nginx version of ubuntu directly, see: http://blog.csdn.net/sheismylife/article/details/81
Nginx needs to be different from the requested URL and forwarded to different servers.Example:URL http: // 127.0.0.1/JSON/0769/URL http: // 127.0.0.1/JSON/0734/Requests with a URL Suffix of 0769 must be forwarded to server1 and requests with a URL
Next, let's start learning the nginx configuration file.
Then CD to the ETC/nginx directoryPart 1 nginx. conf
The main configuration file is nginx. conf.
Php-related fastcgi_params
Python-related uwsgi_params
Nginx Note 1: Well, first make sure that
1. Prepare the environment
A. First, make sure your system has installed GCC and G ++.
B. Install PCRE
Pcre-8.32 http://sourceforge.net/projects/pcre/files/pcre/ download
A, unzip and install tar-jxvf pcre-8.32.tar.bz2
B, CD pcre-8.32
C,./configure -
Example 1Currently, Apache is not comparable in terms of stability. Therefore, it is more appropriate to use nginx for reverse proxy.Here we will proxy http: // 172.30.170.8: 8088/vod/. The reverse proxy server is named vod.xx.xxx.cn and listens to
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.