---restore content starts---File test expression-F file exists and is a normal file-D file exists and is a directory file-S file size is not 0 true-e file exists then true-R file is saved and readable #文件属性对于root有时不好用-W Write-X execution-L exists
Memcache distributed Cache system deployment and debuggingWorking mechanism: By creating an area in memory to maintain a large hash table to speed up the page access speed, and the database is independent, is mainly used to cache the database data,
For advanced versions such as PHP5.5, this article requires the addition of--enable-opcache parameters at compile time
Compiling PHP please refer to compiling PHP5.6
After compiling the installation, we begin to configure the Opcache
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
Original: http://blog.csdn.net/pcyph/article/details/46513521--------------------------------------------------------------------------------------------------------------- -----ObjectiveThere are two ways of communication between Nginx and FastCGI,
Let's look at the error first.
The status code is: ==500== is usually the server that error.
Then Emmmmmm .....Test 1The code that first modifies the index.php is preceded by the code:echo "1111";exit();Look at the return
Nginx's support is high concurrency, strong load balancing, low resource consumption makes it the first choice for Linux Web server, especially for small memory VPS, this is more obvious, make it win Apache.
The installation of LNMP is described
The example in this article describes the Linux installation Redis extension of Php method. Share to everyone for your reference, specific as follows:
Note: Directory Permissions CHOMD 777-r
1. Installation Redis
Download:
1. Locate the php.ini configurationFind/-name ' php.ini '/usr/local/php/etc/php.iniFind the Extension=php_curl.dll and remove the semicolon from the front.2, restart PHPPHP-FPM in PHP 5.3.3 no longer supports commands such
First step: Install PHP5The second step: Open the terminal "for the convenience, here using the root user", using the CD command to enter the PHP5 source package ext DirectoryStep three: Type the following command at the
Original: https://www.w3cschool.cn/php/php-thread.html------------------------------------------------------------------easy-to-understand PHP multithreading solution created by Youj, Carrie last modified 2016-12-01When we do the project, some needs,
Nginx and Apache are not the same, in Apache can directly specify the error log php, so that in the PHP implementation of the error message directly into the PHP error log, you can easily query.
In Nginx, things have become like this: Nginx only
First of all, the structure of our website, because the current site traffic is not very large, but due to the recent company website to promote, so the site from a single switch into the front-end with Nginx do load balancing, drive two Web servers,
This article mainly describes how to configure PHP-FPM, common error resolution and PHP-FPM startup, shutdown, and restart.
The Nginx in the LNMP environment does not support PHP and requires the FASTCGI plug-in to process requests for PHP. and PHP
For advanced versions such as PHP5.5, this article requires the addition of--enable-opcache parameters at compile time
After compiling the installation, we begin to configure the Opcache
Copy Code code as follows:
[Opcache]
Zend_extension
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.