Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure the local cloud9 development environment

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "how to configure the local cloud9 development environment", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to configure the local cloud9 development environment" this article.

Deployment

Environment: cent OS 7.4 64-bit

# first of all, clone the online code locally using git (during a long wait, retry several times): yum install gitgit clone git://github.com/c9/core.git c9sdk# enters the directory cd c9sdk/# installation depends on yum install npm# if there is an error PTY is not supported, install tmux to make the console of the online IDE development environment available yum install tmuxyum groupinstall-y developmentyum install gccyum install glibc-static# Ubuntu system as follows: sudo apt install tmux# Mac system is as follows: brew install tmux

The installation script is also provided in the source code, and you can execute scripts/install-sdk.sh (because of foreign network problems, it is also a long wait and constant retry).

Use

(shell exits, the program will be terminated) use nodejs's forever module to achieve the effect of running permanently in the background.

$sudo npm install forever-g # install $forever start app.js # start $forever stop app.js # close

Enable the service: start server.js

Permanently turn on the service: forever start server.js

Enable the service with parameters: node server.js-p port number-l IP address-a user name: password

Start Cloud9 in SDK, as follows:

. / server.js-p 8080-l 0.0.0.0-a: # full network segment access, including public network

The following options are available:

-- settings Settings file to use--help Show command line options.-t Start in test mode-k Kill tmux server in test mode-b Start the bridge server- to receive commands from the cli [default: false]-w Workspace directory--port Port--debug Turn debugging on--listen IP address of the server- -readonly Run in readonly mode--packed Whether to use the packed version.--auth Basic Auth username:password--collab Whether to enable collab.--no-cache Don't use the cached version of CSS

After SDK starts, navigate to http:// localhost:8080 in the browser to load IDE.

Port 8181 is enabled by default, so you can access http://127.0.0.1:8181 after we start it normally. Browsers running cloud9 recommend Chrome. The effect of configuration is as follows:

PS:

Ctrl+c ends the current task and exits

Ctrl+z pauses the current task and suspends in the background

All current tasks of jobs

The fg process number foreground suspends the task. The last one is suspended by default without adding the process number.

The bg process number suspends the task in the background. The last one is suspended by default without adding the process number.

The above is all the contents of the article "how to configure the local cloud9 development environment". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report