But at some point, we want the main thread to wait for the IO operation to complete--for example, after the main thread creates a folder, waits for completion, and then creates the file in the folder.
The NSObject class has a method that
This article mainly describes the upgrade of PHP from 5.3.28 to 5.3 29 o'clock Nginx 502 errors, need friends can refer to the next
Today, the PHP upgrade from 5.3.28 to 5.3.29, found that the site is not open, prompted the "502 Bad Gateway",
SendMail component not installed or started
1. Reinstall the SendMail component, I use the CentOS, install with the following command
Yum Install SendMail
2. Restart the PHP-FPM process using the following command
/ETC/INIT.D/PHP-FPM restart
3.
Sometimes, a Linux server running Nginx, php-cgi (PHP-FPM) Web services suddenly has a system load that is viewed with the top command, with a lot of php-cgi process CPU usage approaching 100%. Later, I tracked and found that this kind of situation
First, the error hint Description:
Nginx 502 Bad Gateway means that the requested php-cgi has been executed, but the php-cgi process is terminated for some reason (typically a problem reading the resource) is not completed.
The implication of
One, what is FastCGI
FastCGI is a scalable, high-speed interface for communicating between HTTP server and dynamic scripting languages. Most popular HTTP servers support FASTCGI, including Apache, Nginx, and lighttpd, and fastcgi are supported by a
After learning about the world's largest PHP site, Facebook's back-end technology, today we'll look at a millions PHP site's web architecture: poppen.de. Poppen.de, a social networking site in Germany, is a small web site relative to Facebook and
This article mainly introduced Opcache caused php-fpm collapse Nginx return 502 of the solution, very practical, the need for friends can refer to the
I this blog in order to improve operational efficiency in the VPS mounted Opcache expansion, the
More please support: www.2cto.com
Recently Nginx is often 502, the best way to solve 502 is to restart PHP-FPM.Manual reboot is still a hassle, and the best thing to do is to throw it into the shell.
Vim restart-php-fpm.sh
#!/bin/sh
service= '
Server monitoring is necessary, recently found that the server sometimes fastcgi will stop responding, in order to allow him to work properly (when the discovery stopped, restart), because there is the following monitoring script.
The script works
XCache is a PHP accelerator software, we can install XCache to improve the performance of PHP, a bit like phpfast, the following to see the installation of PHP acceleration software xcache steps
Description
PHP installation
To agree on several directories
/usr/local/php/sbin/php-fpm
/usr/local/php/etc/php-fpm.conf
/usr/local/php/etc/php.ini
First, the PHP-FPM start parameter
#测试php-FPM Configuration
/usr/local/php/sbin/php-fpm-t
/usr/local/php/sbin/php-fpm-c/usr/
This article mainly introduced PHP script monitoring Nginx 502 error and automatically restart PHP-FPM, this article directly give the implementation code, and then put into cron implementation, need friends can refer to the
Recently the server
This article mainly introduces the PHP commonly used compiler parameter Chinese explanation, this article uses the detailed Chinese annotation the PHP compilation parameter function, needs the friend to be possible to refer to under
When compiling PHP 5.3.6, you will encounter undefined reference to ' Libiconv_open ' compilation errors, here are several solutions:First, reinstall Libiconvwget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gzTAR-ZXVF libiconv-1.13.1.tar.
Before introducing Nginx, we first appreciate a technology:
FastCGI is a dynamic, open and secure network server interface technology. is upgraded by the CGI (Common Gateway Interface) technology.
CGI is the graphical application process that is
Front End (nginx+php) ip:192.168.10.8
Back end (independent MySQL) ip:192.168.10.5
Software version: libiconv-1.14.tar.gz mysql-5.1.63.tar.gz php-5.2.17.tar.gz php-5.2.17-fpm-0.5.14.diff.gz Php-5.2.17-max-input-vars.patch
1. Install MySQL on the
This article mainly introduces the PHP post a large number of data to find the problem of data loss solution, because the default configuration of the data allocation is too small to create this problem, modify the configuration can be, need friends
php start times wrong situation, presumably many friends have encountered it, the following is the specific solution The code is as follows: [ROOT@ABC lnmp]# service php-fpm start starting PHP-FPM eaccelerator:could not allocate 67108864, the
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.