ubuntu - ubuntu下无法运行Eclipse Che

我想在远程 ubuntu 14.04 服务器上安装 Eclipse Che IDE。这是我所做的:

  • 打开从我的笔记本电脑到 ubuntu 服务器的 SSH session ,以“useradm”
  • 身份登录
  • 关注 this URL安装 docker
  • 在/home/useradm/我从 here 下载了一个 TAR.GZ 文件
  • 跑了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/* 
    
  • 找到解决方案here : 推出这个
  • sudo usermod -aG docker useradm
    logout
    
  • 打开新的 SSH session ,运行 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"]
    

    8080端口被tomcat使用,我应该停止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,现在可以了 :)

    最佳答案

    正确的步骤是:

  • 在任意文件夹中解压文件
  • 安装 JRE 8:
  • sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer
    
  • 检查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)
    
  • 设置 JAVA_HOME 变量:
  • 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)
    
  • 确保 8080 端口空闲
  • 运行这个:bin/che.sh run没有参数,如果出现问题,此命令会显示错误
  • https://stackoverflow.com/questions/37465754/

    相关文章:

    docker - 如何使用Docker Swarm和Consul启用更快的容器重新调度?

    docker - Docker-compose守护程序模式日志

    docker - 可以创建增量检查点 CRIU

    networking - 无法将Docker容器连接到Weave网络

    docker - 装入命名卷时,在什么条件下从容器复制数据?

    elasticsearch - cadvisor, elasticsearch, docker :

    visual-studio - 适用于Windows Beta的Docker +适用于Visual

    docker - Docker Kitematic连接ETIMEDOUT错误

    docker - 错误的 docker 标签让守护进程卡住了

    docker - 当我尝试连接到 docker 镜像时,主机没有运行