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

房地产做网站长春专业做网站的公司排名

房地产做网站,长春专业做网站的公司排名,做网站很简单,先做网站后备案吗小伙伴们好#xff0c;欢迎关注#xff0c;一起学习#xff0c;无限进步 Redis安装和配置 1、首先在官网下载好redis-6.0.9.tar.gzhttp://redis.io/ 或者使用 wget 命令下载#xff1a;wget http://download.redis.io/releases/redis-6.0.9.tar.gz 2、下载使用上传到阿里… 小伙伴们好欢迎关注一起学习无限进步 Redis安装和配置 1、首先在官网下载好redis-6.0.9.tar.gzhttp://redis.io/ 或者使用 wget 命令下载wget http://download.redis.io/releases/redis-6.0.9.tar.gz 2、下载使用上传到阿里云 3、进入到 /usr/localhost/java/ 目录开始解压安装 tar -zxvf redis-6.0.9.tar.gz#进入到redis-6.0.9目录执行make命令 make #注意这里执行make的时候可能会报错这是可能没有gcc的原因需要安装命令为 yum install gcc-c#再次执行make命令执行时先清除上次没安装成功的一些make内容 make distclean make make install#注意这里gcc版本过低也会导致安装不成功#查看gcc版本 gcc -v #升级gcc版本依次执行已下命令升级gcc yum -y install centos-release-scl yum -y install devtoolset-9-gcc devtoolset-9-gcc-c devtoolset-9-binutils #以上为临时使用需要长期使用需要执行一下命令 echo source /opt/rh/devtoolset-9/enable /etc/profile4、安装完成之后会默认在/usr/local/bin下生成一下redis的可执行文件为了方便可以在 redis-6.0.9 建一个 bin 目录把 redis 这些可执行文件都放到bin目录下方便执行。 执行./redis-server命令 出现 Ready to accept connections说明已经启动成功 5、连接redis执行./redis-cli 6、这时redis已经安装成功我们来进行设置redis.conf配置文件 redis 默认是本机访问其他地方无法连接需要把这个注释掉#bind 127.0.0.1改成bind 0.0.0.0 设置后台启动 redis 服务 设置为 yes 执行后台启动./redis-server redis.conf 这是 redis 持久化默认为 no需要改为 yes redis远程连接后输入命令出现 ErrorServer closed the connection不需要登陆密码改为no #常用命令 #后台启动的两种方式 ./redis-server redis.conf nohup ./redis-server redis.conf nohup ./redis-server redis.conf /usr/local/java/redis-6.0.9/logs/redis.log 21 #后台验证redis是否在启动 ps -ef |grep redis 或 ps aux | grep redis #查看端口是否在监听 netstat -lntp | grep 6379 #关闭客户端 redis-cli shutdownRedis 持久化报错 redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.#将stop-writes-on-bgsave-error设置为no 127.0.0.1:6379 config set stop-writes-on-bgsave-error no 或者进入redis.conf改no注意如果 redis 不设置登录密码在服务器上会出现key丢失情况设置密码 在 redis 中所有的 key 都变成 backup 是因为 redis 暴漏在公网ip下没有设置密码遭到恶意请求 如果出现一下错误修改 protected-mode yes 改为protected-mode no密码太短也有可能会出现这个问题 org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.43.129:6379at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:132)at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:95)at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:82)at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:211)at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:184)at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:95)at org.springframework.data.redis.core.DefaultValueOperations.set(DefaultValueOperations.java:198)at com.leyou.test.RedisTest.testRedis(RedisTest.java:25)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)at org.junit.runners.ParentRunner.run(ParentRunner.java:363)at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)at org.junit.runner.JUnitCore.run(JUnitCore.java:137)at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.43.129:6379at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:233)at io.lettuce.core.RedisClient.connectStandalone(RedisClient.java:253)at io.lettuce.core.RedisClient.connect(RedisClient.java:202)at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:56)at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:959)... 41 more Redis Docker 安装测试 docker 安装详细说明链接 docker 官方文档安装方式https://hub.docker.com/_/redis redis.conf 配置文件修改 # 将bind 127.0.0.1 -::1修改为 bind 0.0.0.0监听来自任意网络接口的连接。 bind 0.0.0.0# 将protected-mode设置为no关闭保护模式接收远程连接。 protected-mode no# appendonly 设置为yes redis持久化 appendonly yes# 将requirepass设置为 adminer客户端连接到节点的认证密码 requirepass 123456启动命令 # 拉取最新镜像 docker pull redis:latest # 启动 docker run --name myredis -p6379:6379 --restartalways -d redis:latest --requirepass test123456 # redis 使用命令行设置密码和持久化方式 docker run --name myredis -v /data/redis/data:/data \ -p 6379:6379 -d redis:latest --requirepass test123456 --appendonly yes # 指定配置文件启动 如果要挂载配置文件先把提前准备好的 redis.conf 配置文件放到 /data/redis/conf 目录下或者先启动一个 redis 镜像把容器内的配置文件复制到容器外部 docker cp myredis:/etc/redis/redis.conf /data/redis/conf/redis.confdocker run --name myredis -v /data/redis/conf/redis.conf:/etc/redis/redis.conf \ -v /data/redis/data:/data -p 6379:6379 --restartalways -d redis:latest redis-server /etc/redis/redis.conf --requirepass 123456 --appendonly yes # redis 使用自定义配置方式启动如果要修改配置文件直接修改 docker run --name myredis \ -v /data/redis/conf/redis.conf:/etc/redis/redis.conf \ -v /data/redis/data:/data -p 6379:6379 -d redis:latest redis-server /etc/redis/redis.conf
http://www.dnsts.com.cn/news/131992.html

相关文章:

  • 求个网站这么难吗2021年网站制作如何做
  • dw做网站时怎么改为绝对路径北京建设网站的公司哪家好
  • 怎么计算网站开发费用咨询类公司网页设计
  • 辅助网站怎么做的wordpress默认插件
  • 网站ie兼容性想学网站建设优化去哪
  • 官网的网站建设公司十堰微网站建设多少钱
  • 网站型和商城型有什么区别网站开发推荐
  • 网站设计制作是什么四川观察最新新闻
  • 大型网站怎么加载图片的网站新建需要多久
  • 泉州哪个公司网站做的好wordpress能做什么
  • 唐朝网站的地址最新的网站开发框架
  • 营销型网站托管云服务器网站解析
  • 河北城乡住房建设厅网站淄博高端网站建设乐达
  • 太原新建火车站健康网站模板
  • PS做图标兼职网站开一家网站建设公司
  • 深圳维特网站建设口碑好的网站建设哪家好
  • 石家庄品牌网站建设深圳高端网站制作公司
  • 网站排名优化效果信息服务平台怎么赚钱
  • 做外贸网站需要注意什么三点水网站建设合同书
  • 做网站要以单位建网站能赚钱吗
  • 做网站普洱北京网站开开发公司电话
  • 富阳做网站的提供视频下载的网站
  • 商洛微网站建设wordpress怎么连接空间
  • 高州网站建设网站底部优化字
  • 淘客联盟如何做网站推广龙江手机网站建设
  • 网站开发 海淀网站申请qq
  • 网络推广就是做网站吗性做爰网站
  • wordpress怎么写php优化网站排名技巧
  • 网页设计与网站建设课程设计报告开网站需要准备什么
  • 茂名网站建设技术托管帮忙建站的公司