Puppet uses the SSL (HTTPS) protocol for communication, and by default, the puppet server uses a ruby-based Webrick http server. Because the Webrick HTTP server is not very robust in handling the performance of the agent side, it is necessary to
1, about FastdfsExcerpt from: Http://www.oschina.net/p/fastdfsFastdfs is an open source Distributed File System, she manages the file, features include: file storage, file synchronization, file access (file upload, file download), etc., to solve the
Many documents use Yum to install tools such as MySQL, HTTP, and PHP. Here uses the source installation form, realizes the entire record from the Lnmp-zabbix.First, LNMP platform constructionReference:
Nginx/lvs/haproxy Load Balancer software pros and consHttp://www.ha97.com/5646.htmlPs:nginx/lvs/haproxy is currently the most widely used three load balancing software, I have been implemented in a number of projects, reference to some information,
Lab environment and software version:CentOS version: 6.6 (2.6.32.-504.el6.x86_64)Apache Version: nginx-1.6.2Mysql version: Mysql-5.6.23PHP Version: php-5.6.3One, shut down the firewall: service iptables stopChkconfig iptables offSecond, close
My previous configuration in Apache is as follows:
RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^ index.php [QSA,L]
Role: If the URL points to a file that does not exist in the server directory, the URL is all directed to index.php.
Structure I
My development environment is Nginx + PHP, the environment is simple and convenient, but has been unable to find the PHP log file, ask how to generate PHP log files?PHP Version: PHP 5.6 (5.6.3) VC11 x64 Non Thread Safe
Reply to discussion
The legendary Nginx is more than the load balance of Apache, called the artifact. Alas, I have always been to new things not cold. However, there are many servers on the server with Nginx to do HTTP server, today snatch understand. Search the
The Nginx version used in this document
2016-01-26 nginx-1.8.1 stable and nginx-1.9.10 mainline versions
Pronunciation
The Nginx pronunciation is engine x .
Version
Nginx download page ( http://nginx.org/en/download.html ) will also give the latest
# #定义nginx运行的用户各用户组
User Nginx Nginx;
# #nginx进程数, the recommended setting is consistent with the number of CPU cores
Worker_processes 1;
Worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000;
# #全局错误日志定义类型
PS: nginx/LVS/haproxy is currently the most widely used three load balancing software. I have implemented these software in multiple projects. I have referenced some materials and combined some of my experience in using it, to sum up.
Generally,
Document directory
1. Select a version
2. Pay attention to the directory structure
Iii. Dependency
4. Install Nginx
V. Use
Vi. Summary
VII. Appendix: Compile-time options
Download the nginx source code package (from
Upstream and health-check modules for load balancing and status detection
Topology:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/3F/wKioL1ROQR3xU08mAADPyVb7QB0815.jpg "Title =" 25.png" alt =
1. Configure the SSL module for nginx
Nginx does not have an SSL module by default, while nginx 0.7.63 is installed in my VPs by default. The following describes how to upgrade nginx to 0.7.64 and configure the SSL module:
Download nginx 0.7.64
OpenResty (nginx + lua)OpenResty Official Website: http://openresty.org/OpenResty is a nginx and its various third-party modules of a packaged software platform. The most important thing is that it packs lua/luajit so that we can use the lua script
[Linux] install Nginx on Linux and nginx on linux
This article describes how to install Nginx in Linux. the Linux system is CentOS 7.2.
1. Download Nginx from the official Nginx website. The version used here is 1.13.6.
2. Upload the downloaded
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
Install and configure nginx as a tcp proxyPreviously, haproxy was used for Proxy tcp. After nginx 1.9, one more choice is available. You can use nginx as a proxy. In this way, you do not need to get familiar with haproxy again.Tcp proxy is
Nginx max client computing method, nginxclient
We mainly describe two formulas that are often mentioned on the Internet:Max_client = worker_processes * worker_connections/4
The two formulas respectively indicate that when Nginx acts as a server
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.