惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
WordPress大学
WordPress大学
C
Check Point Blog
GbyAI
GbyAI
U
Unit 42
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Hugging Face - Blog
Hugging Face - Blog
Vercel News
Vercel News
博客园 - 【当耐特】
美团技术团队
小众软件
小众软件
S
SegmentFault 最新的问题
Jina AI
Jina AI
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Cloudflare Blog
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog

博客园 - 文刀无尽

在Django 中更新mongodb的ListField字段 图片加到json中,提交到服务器端处理异常问题。 在django中使用时django-nonrel,'django.contrib.auth'不能用的问题 在mac 上安装 mpkg Celery使用数据库代替rabbitmq 为什么要使用Rabbitmq 在bluehost上安装pytoh 2.7.2 为android 启动的时候添加splash 折腾了半天,ajax 在模拟器下正常,在一台2.1机器上正常,在我的小米2.3下不工作 去掉默认标题栏且将应用设置为全屏 java 基本语法 在jquery mobile中页面跳转的时候,实现登录检查 去掉jquery mobile 的阴影效果 Eclipse 的 javascript 插件 iphone phonegap中跨域的问题 使用jquery mobile 经验 另类随机读大表数据 (原创)自已实现服务器控件之 TextBox 控件 (原创)自已实现服务器控件系列 之 设计时可用鼠标拖动大小的Label控件
在bluehost上安装mongodb
文刀无尽 · 2012-03-16 · via 博客园 - 文刀无尽

This article is a little more up to date with the changes made by Hostmonster / Bluehost, and to make the instructions a little more clear, and simplified.

1. Download the MongoDB binaries – You want to download the legacy-static production release. Hosmonster / Bluehost run Linux 64-bit

Download

I found it easier to extract the files on my desktop then upload them to a directory called mongodb in the root home folder.

Your MongoDB folder should look like the below when all done:
/home/{username}/mongodb
/home/{username}/mongodb/bin
/home/{username}/mongodb/data
/home/{username}/mongodb/include
/home/{username}/mongodb/lib64

Replace {username} with your login name for Hostmonster / Bluehost. You can find your username in the cPanel on the left where it says username.

2. In your SSH/Shell console – Now we need to make the MongoDB command usable so do the following commands

nano .bashrc

3. Now add the following line to the bottom of the file.

export PATH=/home/{username}/mongodb/bin:$PATH

Replace {username} with your login name for Hostmonster / Bluehost. You can find your username in the cPanel on the left where it says username.

4. Save

ctrl+x confirm save by typing ‘Y’ then enter, then enter again to confirm the file.

5. Lets verify that everything is working. You will need to reload bash

source .bashrc

6. Make the MongoDB binaries executable

chmod 744 -R mongodb/bin

7. Verify MongoDB is running

mongod —version

8. Start the MongoDB

screen mongod —dbpath /home/{username}/mongodb/data —quiet

Now safe to exit your Shell Console

Replace {username} with your login name for Hostmonster / Bluehost. You can find your username in the cPanel on the left where it says username.

They only let you run a program for 5 minutes before killing it, so it’s fairly useless to install MongoDB unless you have a dedicated IP.