加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python 与redis

发布时间:2020-12-16 23:56:26 所属栏目:Python 来源:网络整理
导读:table style="height: 30px; background-color: #afeeee; width: 1266px; ; width: 1266px;" border="0" tr td span style="font-size: 16px;"一、redis安装 /td /tr /table 源码安装: ? 1.wget ? 2.yum install gcc ? 3.tar zxvf redis-stable.tar.gz ? 4.
<tr>
<td><span style="font-size: 16px;">一、redis安装</td>
</tr></table>

源码安装:

? 1.wget
? 2.yum install gcc
? 3.tar zxvf redis-stable.tar.gz
? 4.cd?redis-stable
? 5.make&&make install
? 6.cp redis.conf /etc/  
7.配置文件
? ?监听地址:bind 0.0.0.0
? ?限制最大内存:maxmemory 4294967296(4G)
? ?后台运行:daemonize yes
8.拷贝并修改系统脚本:
? ?cd utils/
? cp redis_init_script /etc/init.d/redis?
? 修改:
? CONF="/etc/redis.conf"
? chmod a+x /etc/init.d/redis
?
ubuntu安装:

? $sudo apt-get update? $sudo apt-get install redis-server

<table style="height: 30px; background-color: #afeeee; width: 1266px; ; width: 1266px;" border="0">

</tr></table>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读