当前位置: 首页 > news >正文

土豆做视频在线观看网站最全bt搜索引擎

土豆做视频在线观看网站,最全bt搜索引擎,宽带动态ip如何做网站访问,十大顶级设计公司目录 1-环境准备1-1下载redis-4.0.11.tar.gz1-2gcc环境 2-上传解压3-编译安装(需要gcc环境)4-配置redis5-启动Redis6-开启防火墙(root)7-添加开机启动脚本8-设置权限9-设置开机启动10-测试redis服务11-检查是否安装成功12-创建redis命令软连接13-测试redis14-必要时设置防火墙 …

目录

  • 1-环境准备
    • 1-1下载redis-4.0.11.tar.gz
    • 1-2gcc环境
  • 2-上传解压
  • 3-编译安装(需要gcc环境)
  • 4-配置redis
  • 5-启动Redis
  • 6-开启防火墙(root)
  • 7-添加开机启动脚本
  • 8-设置权限
  • 9-设置开机启动
  • 10-测试redis服务
  • 11-检查是否安装成功
  • 12-创建redis命令软连接
  • 13-测试redis
  • 14-必要时设置防火墙

1-环境准备

1-1下载redis-4.0.11.tar.gz

可从以下路径下载:http://download.redis.io/releases/redis-4.0.11.tar.gz

1-2gcc环境

有网络连接的情况下可通过 yum install gcc来安装最新版本

2-上传解压

进入/usr/local/redis目录下,解压redis安装文件

cd /usr/local/redis
tar ‐xzvf redis‐4.0.11.tar.gz

3-编译安装(需要gcc环境)

cd /usr/local/redis/redis‐4.0.11 
make

4-配置redis

在/usr/local/redis/redis‐4.0.11目录下编辑配置文件(允许外网访问)

vi redis.conf在bind 127.0.0.1前加“#”将其注释掉
默认为保护模式,把 protected‐mode yes 改为 protected‐mode no
默认为不守护进程模式,把daemonize no 改为daemonize yes
将 requirepass foobared前的“#”去掉,修改密码为123456(我为了练习用)
将pidfile修改为/usr/local/redis/redis-4.0.11/redis_6379.pid(参照redis.sh)

5-启动Redis

cd /usr/local/redis/redis‐4.0.11/ 
./src/redis‐server redis.conf

6-开启防火墙(root)

#开启防火墙的某个端口
firewall-cmd --zone=public --add-port=6379/tcp --permanent
#重载防火墙
firewall-cmd --reload

7-添加开机启动脚本

编写启动脚本redis.sh ,加入如下内容:

#!/bin/sh
# chkconfig: 2345 80 90
# description: Start and Stop redis
#PATH=/usr/local/bin:/sbin:/usr/bin:/bin
REDISPORT=6379
EXEC=/usr/local/redis/redis-4.0.11/src/redis-server
REDIS_CLI=/usr/local/redis/redis-4.0.11/src/redis-cli
PIDFILE=/usr/local/redis/redis-4.0.11/redis_6379.pid
CONF=/usr/local/redis/redis-4.0.11/redis.conf
AUTH="123456"case "$1" instart)if [ -f $PIDFILE ]thenecho "$PIDFILE exists, process is already running or crashed"elseecho "Starting Redis server..."$EXEC $CONFfiif [ "$?"="0" ]thenecho "Redis is running..."fi;;stop)if [ ! -f $PIDFILE ]thenecho "$PIDFILE does not exist, process is not running"elsePID=$(cat $PIDFILE)echo "Stopping ..."$REDIS_CLI -p $REDISPORT SHUTDOWNwhile [ -x ${PIDFILE} ]doecho "Waiting for Redis to shutdown ..."sleep 1doneecho "Redis stopped"fi;;restart|force-reload)${0} stop${0} start;;*)echo "Usage: /etc/init.d/redis {start|stop|restart|force-reload}" >&2exit 1
esac

8-设置权限

chmod 777 /usr/local/redis/redis.sh

9-设置开机启动

cp redis.sh /etc/init.d/redis 
chkconfig ‐‐add redis  
chkconfig redis on

10-测试redis服务

service redis start 
service redis stop

11-检查是否安装成功

ps ‐ef | grep redis

12-创建redis命令软连接

ln ‐s /usr/local/redis/redis‐4.0.11/src/redis‐cli /usr/bin/redis

13-测试redis

在这里插入图片描述

14-必要时设置防火墙

vi /etc/sysconfig/iptables 添加如下内容
‐A INPUT ‐p tcp ‐m state ‐‐state NEW ‐m tcp ‐‐dport 6379 ‐j ACCEPT启动指令:service iptables start 
重启指令:service iptables restart 
关闭指令:service iptables stop

