Project Practice: 1-LNMP construction, nginx reverse proxy and cache implementation, lnmpnginx
Practice 1: build commercial websites such as lnmp and Xiaomi
Environment: Disable firewall, selinux
1. Install the package and enable the Service
Yum-y
Note: Modify the values of several variables in the Start header.
Program code
Copy codeThe Code is as follows: SET NGINX_PATH = D:
SET NGINX_DIR = D: \ nginx-0.7.63 \
SET PHP_DIR = D: \ PHP \
++ Code
Cls
@ ECHO OFF
SET NGINX_PATH = D:
SET NGINX_DIR
Configure mysql + php (ThinkPHP) + nginx and centosthinkphp in centos 7
Recently, I deployed my website on the Linux platform by configuring servers !), Take notes!
1. First, install mysql under centos (refer to the blog)
The mysql yum Library
Recently, due to project requirements, the server has been upgraded from CentOS6 to CentOS7, and the corresponding PHP version has also been upgraded to PHP5.6. We are familiar with the one-click installation package of the LEMP environment. However,
1. Download the php5.5.34 version of PHP
Extract
2. Create PHP-FPM Users
useradd-s/sbin/nologin php-fpm
3. CD php5.5.34
Perform:
4. Compile: "Reference to Amin Linux configuration Options"
./configure \--prefix=/usr/local/php
Nginx + Php-fpm + MySQL + Redis source code compilation and installation guide
Note: This tutorial includes the following three parts:
1. Compile and install Nginx in source code
2. Compile and install the source code php and mysql and redis
Requirement: Build LNMP environment under Centos7.3Article reprinted from: http://blog.csdn.net/wszll_alex/article/details/76285324Wild Forest1. Turn off firewall and SELinux open file Selinuxvim/etc/sysconfig/SELinuxthe files in the
0. Installation Environment DescriptionThe installation of the PHP diagram is as follows, Nginx and PHP on the same server, MySQL alone a server. The previous said how to build nginx service, how to configure the virtual host, MySQL also in the
Linux PHP compilation and installation parameters detailed./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-mysql=/usr/local/mysql--
Native environment: Server is Aliyun ECS; the mirror used is: public mirror CENTOS 7.2
A. Nginx installation
1. Download the Nginx package (package) corresponding to the current system version
wget http://nginx.org/packages/centos/7/noarch/RPMS/
First, install MySQL
At present, the Web server has very few run static page, if you want to run dynamic Web site that of course can not be separated from the database, although in the previous article has written how MySQL is
Related theory
1. IIS supports a variety of ways to extend the language, and for IIS7 to execute PHP files by fastcgi Way
2. PHP through the "extension" in the configuration file, extended to support some features, but currently PHP itself no longer
Lvs:
LVS is a four-tier open source load balancer, working in the NetFilter framework input chain, which is based on different calculations
method to dispatch the user's request to the back-end server, it is not limited by the SOCKT socket file,
Today to the Company by convention to check the status of all servers, found that the memory of a server is much larger than usual, the following figure
Immediately QQ asked the next program development whether the last 1-2 days changed something,
This refers to the MongoDB driver of PHP.Version:> Cat/etc/os-releaseName= "CentOS Linux"version= "7 (Core)"Id= "CentOS"Id_like= "Rhel Fedora"Version_id= "7"Pretty_name= "CentOS Linux 7 (Core)"Ansi_color= "0;31"Cpe_name= "Cpe:/o:centos:centos:7"Home_
This article brings you the content is about PHP extension xhprof How to analyze the performance of the project, there is a certain reference value, the need for friends can refer to, I hope to help you.
I. BACKGROUND
The project is coming soon,
Transferred from: http://blog.csdn.net/yanzi1225627/article/details/49123659Server environment: CentOS6.5 64-bitGoal: Build LNMP (Linux + Nginx + MySQL + PHP +svn), where SVN is used instead of FTP to facilitate debugging of synchronization code in
Recently configured the Server Deployment Web site on the Linux platform (say more tears!) ), take a note!First, install MySQL under CentOS (refer to blog)The MySQL Yum Library provides a simple and convenient way to install and update MySQL-related
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.