First step: Installing Redis1. Official website http://redis.io/Download the latest stable version, here is 3.2.82. TAR-ZXF Redis-3.2.8.tar Unzip the file3. Enter the extracted directory CD redis-3.2.84. Make5. Start the service Src/redis-serverStep two: Install the PHP redis extension1. Download PHP2. Put the download
The installation steps are as follows:1. Download Redis Extensions: Https://nodeload.github.com/nicolasff/phpredis/zip/master2, download down is zip packageManually unzip the zip Phpredis-master.zipCD Phpredis-masterExecutive phpizeWhat is phpize for?Phpize is used to extend the PHP extension module, through the phpize can build PHP plug-in module3. Configure the path./configure--with-php-config=/usr/bin/php-configThat's right, but when we got inside
is, the/users/liugx/docker/data/www on the host and the/var/www/html directory in the container is synchronousThe name of the –name container–link in connection with another containerThe following Redis and Elasticsearch are directly like creating a MySQL database ContainerDocker Pull Hub.c.163.com/library/redis:latestDocker Pull Hub.c.163.com/library/elasticsearch:latest##### #注意 ######After configuration, you need to modify the Nginx configuration
Recently intends to change the development environment from widows to Mac OS X, and Mac OS X is a bit different, many software installation methods are also unique, so also write a bit of experience, today a brief introduction to Redis under Mac OS x installation and use of methods. First fromRedis official website htt
Redis, zookeeper, and ACTIVEMQ are needed in the framework, and the current development environment is built under the Mac, which is a quick and easy way to use brew installation:$ brew Search zookeeperzookeeper? Homebrew/php/php53-zookeeper homebrew/php/php55-Zookeeperhomebrew/php/php54-zookeeper homebrew/php/php56-zookeeper$ Brew Search Redishiredis Redis?
Downloads, download the package, https://redis.io/download
Unzip the tar xzf redis-3.2.9.tar.gz
CD redis-3.2.9
Compiling make
Test, there is no error make test
The compiled resources are placed in the SRC directory
Start Redis Service, Src/redis-server
Using the built-in client connection
This article uses homebrew to installbrew install redisThe Redis default profile does not allow Deamon to run, so you need to modify the configuration file firstvim /usr/local/etc/redis.confModify the Daemonize to Yes and then load the configuration file to enable background process startupredis-server /usr/local/etc/redis.confJoin boot Startcp /usr/local/Cellar/redis/4.0.6/homebrew.mxcl.redis.plist ~以上操作完成
On Mac we use the [Homebrew] package management tool (http://brew.sh/index_zh-cn.html) to install and manage development kits such as MySQL, PHP, and Redis. Only one command is neededinstall mysqlIt installs all the packages into the /usr/local/Cellar/ directory and soft-connects the files to the/usr/local/After the installation is complete you need to go to /usr/local/Cellar/mysql/5.6.26/bin the next to fi
Mac Brew Install Redis error
/usr/local/opt/php55/bin/phpize/usr/Local/opt/php55/bin/phpize:lineA:/usr/local/library/env/4.3/sed:no such file or Directory/usr/local/opt/php55/bin/ Phpize:line 62:/usr/local/library/env/ 4.3/sed:no such file or Directory/usr/local/opt/php55/bin/ Phpize:line 63:/usr/local/library/env/ 4.3/sed:no such file or directoryconfiguring for:PHP Api Version : Zend Module
Note: Operating system 10.13.3, other versions of the Mac system should also be available
Install firstExecute the following command at the command line in order, and if the current user has insufficient permissions, execute the command with sudocd /usr/local/Cellar //我是安装到Cellar目录下了git clone https://github.com/phpredis/phpredis.git cd phpredis phpize //phpize是用来扩展php扩展模块的,通过phpize可以建立php的外挂模块 make //编译程序 make install
Configuring 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.