Today, the high volume of servers, IP from China, and is not normal access to the IP, resulting in PHP-FPM CPU 100%, the site is very slow to open, has already used iptables limit the number of connections, but because the same IP connection number
Use the yum command provided by CentOS Linux to install and upgrade the library.
1. change yum source to NetEase source to increase speed
Vi/etc/yum. repos. d/CentOS-Base.repoThe changes are as follows:
# CentOS-Base.repo
#
# This file uses a
1. The source, Sohu is quite easy to use.
1.1 Backup Centos-base.repo
cd/etc/yum.repos.d/
CP Centos-base.repo Centos-base.repo.bak
1.2 Replacement Source
Open the Centos-base.repo with VI and empty the contents, then copy the contents below and
Warmly welcome to visit Xiao Spontaneous combustion!!1 Extracting PHP2 Installing ApacheModify the Apache configuration file.Install in CGI modeThe following three lines need to be added to the Apache httpd.conf configuration file to set up CGI:
1. What is a plug-in? The plug-in is located in the addonsplugins directory? The plug-in extends some functions without modifying any application-core code. It has the ability to enable and disable it .? Thinksns plug-in mechanism is based on Hook,
Units need a PHP project, but only one domain name, the server operating system is Redhat 4.7, has been the deployment of Tomcat, redo or merge is not possible, but must share a host, think of the Apache HTTP server, with JK and Tomcat connection,
1. For the source, Sohu is quite easy to use.
1.1 backup CentOS-Base.repo
CD/etc/yum. Repos. d/
CP CentOS-Base.repo CentOS-Base.repo.bak
1.2 replace Source
Open the CentOS-Base.repo with VI, clear the content, copy the following content into it,
First, the concept of behavioral expansion is one of the core components of the TP architecture, and I will summarize the explanation of the behavior:TP goes through many steps during the process from accepting to HTTP requests to eventually
This paper mainly introduces the behavior extension and plug-in principle analysis in thinkphp, the behavior in thinkphp, the custom behavior, the custom plug-in, and so on, to provide reference for everyone, hoping to help you.
Principle
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.