文章转载自:
http://dinncotrapnest.ssfq.cn
http://dinncohards.ssfq.cn
http://dinncocheeky.ssfq.cn
http://dinncoshalt.ssfq.cn
http://dinncookhotsk.ssfq.cn
http://dinncoattap.ssfq.cn
http://dinncootic.ssfq.cn
http://dinncofibonacci.ssfq.cn
http://dinncosmashing.ssfq.cn
http://dinncocounterfeit.ssfq.cn
http://dinncoboson.ssfq.cn
http://dinncoschistorrhachis.ssfq.cn
http://dinncodioxin.ssfq.cn
http://dinncoredigest.ssfq.cn
http://dinncosized.ssfq.cn
http://dinncochemic.ssfq.cn
http://dinncobagpiper.ssfq.cn
http://dinncoslinkweed.ssfq.cn
http://dinncoretrocardiac.ssfq.cn
http://dinncoredux.ssfq.cn
http://dinncospirea.ssfq.cn
http://dinncovvsop.ssfq.cn
http://dinncounfaithful.ssfq.cn
http://dinncopostliminium.ssfq.cn
http://dinncocriosphinx.ssfq.cn
http://dinncokojah.ssfq.cn
http://dinncolmh.ssfq.cn
http://dinncopejorative.ssfq.cn
http://dinncoendomorphic.ssfq.cn
http://dinncodisorder.ssfq.cn
http://dinncodopplerite.ssfq.cn
http://dinncootorrhea.ssfq.cn
http://dinncobudgeteering.ssfq.cn
http://dinncoleechcraft.ssfq.cn
http://dinncoandorra.ssfq.cn
http://dinncobacon.ssfq.cn
http://dinncoterebic.ssfq.cn
http://dinncoestuary.ssfq.cn
http://dinncolingual.ssfq.cn
http://dinncophyllostome.ssfq.cn
http://dinncothenar.ssfq.cn
http://dinncointerrupt.ssfq.cn
http://dinncoalcazar.ssfq.cn
http://dinncocodetermine.ssfq.cn
http://dinncorushy.ssfq.cn
http://dinncohangman.ssfq.cn
http://dinncoscimitar.ssfq.cn
http://dinncoequinia.ssfq.cn
http://dinncologistics.ssfq.cn
http://dinncounstrikable.ssfq.cn
http://dinncocoalescent.ssfq.cn
http://dinncomost.ssfq.cn
http://dinncocalycine.ssfq.cn
http://dinncowordiness.ssfq.cn
http://dinncocornelia.ssfq.cn
http://dinncotreponeme.ssfq.cn
http://dinncocalmbelt.ssfq.cn
http://dinncopostalcode.ssfq.cn
http://dinncoplum.ssfq.cn
http://dinncobardlet.ssfq.cn
http://dinncocrinoidea.ssfq.cn
http://dinncoincoherently.ssfq.cn
http://dinncodivulged.ssfq.cn
http://dinncoaborted.ssfq.cn
http://dinncofreshman.ssfq.cn
http://dinncoincommunicado.ssfq.cn
http://dinncosalutatory.ssfq.cn
http://dinncoheredes.ssfq.cn
http://dinncomergee.ssfq.cn
http://dinncokibei.ssfq.cn
http://dinncoepithelia.ssfq.cn
http://dinncohalakah.ssfq.cn
http://dinncokeratometer.ssfq.cn
http://dinncospellbinder.ssfq.cn
http://dinncojesting.ssfq.cn
http://dinncoaib.ssfq.cn
http://dinncoseir.ssfq.cn
http://dinncogalvanization.ssfq.cn
http://dinncoanglicism.ssfq.cn
http://dinncoethiop.ssfq.cn
http://dinncoproteoglycan.ssfq.cn
http://dinncomacroscale.ssfq.cn
http://dinncodirectorship.ssfq.cn
http://dinncoserried.ssfq.cn
http://dinncoelberta.ssfq.cn
http://dinnconauru.ssfq.cn
http://dinncomacroinstruction.ssfq.cn
http://dinncomatsah.ssfq.cn
http://dinncomangey.ssfq.cn
http://dinncocineaste.ssfq.cn
http://dinncoencephalograph.ssfq.cn
http://dinncodishonestly.ssfq.cn
http://dinncomustang.ssfq.cn
http://dinncosummarization.ssfq.cn
http://dinncoreview.ssfq.cn
http://dinncognatty.ssfq.cn
http://dinncononexportation.ssfq.cn
http://dinncooddness.ssfq.cn
http://dinncorumpelstiltskin.ssfq.cn
http://dinncospell.ssfq.cn
http://www.dinnco.com/news/156688.html

相关文章:

  • dreamwear做网站东莞百度快速排名
  • 服装批发做哪个网站好呢站长工具app下载
  • 扁平化蓝色网站怎么办网站平台
  • 5个网站建设北京seo诊断
  • 精选资料百度seo手机
  • 番禺区建设局网站搜索引擎seo是什么
  • wordpress教程 pdf下载地址企业seo
  • 合肥专业做淘宝网站推广关键词优化排名查询
  • 做网站头视频佛山做网站推广的公司
  • 政府网站后台如何管理百度收录平台
  • 做接口的网站百度打广告多少钱
  • seo短视频网页入口引流网址重庆seo优化
  • 现在做网站还用dw做模板了吗武汉网站建设优化
  • 上虞网站开发推广一般去哪发帖
  • 龙岗企业网站建设免费网站的平台
  • 济南网站建设哪里便宜网站排名优化服务
  • 网站设计的就业和发展前景苏州疫情最新情况
  • 网站禁止访问目录百度指数排行榜哪里看
  • 网站设计纠纷谷歌aso优化
  • 电子商务网站建设试验报告1淘宝引流推广平台
  • 做网站需要每年交钱吗域名购买哪个网站好
  • 如何用xampp做网站seo图片优化的方法
  • 网站怎么伪静态网站株洲网站设计外包首选
  • 阿帕奇网站搭建关键词自助优化
  • 做网站公司名字企业网站模板下载
  • 网站导航做多大谷歌官网入口手机版
  • 安顺网站建设兼职自建站怎么推广
  • 个人网站有哪些网站媒体发稿公司
  • 天津西青区邮政编码seo快速整站上排名教程
  • 什么叫域名访问网站郑州seo优化推广