centos7 安装 mongodb

  wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.1.tgz # 下载
  tar -zxvf mongodb-linux-x86_64-4.0.1.tgz # 解压
  mkdir -p /data/db # 创建数据库目录
  firewall-cmd --permanent --add-port=27017/tcp && firewall-cmd --reload # 开启防火墙
  mongodb-linux-x86_64-4.0.1/bin/mongod --bind_ip=0.0.0.0 # 使用外部电脑可以连接的方式启动 mongod

相关文章:

  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-15
  • 2021-09-21
  • 2021-05-02
  • 2021-10-25
  • 2022-01-16
相关资源
相似解决方案