2015-04-07 66 views
1

我們在ubuntu 12.04LTS 32位服務器上本地安裝了cloud9 ide。安裝步驟依次爲url http://ubuntuforums.org/showthread.php?t=1813076 Cloud9 IDE正在運行並能夠看到主頁(localhost:3131 /) 當我們嘗試運行php或python文件時,在控制檯窗口上顯示一條消息「[C9 Server Exception 2]未定義 「Cloud9 IDE [C9服務器異常2] undefined

並且還請求到localhost:3131 /調試拋出 」404未找到「 post數據爲如下, { 」劑「:」 的Mozilla/5.0(Windows NT的6.1; WOW64; RV:38.0) Gecko/20100101 Firefox/38.0「,」type「:」C9 SERVER EXCEPTION「,」message「:{」type「:」error「,」message「:」文件不存在:root/local/bin/node「 ,「code」:2,「data」 :{「command」:「Run」,「file」:「root/local/bin/node」,「runner」:「node」,「args」:[「」 ],「env」:{「C9_SELECTED_FILE」 :「」}}}}

如何解決此問題?

+0

看來該節點沒有安裝在服務器上。使用安裝即可使用'sudo apt-get的安裝nodejs' – Mutahhir

+0

和的NodeJS安裝節點, 根@本地:〜#它的NodeJS 在/ usr/bin中/ 的NodeJS根@本地:〜#-v的NodeJS V0 。 10。38 根@本地:〜#哪個節點 /根/ local/bin目錄/節點 根@本地:〜#節點-v v0.4.10 – SDL

+0

如果你已經使用'sudo易於得到安裝node'安裝節點,你必須刪除它。這可能是你得到這個問題的原因。使用'sudo apt-get install nodejs'刪除節點二進制文件並再次安裝節點 – Mutahhir

回答

1

http://ubuntuforums.org/showthread.php?t=1813076中的安裝步驟適用於較早的版本。

安裝

按照以下步驟來安裝SDK:

git clone git://github.com/c9/core.git c9sdk 
cd c9sdk 
scripts/install-sdk.sh 

要更新SDK到最新版本運行:

git pull origin master 
scripts/install-sdk.sh 

請注意,CLOUD9目前v3的要求Node.js 0.12或0.10。

開始CLOUD9

啓動CLOUD9如下:

node server.js 

下列選項可用於:

--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 read only 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 

現在訪問http://localhost:8181/ide.html加載CLOUD9。

運行測試

運行服務器端的測試用:

npm run test 

運行客戶端測試有:

npm run ctest 

然後在你的瀏覽器訪問http://localhost:8181/static/test

欲瞭解更多詳情請參閱:https://github.com/c9/core#installation