xcache speeds up php
Release: 2016-08-08 09:32:26
Original
956 people have browsed it
1. Installation# tar xf xcache-3.2.0.tar.bz2# cd xcache-3.2.0# /usr/local/php/bin/phpize# ./configure --enable- xcache --with-php-config=/usr/local/php/bin/php-config# make && make install
When the installation is completed, a line similar to the following will appear: Installing shared extensions: / usr/local/php/lib/php/extensions/no-debug-zts-20100525/
2. Edit php.ini and integrate php and xcache:
First configure the sample provided by xcache Import php.ini and add the xcache.ini file to the end of the php.ini file; One thing to note here is how vi copies and pastes in the two files: 同时编辑两个文件,在两个文件中拷贝剪贴文本
vi file1 file2
nyy 同时打开两个文件,在文件1的光标所在处拷贝所在行
:n 切换到文件2 (n=next)
p 在文件2的光标所在处粘贴所拷贝的行
:N 切换回文件1
Copy after login
Note: The xcache.ini file is in the source code directory of xcache.
Next edit /opt/php/lib/php.ini Find the line starting with extension and change it to the following line: # vim /opt/php/lib/php.iniextension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/xcache.so# service php-fpm restart
Open phpinfo.php to check the running environment of php:
The above introduces xcache to accelerate PHP, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31