在 ubuntu 10.04 上安装 communote

在 ubuntu 10.04 上安装 communote

我正在 ubuntu 10.04 server 64 上安装 communote(最小安装)。

我按照手册并接受所有标准设置,但服务器没有启动:

ad@communote:~$ tar -xzf Communote-linux-x64.tar.gz 
ad@communote:~$ cd Communote-1.1.4/
ad@communote:~/Communote-1.1.4$ sudo ./setup.sh 

... java licence ...

Do you agree to the above license terms? [yes or no]
                    yes

Please specify a name for Gruppe (communote): 

Please specify a name for Gruppe (communote): 

Please specify a name for User (communote): 
TOMCAT_USER=communote

Please specify a name for Verzeichnis (/opt/communote): 
Parameter= Verzeichnis /opt/communote

Please specify a name for Data_dir (/opt/communote/data): 
Parameter= Data_dir /opt/communote/data

Please specify a port the application should use [8080]: 

The port 8080 will be used.
Creating group: communote 
Creating user: communote 

Copying Java...tar xvfz files/32/jre-1.6.0_18-linux-x86.tar.gz /opt/communote/jre-1.6.0_18 Done.

Copying Communote... Done.
Preparing Communote...Done.
Starting Communote...
Done.
You should visit http://localhost:8080/ now to finish the installation. 

If your server wasn't started automatically, you should try to start it manually using:
   sudo su communote <Enter>
   /opt/communote/communote/bin/startup.sh <Enter>

ad@communote:~/Communote-1.1.4$ 

ad@communote:~/Communote-1.1.4$ sudo su communote
communote@communote:/home/ad/Communote-1.1.4$ /opt/communote/communote/bin/startup.sh
Using CATALINA_BASE:   /opt/communote/communote
Using CATALINA_HOME:   /opt/communote/communote
Using CATALINA_TMPDIR: /opt/communote/communote/temp
Using JRE_HOME:        /opt/communote/jre-1.6.0_18
Using CLASSPATH:       /opt/communote/communote/bin/bootstrap.jar
communote@communote:/home/ad/Communote-1.1.4$ 

communote@communote:/home/ad/Communote-1.1.4$ exit
exit
ad@communote:~/Communote-1.1.4$ sudo ps aux|grep communote
ad        2122  0.0  0.1   7628   924 pts/0    S+   13:52   0:00 grep --color=auto communote
ad@communote:~/Communote-1.1.4$ telnet localhost 8080
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
ad@communote:~/Communote-1.1.4$ 

因此没有进程“communote”,也没有人在监听端口 8080

你能帮我吗?

编辑

ad@communote:~/Communote-1.1.4$ sudo netstat -nltp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      971/sshd        
tcp6       0      0 :::139                  :::*                    LISTEN      584/smbd        
tcp6       0      0 :::22                   :::*                    LISTEN      971/sshd        
tcp6       0      0 :::445                  :::*                    LISTEN      584/smbd      

編輯2

这是原始的启动脚本:

http://gist.github.com/615026


解决方案

我将 64 位 JRE 从安装程序手动复制到:

/opt/communote/jre-1.6.0_18

该目录原本是空的,现在包含:

ad@communote:/opt/communote/jre-1.6.0_18$ ls
bin  COPYRIGHT  javaws  lib  LICENSE  man  plugin  README  THIRDPARTYLICENSEREADME.txt  Welcome.html

现在一切正常了:

sudo su communote -c "/opt/communote/communote/bin/startup.sh" 

谢谢fmysky!

编辑:

过了一段时间,我决定在 32 位虚拟机上重新安装 communote。64 位上的 JVM 有时会很慢。

答案1

尝试 64 位 jre?

答案2

setup.sh 安装程序脚本尝试检测系统的体系结构。这是通过调用“uname -m”并检查它是否等于 x86_64 来完成的。这似乎在您的 Ubuntu 安装上失败了。为了解决这个问题,您能否告诉我们该命令的输出。

相关内容