Redis is deployed on the server and Remote access is set (THINKPHP5 project)

Source: Internet
Author: User
Tags install redis

lnmp.org

Installation of the environment,

Install Redis,


Only need the directory,

Enter the directory after LNMP decompression, execute:./addons.sh Install Redis

Can.


Then turn on Redis.


Modify the configuration file. /usr/local/redis/etc/redis.conf


Protected-mode to set to No



Daemonize Yes

# bind 127.0.0.1
Requirepass ******


Turn on the run.

CD /usr/local/redis/bin

./redis-server /usr/local/redis/etc/redis.conf



In the config.php of THINKPHP5.

Redis Cache
' Redis ' = [
Drive mode
' Type ' = ' Redis ',
Server address

' Host ' = ' *********** ',
' Port ' = 6379,
' Password ' = ' ********** ',
],


----------  recruit the future great God -----------------------

If you have altruistic heart, willing to help others, willing to share
If you encounter PHP problem, Baidu and asked the other groups still did not get answers

Welcome to join, PHP technical question and answer group, QQ Group: 292626152

Educational developments Help others, you will also get promotion!

In order to cherish everyone's valuable time, please do not chat!

May we help each other and make progress together!

Add message code, PHP,AJAX,THINKPHP,YII ...


= =


Redis is deployed on the server and Remote access is set (THINKPHP5 project)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.