Janrs.com | 杨建勇
Janrs.com | 杨建勇

Debian10 安装 Mairadb/Redis/MongoDB

[!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-address0.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

修改为远程访问

打开此文件,修改 bindIP0.0.0.0

 vim /etc/mongod.conf
如果你有任何问题,欢迎在底部留言。或者点击加入微信技术交流群 | 我的GitHub

码仔

文章作者

Janrs.com

发表回复

textsms
account_circle
email

Janrs.com | 杨建勇

Debian10 安装 Mairadb/Redis/MongoDB
[!TIP] Debian 安装 MariaDB Redis MongoDB 转载请注明出处:https://janrs.com Debian 安装 MariaDB/Redis/MongoDB 安装 Redis 安装 apt install redis-server 修改远程连接 修改 bi…
扫描二维码继续阅读
2022-12-20