技术交流QQ群:①185473046   ②190706903   ③203744115   网站地图
登录

下次自动登录
现在位置 >首页 > Redis
0℃
2023年06月09日 Redis ⁄ 被围观 2,196次+
操作系统:CentOS-7.x Redis版本:5.0.14 服务器ip:192.168.21.100、192.168.21.101、192.168.21.128 部署说明:使用3台服务器,每台服务器启动2个redis服务,总共6个节点,3主3从组成redis集群 IP地址                       端口          角色  192.168.21.100         6379         redis-master 192.168.21.100         6380         redis-slave 192.168.21.101         6379         redis-master 192.168.21.101         6380         redis-slave 192.168.21.128         6379         redis-master 19...
阅读全文
0℃
2022年08月04日 Redis ⁄ 被围观 3,306次+
准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-c...
阅读全文
0℃
2022年08月04日 Redis ⁄ 被围观 2,795次+
Redis安装目录:/usr/local/redis-5.0.14/ #创建日志切割脚本 vi /usr/local/redis-5.0.14/cut-redis-log.sh #!/bin/bash #获取昨天的日期 file_date=$(date -d"1 day ago" +"%Y%m%d") #redis日志文件 log_path_redis=/usr/local/redis-5.0.14/log/redis.log #日志切割后的存放目录 back_base=/usr/local/redis-5.0.14/log/ #设置删除多少天之前的日志文件 days=180 #切割日志 #redis的日志文件可以直接mv,不需要重新加载服务就能生成新的日志文件 mv $log_path_redis $back_base/redis_$file_date.log #删除日...
阅读全文
0℃
2022年07月26日 Redis ⁄ 被围观 2,476次+
准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-c...
阅读全文
0℃
2022年07月25日 Redis ⁄ 被围观 2,789次+
准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-c...
阅读全文
1℃
2014年01月20日 Redis ⁄ 被围观 29,973次+
说明: 操作系统:CentOS 1、安装编译工具 yum install wget  make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils  patch perl 2、安装tcl组件包(安装Redis需要tcl支持) 下载:http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz 上传tcl8.6.1-src.tar.gz到/usr/local/src目录 cd /usr/local/src #进入软件包存放目录 tar  zxvf  tcl8.6.1-src.tar.gz  #解压 cd tcl8.6.1 #进入安装目录 cd unix ./configure --prefix=/usr   --without-tzdata    --mandir=/usr/share/man...
阅读全文
0℃
2014年01月17日 Redis ⁄ 被围观 40,852次+
说明:        操作系统:CentOS php安装目录:/usr/local/php php.ini配置文件路径:/usr/local/php/etc/php.ini Nginx安装目录:/usr/local/nginx Nginx网站根目录:/usr/local/nginx/html 系统运维  www.osyunwei.com  温馨提醒:qihang01原创内容 版权所有,转载请注明出处及原文链接 1、安装编译工具 yum install wget  make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils  patch perl 2、安装redis 下载:https://github.com/nicolasff/phpredis/archive/2.2.4.tar.gz 上传phpr...
阅读全文
0℃
2012年09月24日 Redis ⁄ 被围观 17,883次+
说明: php安装目录:/usr/local/php5 php.ini配置文件路径:/usr/local/php5/etc/php.ini Nginx安装目录:/usr/local/nginx Nginx网站根目录:/usr/local/nginx/html 1、安装编译工具 yum install wget  make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils  patch perl 2、安装phpredis https://github.com/owlient/phpredis/downloads/ #进入下载页面,下载owlient-phpredis-2.1.1-1-g90ecd17.tar.gz,上传到cd /usr/local/src目录 cd /usr/local/src  #进入软件包存放目录 tar zx...
阅读全文


Copyright© 2011-2024 系统运维 All rights reserved
版权声明:本站所有文章均为作者原创内容,如需转载,请注明出处及原文链接
陕ICP备11001040号-3