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)