下载地址

           https://www.mongodb.com/download-center/community?jmp=nav

mongodb安装与搭建

下载成功

上传

解压

将解压包拷贝至指定目录
在mongodb的目录下创建data/db文件夹

            mkdir -p /home/yfl/software/mongo/data/db

在mongodb的bin目录下执行

              ./mongo

mongodb安装与搭建

 当报错:Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :

说明data/db目录创建不正确,请参照上面data/db目录的创建

参照:

https://www.runoob.com/mongodb/mongodb-linux-install.html

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2021-07-23
  • 2021-11-17
  • 2021-12-06
  • 2021-06-30
  • 2021-06-22
猜你喜欢
  • 2021-08-22
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-09-04
  • 2022-01-14
相关资源
相似解决方案