Mysql runs on several important points about how to run mysql that processes millions of data in batches.Several important knowledge points for processing millions of data in large batches:1. Set the memory configuration for php running ini_set
PHP-FPM configuration and usage summary, php-fpm configuration Summary
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
PHP-FPM configuration and use
A few days ago when writing a program, there is a script execution time is longer, 100s+, but php.ini default script time-out is 30s, so naturally interrupted, plus set_limit_time (0), found that the function was disabled, Khan.
To the forum to
The following error occurs when you access phpMyAdmin.PhpMyAdmin-ErrorCannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.The first time you open the
502 Bad Gateway error solutionThere are many causes of Nginx 502 errors because of problems with backend servers in proxy mode. These errors are not nginx problems, so you must find the cause from the backend! However, nginx has put all these errors
Does PHP have a function to perform in a few seconds interval?
For example, there is a piece of code that executes the first line, then the second line after 5 seconds.
Note that it is not a loop, it is executing code from top to bottom, and it
About timed tasks, previously known one of the most commonly used: Crontab timed tasks. It is implemented by Linux timed tasks. Today, I know another way to implement the timing mode of PHP, summed up a bit.One server Scheduled taskServer timing
Although through Nginx Accesslog can record user access to an interface or the time spent on a webpage, but can not be clearly traced to the specific location or the function is slow, so through the php-fpm slow log, Slowlog setting allows us to see
Platform: WIndowsServer configuration: Zend Server 6.3There is a time-consuming requirement in the recent project requirements, so in the configuration of the default Zend server,Frequently, PHP is forced to be response when execution on the server
PHP's most commonly used INI function for PHP configuration files
PHP's configuration function is a few ini_* functions, mainly for the operation of the configuration file, in fact, four functions: Ini_get, Ini_set, Ini_get_all, Ini_restore. The
anti-spam Rd There is a hql, in the execution of the error exits, reported Java.io.IOException:Broken pipe exception, HQL used to Python script, hql and Python script recently no one changed, It was normal at number 10.1th, but the same error was
When you write a shell script that starts with the Crontab timer task, if the shell script execution time exceeds, Crontab pulls the script time interval, this time may appear the same script simultaneously initiates several times the phenomenon.
Security optimized configuration for Linux php.ini(1) PHP function disable find
Disable_functions =
This option can be set which PHP functions are forbidden, there are some functions in PHP the risk is quite large, you can directly
Source: Crooked Wheat BlogHttps://www.awaimai.com/1050.html1 String1.1 Less regular expressionsIf you can use PHP internal string manipulation functions, use them as much as possible, instead of regular expressions, because they are more efficient
The php.ini is suitable for both Apache and nginx environments, and php-fpm.conf is suitable for nginx+fcgi configurations.Production environment PHP.ini(php.ini-production)Php.ini-developmentPhp.ini-production# Vim/application/php/lib/php.ini(1)
1. function declaration and function Expression(1) Variable declaration will be pinned in advance, but the assignment is still in the original place(2) The function declaration is the same as the variable declaration, but the function expression
Data is a central part of the application, the program has broken the replacement machine can be republished, but once the data loss, resulting in loss will be irreversible, the program released to production, data backup is particularly important,
This time grabbed 1.1 million of the user data, the data analysis results are as follows:
Pre-development preparation
Install the Linux system (Ubuntu14.04) and install an Ubuntu under the VMware virtual machine;
Install PHP5.6 or above version;
PHP Optimization for PHP optimization is mainly related to the main parameters of php.ini adjustment and settings, the following we will look at some of the php.ini in the performance of the larger parameters should be set.
# Vi/etc/php.ini(1) PHP
Today, after the upgrade of PHP 502 Bad Gateway error, according to experience is PHP-FPM problem, but see what traffic on the Internet, child process settings, but I do not have any traffic on the server. So you can only look at the configuration
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.