Eclispse Che(1):Centos7 安装che服务

本文的原文连接是: http://blog.csdn.net/freewebsys/article/details/50856788 未经博主允许不得转载。
博主地址是:http://blog.csdn.net/freewebsys

1,关于eclipse Che


Eclipse Che 是一个高性能的基于浏览器的集成开发环境,通过提供结构化的工作区、项目输入、模块化扩展插件来支持 Codenvy 的引擎。Eclipse Che 采用 Java 开发,支持 Windows、Linux 和 OS X 系统。提供扩展功能用于支持多种编程语言。目前支持的语言包括:C++、Go、Java、Python、Ruby、SQL,提供语法高亮、代码分析、代码辅助和调试功能。

构建工具支持:Ant、Bower、Grunt、Gulp、Maven 和 Npm

支持开发工具链:Code Mirror、Git、Orion、SSH、Subversion

2,安装

首先需要安装docker。使用centos7 直接yum安装:启动docker。

yum -y install docker
service docker start
systemctl enable docker
#增加开机启动。

eclipse che下载地址:
http://www.eclipse.org/che/
开源的技术发展的真快,已经开始折腾云IDE了。
看看这个是用啥技术实现的。

github项目地址:
https://github.com/eclipse/che/
看了看项目的ide,居然是用GWT开发的。挺怀念的,之前一直研究这个,可惜没有使用上。

各种报错:

!!!
!!! Running 'docker' succeeded, but 'docker ps' failed. This usually means that docker cannot reach its daemon.
!!!
############################这个是因为docker服务没有启动。
执行service docker start,一定要有docker服务。

!!!
!!! This Linux user is not in docker group. See https://docs.docker.com/engine/installation/ubuntulinux/#create-a-docker-group
!!!

!!!
!!! This Linux user was launched with a UID != 1000. Che must run under UID 1000. See https://eclipse-che.readme.io/docs/usage#section-cannot-create-projects
!!!

!!!
!!! Running 'docker' succeeded, but 'docker ps' failed. This usually means that docker cannot reach its daemon.
!!!
############################因为组设置的不对,创建docker用户。
useradd docker
gpasswd -a docker root
sudo su docker
sh bin/che.sh run

!!!
!!! JAVA_HOME is not set. Please set to directory of JVM or JRE.
!!!
修改 /home/docker/.bashrc 最后一行增加
#add JAVA_HOME
export JAVA_HOME=/usr/java/default
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

!!!
!!! Che requires Java version 1.8 or higher. We found 1.7.0_75.
!!!
必须安装jdk 1.8

成功启动:

############## 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.
#############################################################

