Nginx's powerful response capabilities to static files make up for the shortcomings of the Apache environment to some extent. nginx is used as a reverse proxy, and some of them are used to improve the corresponding capabilities of static files, in
I. Introduction
Ngx-http-status-code-CounterIs a statistical information used to record the nginx response status code. The author combines this module with Munin to analyze the HTTP status of the website, we can also combine this with Nagios,
Copy codeThe Code is as follows :/*
Simulate the ls command to implement the parameter-tariRl. Some code is repeated and can be improved.
You can add Parameters Based on the program. The program idea is clear and easy to expand.
*/
# Include
#
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
Nginx compile, add an Ngx_cache_purge installation module
Download Nginx and third party Ngx_cache_purge module on official websiteHttp://wiki.nginx.org/Installhttp://labs.frickle.com/nginx_ngx_cache_purge/
Compiling and installing
I. OS:
[Root@linuxea lnmp]# Cat/etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)Mariadb-10.0.27-linuxNginx1.10:1php5.6.26II. Notice
Separating LNMP on Docker single machineThe/mydata/data Data directory has been placed on the host before
ELK StackELK stack is also a combination of three open source software, the formation of a powerful real-time log collection analysis and display system.
Logstash: Log Collection tool, from local disk, network services (their own listening port,
First, the installation of Nginx must install the appropriate compilation tools
Yum-y install gcc gcc-c++ autoconf automake yum-y install zlib zlib-devel OpenSSL openssl-devel pcre-devel
Set up Nginx Group
Groupadd-r
Linux Compiler installation Nginxbackground:Learn Nginx before you need to install Nginx, here record how to compile the installation Nginx, for later review use.PS: There is no special need, it is best to use Yum installation, Yum installation need
Nginx Compilation Parameters:
./configure--help
--help Display this prompt information
--prefix=path set up the installation directory
--sbin-path=path Set Program file directory
--conf-path=path Set configuration file (nginx.conf) directory
--error-
Original: http://zhou123.blog.51cto.com/4355617/840837
The reverse proxy for Nginx is mainly in four aspects:1, url rewrite url rewirte2, reverse proxy reverse proxy and enable caching function3. Load balance4, the installation of Third-party
Unlike lamp, the N in Lnmp refers to the Nginx (a Web service software similar to Apache). At present this kind of environment application is also very many. Nginx Design is designed to provide a fast and efficient and multiple concurrent Web
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.