我想在远程ubuntu 14.04服务器上安装Eclipse Che IDE。我在这里做了什么:
bin/che.sh -i run
,得到了这个: Starting Che server in docker container named che.
A Docker container named che does not exist or duplicate conflict was discovered.
Cleaning up any zombie containers named che...
Pulling the Docker image labeled codenvy/che:latest...
latest: Pulling from codenvy/che
72b39c1d4615: Pull complete
46a2d5ede4a6: Pull complete
d7caf6e91ad4: Pull complete
c7ac9f284354: Pull complete
a3ed95caeb02: Pull complete
622afa89a87c: Pull complete
5f4e252666a5: Pull complete
8302e51d25eb: Pull complete
Digest: sha256:19a8b73c5349604d746b3ad27dd78d4fbdb32933ab496e1f1b3ed77928cea355
Status: Downloaded newer image for codenvy/che:latest
Launching a new Docker container named che from image codenvy/che:latest...
e504a0ba54f87b4dd4a5b417ce540c3f43084818fb677b40f4c5e8f90669f002
Docker container named che successfully started.
Launching Che in a container named che...
sudo: unable to send audit message: Operation not permitted
bash: line 1: 10 Segmentation fault (core dumped) sudo rm -rf /home/user/che/lib-copy/*
sudo usermod -aG docker useradm
logout
bin/che.sh -i run
,得到了这个: ############## HOW TO CONNECT YOUR CHE CLIENT ###############
After Che server has booted, you can connect your clients by:
...
15:04:36,897 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file] - File property is set to [null]
15:04:36,899 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[file] - Failed to create parent directories for [/home/user/che/tomcat/logs/2016/05/26/catalina-0.log]
...
2016-05-26 15:04:38,608[ost-startStop-1] [ERROR] [o.a.j.EmbeddedServletOptions 692] - The scratchDir you specified: /home/user/che/tomcat/work/Catalina/localhost/dashboard is unusable.
...
2016-05-26 15:04:42,025[main] [INFO ] [o.a.c.http11.Http11NioProtocol 514] - Stopping ProtocolHandler ["http-nio-8080"]
2016-05-26 15:04:42,026[main] [INFO ] [o.a.c.http11.Http11NioProtocol 529] - Destroying ProtocolHandler ["http-nio-8080"]
我的步骤有什么问题? :(
在我的浏览器中,http://172.16.16.11:8080/工作正常:
This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html
我是否必须将Che文件从/ home / useradm /移动到/ var / lib / tomcat7 / webapps / ROOT /?
更新:我运行了bin/che.sh run
(没有任何参数),我得到了这个:
[ERROR] [o.a.c.http11.Http11NioProtocol 460] - Failed to initialize end point associated with ProtocolHandler ["http-nio-8080"]
tomcat使用8080端口,我应该停止tomcat服务吗?
更新:我是对的:)我停止了tomcat:
sudo service tomcat7 stop
我得到了这个:
############## HOW TO CONNECT YOUR CHE CLIENT ###############
After Che server has booted, you can connect your clients by:
1. Open browser to http://localhost:8080, or:
2. Open native chromium app.
#############################################################
...
Server startup in 6151 ms
但是http://172.16.16.11:8080仍然显示tomcat主页,而不是Che界面!这是正常的消息显示" http://localhost:8080"不是服务器IP?
更新这是一个浏览器缓存问题,我停止了Che,重新加载http://172.16.16.11:8080:404,我再次运行Che,现在没问题了:)
答案 0 :(得分:0)
正确的步骤是:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
3.检查java版本:java -version
,这里是我得到的:
useradm@modlamp01:~/eclipse-che-4.0.1$ java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre
export PATH=$JAVA_HOME/bin:$PATH
警告:您必须指向包含le" lib"的文件夹。一,找到你的java安装文件夹使用这个:readlink -f $(which java)
bin/che.sh run
没有参数,如果出现问题,此命令显示错误