Janrs.com | 杨建勇

  • 首页
  • 站点地图
  • 所有文章
  • 加入学习群
Janrs.com | 杨建勇
Go/Kubernetes/Istio/CloudNative
  1. 首页
  2. Linux
  3. 正文

Debian10 安装 Mairadb/Redis/MongoDB

2022年12月20日 91点热度 685人点赞 0条评论

[!TIP]
Debian 安装 MariaDB Redis MongoDB

转载请注明出处:https://janrs.com


Debian 安装 MariaDB/Redis/MongoDB

安装 Redis

安装


apt install redis-server

修改远程连接

修改 bind 参数为 0.0.0.0 ::1 注意 ipv6 不能删除了。

vim /etc/redis/redis.conf

安装 MariaDB 10.3

添加源

10.3 修改为自己需要的版本

deb https://mirrors.aliyun.com/mariadb/repo/10.3/debian buster main

安装

apt-get install mariadb-server

修改远程连接 ip 地址

打开配置文件,修改 bind-address 为 0.0.0.0

/etc/mysql/mariadb.conf.d/50-server.cnf

修改 root 密码

update mysql.user set password=password('1100') where user='root';
flush privileges;

允许远程访问

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '1100' WITH GRANT OPTION;
flush privileges;

安装 MongoDB6.0

安装依赖

 apt-get install gnupg

下载 key

wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add -

添加源

deb http://repo.mongodb.org/apt/debian buster/mongodb-org/6.0 main

更新并安装

apt-get update && \
apt-get install -y mongodb-org

修改为远程访问

打开此文件,修改 bindIP 为 0.0.0.0

 vim /etc/mongod.conf
本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: docker linux
最后更新:2023年3月25日

码仔

Janrs.com

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复
有关Go/istio/k8s/云原生直接搜
文章目录
  • Debian 安装 MariaDB/Redis/MongoDB
    • 安装 Redis
    • 安装 MariaDB 10.3
    • 安装 MongoDB6.0

COPYRIGHT © 2023 Janrs.com | 杨建勇. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

闽ICP备20002184号