我在Amazon EC2的远程Ubuntu服务器18.04上安装了Leiningen。之后,我使用命令“ lein new luminus guestbook + h2”创建了一个新应用程序,并以“ lein run”开始。我在终端中收到以下内容:
2019-01-06 05:41:07,609 [main] DEBUG org.jboss.logging - Logging Provider:
org.jboss.logging.Slf4jLoggerProvider
2019-01-06 05:41:09,400 [main] INFO guestbook.env -
-=[guestbook started successfully using the development profile]=-
2019-01-06 05:41:09,662 [main] INFO luminus.http-server - starting HTTP
server on port 3000
2019-01-06 05:41:09,733 [main] DEBUG io.undertow - starting undertow server
io.undertow.Undertow@51acd052
2019-01-06 05:41:09,746 [main] INFO org.xnio - XNIO version 3.3.6.Final
2019-01-06 05:41:09,933 [main] DEBUG io.undertow - Configuring listener
with protocol HTTP for interface 0.0.0.0 and port 3000
2019-01-06 05:41:10,018 [main] INFO org.projectodd.wunderboss.web.Web -
Registered web context /
2019-01-06 05:41:10,023 [main] INFO guestbook.nrepl - starting nREPL
server on port 7000
2019-01-06 05:41:10,057 [main] INFO guestbook.core -
#'guestbook.db.core/*db* started
2019-01-06 05:41:10,057 [main] INFO guestbook.core -
#'guestbook.handler/init-app started
2019-01-06 05:41:10,058 [main] INFO guestbook.core -
#'guestbook.handler/app started
2019-01-06 05:41:10,059 [main] INFO guestbook.core -
#'guestbook.core/http-server started
2019-01-06 05:41:10,059 [main] INFO guestbook.core -
#'guestbook.core/repl-server started
B但是当我尝试通过地址http://my-ipv4-public-ip:3000访问我的应用程序时,却没有成功。我在本地ubuntu上做了同样的事情,并且可以访问我的应用程序。