我正在尝试调试为什么在 AWS 实例上设置 Confluence 时出现连接错误。
我尝试在 CLI 上执行一个简单的测试命令,但收到错误“连接被拒绝”,这让我认为这可能是 Ubuntu 防火墙的问题,但我禁用了 UFW,它似乎没有 FirewallD。我还可以尝试禁用/配置哪些其他罪魁祸首/事物?
root@confluence:/usr/src# wget http://localhost:8090
--2018-05-16 01:03:37-- http://localhost:8090/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8090... failed: Connection refused.
root@confluence:/usr/src# free -m
total used free shared buff/cache available
Mem: 990 191 145 11 653 627
Swap: 0 0 0
root@confluence:/usr/src# systemctl status confluence
● confluence.service
Loaded: loaded (/etc/init.d/confluence; bad; vendor preset: enabled)
Active: active (exited) since Wed 2018-05-16 01:03:25 UTC; 1min 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 22595 ExecStart=/etc/init.d/confluence start (code=exited, status=0/SUCCESS)
May 16 01:03:25 confluence confluence[22595]: To run Confluence in the foreground, start the server with start-confluence.sh -fg
May 16 01:03:25 confluence confluence[22595]: executing using dedicated user: confluence
May 16 01:03:25 confluence runuser[22602]: pam_unix(runuser:session): session opened for user confluence by (uid=0)
May 16 01:03:25 confluence confluence[22595]: If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DO
May 16 01:03:25 confluence confluence[22595]: Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
May 16 01:03:25 confluence confluence[22595]: Existing PID file found during start.
May 16 01:03:25 confluence confluence[22595]: Removing/clearing stale PID file.
May 16 01:03:25 confluence confluence[22595]: Tomcat started.
May 16 01:03:25 confluence runuser[22602]: pam_unix(runuser:session): session closed for user confluence
May 16 01:03:25 confluence systemd[1]: Started confluence.service.
答案1
我使用的是低功率服务器。我不得不把它放了一夜,第二天它就正常工作了。我不能 100% 确定这是问题所在,但请尝试这种方法。