Ubuntu under ECLIPSE+ERLANG+MONGODB development environment construction

Source: Internet
Author: User
Tags install mongodb administrator password

Ubuntu under ECLIPSE+ERLANG+MONGODB development environment Build-Linux operating system: Ubuntu_centos_debian-Red and Black Alliance

Recently, the company Webgame project to use the ERLANG+MONGODB, there is no way the project needs to learn Bai.

Learn this thing at least have the environment, today set up the development environment on the way to record, still under the development of Ubuntu.

By the way, if you do development, it is best to choose Linux, because many environments are easy to build under Linux. Win under the general will also

There are corresponding methods of construction, but often encounter some inexplicable problems. So it is recommended to do the development of students or Linux under it.

Okay, no more nonsense, continue our environment Setup (Ubuntu):

MONGODB Installation

Open the command to enter the following command:

1 sudo apt-get install mongodb

Confirm the installation after you enter the administrator password, and then wait for the installation to finish.

The speed of the fast 2-3 minutes to install it. Then we check whether the success:

1 pgrep mongo -l     //查看是否存在mongo的进行。为啥不看端口...初次安装我不知道端口号

You can see that the Mongod process with ID 3913 already exists, stating that it has started running.

Then we enter the MONGO directly to see what the goods look like, enter help we can look at the information,

Can see my version is now 2.0.4

OK, then continue to install Erlang:

The good thing about Ubuntu is that basically all you need is just a word, enter the following code:

1 sudo apt-get install erlang                   //是不是依旧那么简单,输入管理员密码然后确认安装,大概45M左右的程序包需要下载

Wait 3 minutes after the installation is complete. To be honest, for the first time you haven't read the document, go on Erlang and see what's going on.

As a result, my guess is wrong, in fact it should be erl .... Enter Erl-h to see a subset of the help information.

The next step is to install Erlang's plugin for the artifact Eclipse. In fact, I prefer to call vim the artifact. But in terms of project management, I still think Eclipse is a good choice.

Open Eclipse->help, install new soft, and click Add next to work with adds an IDE plugin for Erlang with the address:

1 http://erlide.org/update                              //erlide 一个erlang的ide插件

Click OK to wait a few minutes and automatically update the plugin information

, I am the two choice together, the following is the IDE plug-in above the name should be some plug-ins and code then installed.

The next step, the middle need to agree with their agreement, or can not continue.

After playing, File->new project can see that the Erlang project

Well, the environment is built up.

Ubuntu under the ECLIPSE+ERLANG+MONGODB development environment construction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.