how to install cloud9 IDE on ubuntu server

杀马特。学长 韩版系。学妹 提交于 2019-12-02 17:42:40

Cloud9's git repository and instructions have changed since the other answer was posted. See https://github.com/c9/core/ for more information. The following instructions seem to work for me on a vanilla Ubuntu 14.04.

  1. Install Git if you haven't already:

    sudo apt-get update && apt-get install build-essential
    sudo apt-get install git
    
  2. Install node.js if you don't already have a recent version installed:

    # Install node.js
    wget -O  ~/node-v0.10.33-linux-x64.tar.gz http://nodejs.org/dist/v0.10.33/node-v0.10.33-linux-x64.tar.gz
    tar -zxf ~/node-v0.10.33-linux-x64.tar.gz
    rm       ~/node-v0.10.33-linux-x64.tar.gz
    echo 'export PATH=$PATH:~/node-v0.10.33-linux-x64/bin' >> ~/.bashrc
    source ~/.bashrc
    
  3. Download and setup Cloud9:

    # Setup and start Cloud9 server
    # (You can get a zip file instead of using git)
    git clone https://github.com/c9/core.git c9sdk
    c9sdk/scripts/install-sdk.sh
    
  4. After the server starts successfully, you can stop it with Ctrl-C. Then you can start it with a different workspace:

    node c9sdk/server.js -w ~/my_workspace/
    
  5. Visit http://localhost:8181 to see the Cloud9 IDE in your browser.

If you don't like the self-hosted Cloud9 web-IDE, you can try Orion, Codiad, or Codebox.

ljs.dev

Getting Cloud9 IDE installed on your own server is not as hard as you may think.

It is basically these steps:

  1. Install node.js

  2. Clone Cloud9's Git repository to your server and install

  3. Run a command in the terminal to start the Cloud9 app:

bin/cloud9.sh -w ~/git/myproject -l 0.0.0.0

You can then access your Cloud9 app at http://yourserveraddress:3131 (3131 being the default port it will serve on.

As requested, you will not have learned much about node.js in the process ;)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!