Eclipse Che IDE をリモートの ubuntu 14.04 サーバーにインストールしたいと考えています。これが私がしたことです:
- ラップトップからubuntuサーバーへのSSHセッションを開き、「useradm」としてログインしました
- この URLに従ってdocker をインストールしました
- /home/useradm/ で、ここから 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/*
- ここで解決策を見つけました:これを立ち上げました
sudo usermod -aG docker useradm
logout
- 新しいSSHセッションを開き、
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には、Che インターフェイスではなく、Tomcat のホームページが表示されます!? サーバー IP ではなく「 http://localhost:8080 」が表示されているのは通常のメッセージですか?
更新それはブラウザのキャッシュの問題でした.Cheを停止し、http://172.16.16.11:8080 , 404 をリロードしました.Cheを再度実行したところ、問題ありません:)