Centos7 install the che Service

Source: Internet
Author: User
Tags docker ps docker registry eclipse che

Centos7 install the che Service

The connection to the original article is: http://blog.csdn.net/freewebsys/article/details/50856788not supported by the blog.
The master address is: http://blog.csdn.net/freewebsys

1. About eclipse Che


Eclipse Che is a high-performance integrated browser-based development environment. It supports the Codenvy engine by providing a structured workspace, project input, and modular extension plug-in. Eclipse Che is developed in Java and supports Windows, Linux, and OS X systems. Provides extended functions to support multiple programming languages. Currently, the Supported languages include C ++, Go, Java, Python, Ruby, and SQL. It provides syntax highlighting, code analysis, code assistance, and debugging functions.

Build tool support: Ant, Bower, Grunt, Gulp, Maven and Npm

Supports development tool chains: Code Mirror, Git, Orion, SSH, and Subversion.

2. Install

Install docker first. Use centos7 to directly install yum: Start docker.

Yum-y install dockerservice docker startsystemctl enable docker # increase startup.

Eclipse che: http://www.eclipse.org/che/ open source technology development really fast, has begun to fold the cloud IDE. Let's see what technology is used for implementation.

Github Project address: https://github.com/eclipse/che/ looked at the project ide, actually is developed with GWT. I miss it. I have been studying this before. Unfortunately, I didn't use it.

Various Errors:

!!!!!! Running 'docker' succeeded, but 'docker Ps' failed. This usually means that docker cannot reach its daemon .!!! ########################## This is because the docker service is not started. Run the service docker start command. Make sure you have the docker service .!!!!!! 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 .!!! ########################### Create a docker user because the group settings are incorrect. Useradd dockergpasswd-a docker rootsudo su dockersh bin/che. sh run !!!!!! JAVA_HOME is not set. Please set to directory of JVM or JRE .!!! Modify/home/docker /. add # add JAVA_HOMEexport JAVA_HOME =/usr/java/defaultexport PATH = $ JAVA_HOME/bin: $ PATHexport 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 must be installed

Started successfully:

############## 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/tomcatUsing CATALINA_HOME:   /data/eclipse-che/tomcatUsing CATALINA_TMPDIR: /data/eclipse-che/tomcat/tempUsing JRE_HOME:        /usr/java/defaultUsing 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.jar2016-03-14 12:56:11,212[main]             [INFO ] [o.a.c.s.VersionLoggerListener 89]    - Server version:        Apache Tomcat/8.0.292016-03-14 12:56:11,214[main]             [INFO ] [o.a.c.s.VersionLoggerListener 91]    - Server built:          Nov 20 2015 09:18:00 UTC2016-03-14 12:56:11,214[main]             [INFO ] [o.a.c.s.VersionLoggerListener 93]    - Server number:         8.0.29.02016-03-14 12:56:11,214[main]             [INFO ] [o.a.c.s.VersionLoggerListener 95]    - OS Name:               Linux2016-03-14 12:56:11,227[main]             [INFO ] [o.a.c.s.VersionLoggerListener 97]    - OS Version:            3.10.0-229.el7.x86_642016-03-14 12:56:11,227[main]             [INFO ] [o.a.c.s.VersionLoggerListener 99]    - Architecture:          amd642016-03-14 12:56:11,227[main]             [INFO ] [o.a.c.s.VersionLoggerListener 101]   - Java Home:             /usr/java/jdk1.8.0_40/jre2016-03-14 12:56:11,228[main]             [INFO ] [o.a.c.s.VersionLoggerListener 103]   - JVM Version:           1.8.0_40-b262016-03-14 12:56:11,228[main]             [INFO ] [o.a.c.s.VersionLoggerListener 105]   - JVM Vendor:            Oracle Corporation2016-03-14 12:56:11,228[main]             [INFO ] [o.a.c.s.VersionLoggerListener 107]   - CATALINA_BASE:         /data/eclipse-che/tomcat2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 109]   - CATALINA_HOME:         /data/eclipse-che/tomcat2016-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.properties2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Xms256m2016-03-14 12:56:11,229[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Xmx1024m2016-03-14 12:56:11,230[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.security.egd=file:/dev/./urandom2016-03-14 12:56:11,230[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dport.http=80802016-03-14 12:56:11,230[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.home=/data/eclipse-che2016-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.jmxremote2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote.ssl=false2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote.authenticate=false2016-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/endorsed2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcatalina.base=/data/eclipse-che/tomcat2016-03-14 12:56:11,231[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcatalina.home=/data/eclipse-che/tomcat2016-03-14 12:56:11,232[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.io.tmpdir=/data/eclipse-che/tomcat/temp2016-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/read2016-03-14 12:56:11,573[main]             [INFO ] [o.a.catalina.startup.Catalina 587]   - Initialization processed in 924 ms2016-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 server2016-03-14 12:56:11,625[main]             [INFO ] [o.a.c.core.StandardService 433]      - Starting service Catalina2016-03-14 12:56:11,625[main]             [INFO ] [o.a.c.core.StandardEngine 259]       - Starting Servlet Engine: Apache Tomcat/8.0.292016-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.war2016-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 ms2016-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.war2016-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 ms2016-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.war2016-03-14 12:56:19,156[ost-startStop-1]  [WARN ] [p.DockerExtConfBindingProvider 51]   - DockerExtConfBindingProvider2016-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.*' properties2016-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 ms2016-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/ROOT2016-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 ms2016-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. Use

After successful startup, you can see the Panel page:

You can create a new project:




An error occurred while downloading the image from the official docker website.

You can use several domestic images. It is not discussed here.

4. Summary

The connection to the original article is: http://blog.csdn.net/freewebsys/article/details/50856788not supported by the blog. The master address is: http://blog.csdn.net/freewebsys

Eclipse che has been released to version 4. There is no research yet. In general, the local IDE is definitely not powerful. The idea is quite good. It can be combined with docker, and it is also open-source. It will be good to do some cloud services in the future. Due to network problems in China, the work interface is not displayed. As long as there is a network, the use of a browser can make code farmers work. It is better not to invent such a project !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.