Using CATALINA_BASE:   /data/eclipse-che/tomcat
Using CATALINA_HOME:   /data/eclipse-che/tomcat
Using CATALINA_TMPDIR: /data/eclipse-che/tomcat/temp
Using JRE_HOME:        /usr/java/default
Using CLASSPATH:       /data/eclipse-che/tomcat/conf/:/usr/java/default/lib/tools.jar:/data/eclipse-che/tomcat/bin/bootstrap.jar:/data/eclipse-che/tomcat/bin/tomcat-juli.jar
2016-03-14 12:56:11,212[main]             [INFO ] [o.a.c.s.VersionLoggerListener 89]    - Server version:        Apache Tomcat/8.0.29
2016-03-14 12:56:11,214[main]             [INFO ] [o.a.c.s.VersionLoggerListener 91]    - Server built:          Nov 20 2015 09:18:00 UTC
2016-03-14 12:56:11,214[main]             [INFO ] [o.a.c.s.VersionLoggerListener 93]    - Server number:         8.0.29.0
2016-03-14 12:56:11,214[main]             [INFO ] [o.a.c.s.VersionLoggerListener 95]    - OS Name:               Linux
2016-03-14 12:56:11,227[main]             [INFO ] [o.a.c.s.VersionLoggerListener 97]    - OS Version:            3.10.0-229.el7.x86_64
2016-03-14 12:56:11,227[main]             [INFO ] [o.a.c.s.VersionLoggerListener 99]    - Architecture:          amd64
2016-03-14 12:56:11,227[main]             [INFO ] [o.a.c.s.VersionLoggerListener 101]   - Java Home:             /usr/java/jdk1.8.0_40/jre
2016-03-14 12:56:11,228[main]             [INFO ] [o.a.c.s.VersionLoggerListener 103]   - JVM Version:           1.8.0_40-b26
2016-03-14 12:56:11,228[main]             [INFO ] [o.a.c.s.VersionLoggerListener 105]   - JVM Vendor:            Oracle Corporation
2016-03-14 12:56:11,228[main]             [INFO ] [o.a.c.s.VersionLoggerListener 107]   - CATALINA_BASE:         /data/eclipse-che/tomcat
2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 109]   - CATALINA_HOME:         /data/eclipse-che/tomcat
2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.util.logging.config.file=/data/eclipse-che/tomcat/conf/logging.properties
2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Xms256m
2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Xmx1024m
2016-03-14 12:56:11,230[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.security.egd=file:/dev/./urandom
2016-03-14 12:56:11,230[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dport.http=8080
2016-03-14 12:56:11,230[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.home=/data/eclipse-che
2016-03-14 12:56:11,230[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.logs.dir=/data/eclipse-che/tomcat/logs/
2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote
2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote.ssl=false
2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.local.conf.dir=/data/eclipse-che/conf/
2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.endorsed.dirs=/data/eclipse-che/tomcat/endorsed
2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcatalina.base=/data/eclipse-che/tomcat
2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcatalina.home=/data/eclipse-che/tomcat
2016-03-14 12:56:11,232[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.io.tmpdir=/data/eclipse-che/tomcat/temp
2016-03-14 12:56:11,521[main]             [INFO ] [o.a.c.http11.Http11NioProtocol 425]  - Initializing ProtocolHandler ["http-nio-8080"]
2016-03-14 12:56:11,544[main]             [INFO ] [o.a.t.util.net.NioSelectorPool 72]   - Using a shared selector for servlet write/read
2016-03-14 12:56:11,573[main]             [INFO ] [o.a.catalina.startup.Catalina 587]   - Initialization processed in 924 ms
2016-03-14 12:56:11,625[main]             [INFO ] [c.m.JmxRemoteLifecycleListener 332]  - The JMX Remote Listener has configured the registry on port 32001 and the server on port 32101 for the Platform server
2016-03-14 12:56:11,625[main]             [INFO ] [o.a.c.core.StandardService 433]      - Starting service Catalina
2016-03-14 12:56:11,625[main]             [INFO ] [o.a.c.core.StandardEngine 259]       - Starting Servlet Engine: Apache Tomcat/8.0.29
2016-03-14 12:56:11,758[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 916]        - Deploying web application archive /data/eclipse-che/tomcat/webapps/swagger.war
2016-03-14 12:56:12,425[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 980]        - Deployment of web application archive /data/eclipse-che/tomcat/webapps/swagger.war has finished in 667 ms
2016-03-14 12:56:12,426[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 916]        - Deploying web application archive /data/eclipse-che/tomcat/webapps/dashboard.war
2016-03-14 12:56:12,695[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 980]        - Deployment of web application archive /data/eclipse-che/tomcat/webapps/dashboard.war has finished in 269 ms
2016-03-14 12:56:12,697[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 916]        - Deploying web application archive /data/eclipse-che/tomcat/webapps/ide.war
2016-03-14 12:56:19,156[ost-startStop-1]  [WARN ] [p.DockerExtConfBindingProvider 51]   - DockerExtConfBindingProvider
2016-03-14 12:56:21,243[ost-startStop-1]  [INFO ] [.c.p.d.c.DockerRegistryChecker 43]   - Probing registry 'http://localhost:5000'
2016-03-14 12:56:21,267[ost-startStop-1]  [WARN ] [.c.p.d.c.DockerRegistryChecker 50]   - Docker registry http://localhost:5000 is not available, which means that you won't be able to save snapshots of your workspaces.
How to configure registry?
        Local registry  -> https://docs.docker.com/registry/
        Remote registry -> set up 'docker.registry.auth.*' properties
2016-03-14 12:56:23,230[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 980]        - Deployment of web application archive /data/eclipse-che/tomcat/webapps/ide.war has finished in 10,532 ms
2016-03-14 12:56:23,232[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1036]       - Deploying web application directory /data/eclipse-che/tomcat/webapps/ROOT
2016-03-14 12:56:23,325[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1152]       - Deployment of web application directory /data/eclipse-che/tomcat/webapps/ROOT has finished in 93 ms
2016-03-14 12:56:23,342[main]             [INFO ] [o.a.c.http11.Http11NioProtocol 470]  - Starting ProtocolHandler ["http-nio-8080"]
2016-03-14 12:56:23,350[main]             [INFO ] [o.a.catalina.startup.Catalina 638]   - Server startup in 11776 ms

3,使用

成功启动之后就可以看到面板页面:

可以创建一个新的项目:




遇到一个问题,从docker官网下载镜像出现问题。

可以使用国内的几个镜像解决。
不在这里讨论了。

4,总结

本文的原文连接是: http://blog.csdn.net/freewebsys/article/details/50856788 未经博主允许不得转载。
博主地址是:http://blog.csdn.net/freewebsys

eclipse che都已经发布到4的版本了。还没有咋研究呢。
总体感觉上肯定没有本地IDE功能强大。
思路挺好的。可以将docker结合起来,而且还开源,将来做一些云服务,还是挺好的。
由于国内网络问题,没有进入工作界面。
只要有网络的地方,使用浏览器都能让码农干活。
这种项目最好还是不要发明出来的好!!!

时间: 2024-10-30 03:39:16

Eclispse Che(1):Centos7 安装che服务的相关文章

CentOS7安装Apache httpd服务

我的运行环境,阿里ECS服务器,系统是CentOS7.4 我使用的是Mac笔记本,使用终端ssh命令远程登录服务器. 以下为原创,写的比较杂. 安装教程: 使用RPM安装httpd 先使用命令查看是否安装了服务 rpm -qi httpd package httpd is not installed 没有安装过,使用yum命令进行安装 yum -y install httpd 大约5秒就安装完毕了 //安装过程httpd会自动安装以下依赖包 apr apr-util httpd-tools ma

Centos7下安装Solr服务和Solr基本用法

Requirements root@pts/6 $ 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) refer to solr system requirements Installation solr 这篇主要是以单实例Sol

阿里云ECS服务器CentOS7上安装Apache服务

阿里云ECS服务器CentOS7上安装Apache服务 ---------------------------------------------- 使用root登录 1.确保服务器系统处于最新状态 [root@localhost ~]# yum -y update 如果显示以下内容说明已经更新完成 Replaced:   grub2.x86_64 1:2.02-0.64.el7.centos   grub2-tools.x86_64 1:2.02-0.64.el7.centos        

阿里云ECS服务器CentOS7上安装MySql服务

阿里云ECS服务器CentOS7上安装MySql服务 ---------------------------------------------- 使用root登录 1.确保服务器系统处于最新状态 [root@localhost ~]# yum -y update 如果显示以下内容说明已经更新完成 Replaced:   grub2.x86_64 1:2.02-0.64.el7.centos   grub2-tools.x86_64 1:2.02-0.64.el7.centos Complete

centos7 安装tigervnc完毕后黑屏

问题描述 centos7 安装tigervnc完毕后黑屏 1.首先说明下,我们用的是阿里云的服务器,所以我没办法直接登陆服务器看界面 所以需要安装VNC. 2.目前安装VNC前已经装好的东西: X Window System GNOME Desktop Server with GUI 然后,vnc服务器也已经装好: VNC的配置也已经配置好: 配置文件在/etc/systemd/system/下,名字叫vncserver@:1.service 配置内容如图: VNC的服务也已经启动: 但通过re

centos7 安装java和tomcat9

centos7 安装java 下载好java安装包后,首先是解压,然后配置环境变量. 在usr下新建Java文件夹,把java解压到Java文件夹中 新建文件夹 # mkdir /usr/Java 键入到java安装的目录下,解压安装包 # tar -zxvf jdk-7u45-linux-x64.tar.gz -C /usr/Java 设置环境变量,在/etc/profile文件最后追加相关内容 # vi /etc/profile # 添加的内容 export JAVA_HOME=/usr/J

CentOS7安装MySQL5.6.27数据库

#####################CentOS7安装MySQL数据库############################ 查看linux系统信息: CentOS-7-x86_64-DVD-1503-01.iso MySQL-client-5.6.27-1.el6.x86_64.rpm  MySQL-devel-5.6.27-1.el6.x86_64.rpm  MySQL-server-5.6.27-1.el6.x86_64.rpm [root@localhost etc]# cat

centOS安装telnet服务和xinetd服务和iptables和linux运行级别

默认在centOS最小安装下没有安装telnet服务的,需要自己安装(root权限): 错误: [root@localhost log]# telnet 192.168.10.56 27017 -bash: telnet: command not found 1:查看系统版本信息(centos7): [root@localhost log]# cat /etc/issue \S Kernel \r on an \m 2:检查是否安装telnet: [root@localhost log]# rp

Centos6和Centos7开机自动启动服务方法

说下Centos6和Centos7开机自动启动服务简单方法,我是采用yum install直接安装的,所以和自编译的方法有所不同,在这里只说rpm包安装后的自启动服务的方法: Centos6:对于Centos6系统来说,直接使用chkconfig命令即可. 例如我们以nginx服务为例: #chkconfig --add nginx 添加nginx服务 #chkconfig nginx on 开机自启nginx服务 #chkconfig nginx off 关闭开机自启 #chkconfig -