mongodb
xuxizhou1994
厚积薄发
展开
-
启动mongodb,提示权限不够
执行命令:./bin/mongod -f conf/mongob.conf 提示:-bash: ./bin/mongod: 权限不够 给bin目录权限,命令:chmod -R 740 bin原创 2020-08-31 19:45:06 · 1995 阅读 · 0 评论 -
Linux 下安装mongodb
先下载mongodb: wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.6.tgz 要是用的Linux虚拟机很慢,你可以直接去https://www.mongodb.org/dl/linux/x86_64下载你需要的版本。然后利用FileZilla Client这个工具将软件包移到Linux系统中,这样可能要快些。 mongodb下载地址 接下来就是常规操作了: 加压 tar -xvzf mongod..原创 2020-08-31 19:37:39 · 77 阅读 · 0 评论 -
mongodb启动报错
source Also make sure that another mongod instance is not already running on the t is stating that Mongo is already running. If you are certain it is not, then the lock file still exists from a previous unclean shutdown. ps aux | grep mongo if that ret原创 2020-08-21 10:50:53 · 300 阅读 · 0 评论 -
mac 安装和使用MongoDB
下载安装 在网上搜了一下,安装MongoDB有三种方式:(1)手动命令安装(2)采用Homebrew(3)下载安装包。由于对前两种介绍的命令行安装方法不是很了解,所以选择了第三种方式进行安装。 1.访问MongoDB官方下载地址 官网地址是:MongoDB Download Center | MongoDB 2.点击“DOWNLOAD(tgz)”按钮,将解压后的文件放入/usr/local ,默认情况下在Finder中是看不到 /usr 这个目录的(终端用得溜的请略过),可以打开Finder后.原创 2020-08-20 14:08:36 · 147 阅读 · 0 评论 -
macOS 无法sudo创建文件夹返回Read-only file system问题解决
macOS catalina 无法创建日志目录返回 sudo mkdir -p /data/data/ 返回错误 mkdir: /data/db/: Read-only file system google一下马上不知道,????,满眼都是挂载外部硬盘,我的就是本地的固态硬盘呀,找呀找终于找到一篇apple官方社区的帖子, 直接执行如下命令即可挂载写权限即可。 sudo mount -uw / 继续赋予一下本机用户权限,搞定????工 sudo chown -R原创 2020-08-20 10:55:26 · 611 阅读 · 0 评论 -
mac brew安装mongodb报错
问题 brew安装失败。 gongzhihaodeMacBook-Pro:homebrew-core gongzhihao$ brew install mongodb -v Updating Homebrew... -- ^CError: No available formula with the name "mongodb" //仓库没有软件 ==> Searching for a previously deleted formula (in the last month)... Warni原创 2020-08-19 17:56:13 · 761 阅读 · 0 评论