Home > Backend Development > PHP Tutorial > Installation tutorial of wpf extension notepad Centos PHP extension Xchche

Installation tutorial of wpf extension notepad Centos PHP extension Xchche

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-28 08:27:21
Original
1230 people have browsed it

Notes:

1. What is opcode? When php is executed, it will be compiled into opcode, and then the zend engine will execute the opcode

2. The differences between the four acceleration and cache extensions in php, eAccelerator, memcached, xcache, and APC. Reference: http://www.jb51.net/ article/88281.htm

xcache is a fast and stable PHP opcode cache. Well tested and runs stably on high traffic/high load production machines. Tested (on linux) and supports all current PHP The latest released version of the branch, such as PHP_4_3 PHP_4_4 PHP_5_0 PHP_5_1 PHP_5_2 HEAD(6.x), and supports thread safety/Windows. Compared with similar opcode caches, it is better, such as being able to quickly follow up PHP versions

http:// www.hostloc.com/thread-256173-1-1.html

1. Install xcache:

# wget http://xcache.lighttpd.net/pub/Releases/3.0.1/xcache-3.0.1.tar.gz
# tar xf xcache-3.0.1.tar.gz 
# cd xcache-3.0.1 #xcache是php的扩展,要使用php命令加载此扩展 
# /usr/bin/phpize #phpize命令作用是要准备一个php扩展准备编译,所以扩展要先执行编译 
#./configure --enable-xcache --with-php-c/bin/php-config 
#php-config表示能够获取php的配置信息以及编译时的选项信息; 
##由于不在默认路径下,xcache要获取php安装时所启用的功能,否则xcache会找不到php的路径 
#make && make install 
Copy after login

When the installation is completed, a line similar to the following will appear:

Installing shared extensions: /usr/lib64/php/ modules/

2. PHP loads xcache extension

extension_dir = "/usr/lib64/php/modules/"
extension=amqp.so
extension=xcache.so

3. Restart the service

service php-fpm restart
service nginx restart

4. Test and view the phpinfo information, as shown below:

Installation tutorial of wpf extension notepad Centos PHP extension Xchche

The above is the entire description of the Centos PHP extension Xchche installation tutorial introduced by the editor. I hope it will be useful to everyone. Thank you for your help. If you want to know more, please pay attention to this site!

The above introduces the installation tutorial of the wpf extended notepad Centos PHP extension Xchche, including the content of the wpf extended notepad. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template