php5.4 php-fpm Restart Tutorial-PHP
Home Page
Web Development
Android
J2ee
Php
Linux/unix
Mysql
C#
More...
Current Location: Code fan»php»php5.4 php-fpm Restart tutorial
php5.4
Install the necessary toolsRpm-qa|grep LIBXML2 See if the tool is loadedYum List | grep libxml2Yum Install Libxml2-develYum Install LIBXML2Yum Install LibtoolYum Install gcc-c++Yum List|grep pcreYum Install Pcre-develGroupadd Www-dataUseradd-g
Configuration of PHP.ini, PHP-FPM, and www.conf in PHP7Http://www.tuicool.com/articles/NjmQNj6PHP-FPM off:Kill-sigint ' Cat/usr/local/php/var/run/php-fpm.pid 'PHP-FPM Restart:KILL-SIGUSR2 ' Cat/usr/local/php/var/run/php-fpm.pid 'To view the number
1, JS and Dom relationship (the effect is JS on the results of DOM object operation)Browser has the function of rendering HTML code, the HTML source in memory to form a DOM objectInside the browser there is a JS interpreter, such as Chrome with the
(1) How do PHP scripts execute regularly under Linux?(2) How do I set up scheduled tasks under Linux?(3) Crontab timed Execution ProgramCore tips:Type crontab-e Edit crontab service fileThere are two scenarios: (there is also a case where you can
Download the following files to/usr/local/src/
Apache (the most popular Web server platform for UNIX platforms) 2.tar.gz
MySQL (best combination with PHP) -5.0.22.tar.gz
PHP (as the current mainstream development language)
Today caught the 123System OPenVZ VPS Full-price opportunity, purchased a 512MB memory, dual-core 3.49Ghz Xeon e3-1270 V3 CPU package, this is the first time to use 123system products, the overall impression is very good, At present speed is also
Nginx is a Web server, so the Nginx access log only to access the page records, there will be no PHP error log information.Nginx to the PHP request to the PHP-FPM fastcgi process to handle, the default PHP-FPM will only output PHP-FPM error message,
Configure PHP-FPM
Default PHP installation directory:/usr/local/phpFirst copy the configuration file and edit it
Copy Code code as follows:
Cp/usr/local/php/etc/php-fpm.conf.default->/usr/local/php/etc/php-fpm.conf
Vi/usr/local/php/
To agree on several directories
yusr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.ini
Startup parameters for PHP-FPM
#测试php-FPM
At work we sometimes encounter things like having to publish data to multiple servers at the same time, or working on multiple tasks at the same time. The request can be processed concurrently using PHP's Curl_multi, but because of the network and
PHP-FPM optimization of php5.6
One. PHP-FPM three modes of operation OnDemand static dynamic http://blog.csdn.net/pzqingchong/article/details/53379772Two. The dialectical view about PHP parameter
Business requirements
The app client sends the JSON data to the server interface once a day, emptying the cache and sending it again.
Business logic before a problem:
The PHP interface first converts JSON to an array to insert nonexistent data in
the php-fpm in PHP 5.3.3 no longer supports PHP-FPM previously available commands such as/USR/LOCAL/PHP/SBIN/PHP-FPM (Start|stop|reload), which require signal control:
The master process can understand the following signals
Int,term immediately
Nginx itself cannot handle PHP, it is just a Web server, when the request is received, if it is a PHP request, then sent to the PHP interpreter processing, and return the results to the client.Nginx is generally the request to send fastcgi
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.