PHP and Redis use experience sharing
First, installation
1. Redis Download and Installation:
Reference
Mkdir/usr/local/redis
Cd/usr/local/redis
wget http://redis.googlecode.com/files/redis-2.4.2.tar.gz
Tar xzf redis-2.4.2.tar.gz
CD redis-2.4.2
Make
Linux under Memcache server-side installation
Server side is mainly installed Memcache server side, the current version is memcached-1.3.0.
Download: http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz
In addition, Memcache used the libevent
This article describes how to upgrade php5.3 to php5.4 or php5.5, for more information about how to use yum to install php 5.4 or 5.5, refer to our php technical article. Of course we use centos6.5 as our testing machine. In fact, it is very simple,
Environment: centos5.0 and php5.1.6 install php-devel because phpize is required. Phpize provides the compiling environment for php extensions. Wgethttp: // pecl.php.net/get/json-Ojson-1.2.1.tgztar-xfjson-1.2.1.tgzcdjson-1.2.1php
Environment:
1. Command line run yum install php-cli php-process git gcc php-devel php-pear libevent-devel
2. Command line run pecl install channel://pecl.php.net/libevent-0.1.0 prompt libevent installation [AutoDetect]: Press ENTER
3. Command line run echo
Yum Install Phpredis-y
If you are using CentOS to bring your own PHP, make sure that php-devel installation does:
Yum Install php-devel-y (Redis extensions cannot be loaded if not installed)
Connect to a Redis server
Connecting to Redis server on
In addition to the gd Library, php can process images, as well as imagick and gmagick. To install these two extensions as required by the project, record the installation process. You cannot install the gmagick extension library directly through apt-
In Linux, the default Yum source is installed with the PHP 5.1 package,
After installing php In yum, View
Rpm-Qa PHP
Php-5.1.6-23.2.el5_3
Some programs require php5.2 or later versions.
So I found the information and finally found an introduction to
Centos system install memcached extension for php 1. install memcached through yum
Yum-y install memcached
# Run the following command after installation:
Memcached-h
# The memcached help message indicates that the installation is successful.
2.
Install the memcache server in linuxThe server is mainly installed on the memcache server, the latest version is memcached-1.3.0.Download: http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gzIn addition, memcache uses the libevent library for
Say bumpy, in order to install this PHP extension php-memcached, even the operating system has changed, from centos5.5 to the centos6.8!!centos5.5 in the installation of PHP extension php-memcached dependent library libmemcached (download source,
Just want to summarize a installation environment document, because many problems of the document is also many, summarize a copy of their own installation documentation!First of all, environment centos7,linux environment!1, network configuration,
Php_screw is a free PHP source code for the encryption of PHP extensions, can be customized to encrypt the seed file, encrypted file efficiency will not be reduced, currently has not been cracked. Here's how to install and use this
The latest
View server PHP List
Yum List | grep phphttp://dl.fedoraproject.org/pub/epel/5/x86_64/
#rpm-IVH http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
RPM-IVH
Because the project needs to be under Linux for php5.3 Oracle client compiler, briefly introduce the steps and the detour.
1. Download the Oracle client package, which contains related files such as OCI, Occi and Jdbc-oci.
1.1 Download file
Linux Environment installation PHP fileinfo extension
Windows Environment installation extension is relatively simple, just copy the DLL to the extended directory, modify the corresponding extension in the php.ini.
The following is an
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.