我想在远程 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"]
This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html
bin/che.sh run
(没有任何参数),我得到了这个:[ERROR] [o.a.c.http11.Http11NioProtocol 460] - Failed to initialize end point associated with ProtocolHandler ["http-nio-8080"]
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
最佳答案
正确的步骤是:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
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`
WARNING : you have to point to the folder witch contains le "lib" one, to find your java install folder use this : `readlink -f $(which java)
bin/che.sh run
没有参数,如果出现问题,此命令会显示错误 https://stackoverflow.com/questions/37465754/
相关文章:
docker - 如何使用Docker Swarm和Consul启用更快的容器重新调度?
docker - Docker-compose守护程序模式日志
networking - 无法将Docker容器连接到Weave网络
docker - 装入命名卷时,在什么条件下从容器复制数据?
elasticsearch - cadvisor, elasticsearch, docker :
visual-studio - 适用于Windows Beta的Docker +适用于Visual
docker - Docker Kitematic连接ETIMEDOUT错误