当前位置:网站首页>十. 实战——云服务器
十. 实战——云服务器
2022-07-23 00:45:00 【这不比博人传燃?】
一. 宝塔问题
1. mongodb
宝塔安装mongodb后,远程地址无法访问。为什么?
不是宝塔安装的问题,mongodb好像默认安装就是只允许本地访问,需要修改配置——BindIP,默认127.0.0.1,修改为0.0.0.0即可
2. Redis
同样的问题,这次是将bind 127.0.0.1改为0.0.0.0,这个设为bind 127.0.0.1。
- bind 127.0.0.1:表示只允许本地访问,无法远程连接
- bind 0.0.0.0:表示任何ip都可以访问
注意:将bind 0.0.0.0修改后,还要配置密码,要不然还是连不上。在宝塔中修改的话,就算只在“配置文件”中更改bind,还要再性能调优中进行修改,不然还是连不上。注意:还要点击重载配置。
在java配置文件中如何配置密码?spring.redis.password=A5413216
边栏推荐
- (example of dynamic planning) stone merging
- What is the experience of writing concurrent tool classes (semaphore, cyclicbarrier, countdownlatch) by yourself in line 30?
- Developed an app that can run small programs with fluent
- 数据可视化平台的下一站 | 来自国产开源数据可视化 datart「超级铁粉」的馈赠
- 以后面试官问你 为啥不建议使用Select *,请你大声回答他!
- Talk about HART Protocol
- Wireshark packet capture tool basic use
- OSI七层模型有哪七层?每一层分别有啥作用,这篇文章讲的明明白白!
- 7. Image data processing of paddlepaddle
- 基于共轭梯度法的对抗攻击
猜你喜欢

SQL Server database design -- select statement 2

50道经典计算机网络面试题,你答得上几个?(三)

K3s - lightweight kubernetes cluster

AirServer第三方投屏软件v7.3.0中文版 (Airplay终端实用工具)

Camera IQ: 76% of consumers have experienced AR, and 49% are willing to share ar advertisements
![[concurrent programming] Chapter 2: go deep into the reentrantlock lock lock from the core source code](/img/df/f29eed667c2a7dc02d93ac3f424198.png)
[concurrent programming] Chapter 2: go deep into the reentrantlock lock lock from the core source code
![[cloud native] in the era of storm and cloud, the sharp edge of DBAs is out of the sheath](/img/22/5547663b5c0b4224d9a02d51b0f325.png)
[cloud native] in the era of storm and cloud, the sharp edge of DBAs is out of the sheath

【微信小程序】开发入门篇(二)

50道经典计算机网络面试题,你答得上几个?(上)

BGP实验
随机推荐
【CANN训练营】学习笔记——Diffusion和GAN对比,Dalle2和Parti
Flutter 3.0
Detailed explanation of common ADB operation commands of "suggestions collection"
Must I make money by buying REITs funds? Is it safe to open an account
How many of the 50 classic computer network interview questions can you answer? (top)
How many of the 50 classic computer network interview questions can you answer? (III)
实操演练 | MySQL PROCESSLIST 表和 Navicat Monitor 识别慢速查询的简单方法
[zero based BLDC series] brushless DC motor control principle based on Hall sensor
中金财富开户安全吗 股票怎么买
BGP experiment
【并发编程】第二章:从核心源码深入ReentrantLock锁
NodeJS 基于 Dapr 构建云原生微服务应用,从 0 到 1 快速上手指南
[数组]NC77 调整数组顺序使奇数位于偶数前面(一)-中等
K3s - lightweight kubernetes cluster
ADB 命令结合 monkey 的简单使用,超详细
Kali 2022.2 installation
BGP联邦实验
BGP实验
Internet Download Manager简直就是下载器中的大杀器
Family fraud is prevalent, and Sogou number builds a security firewall