默認播放端口9000 - 您在端口8888上看到的是激活碼。
轉到http://127.0.0.1:9000 - 如果它不起作用,那是因爲您沒有運行您的Play應用程序。
要麼...
圍棋的Run
查看您的瀏覽器(http://127.0.0.1:8888)的激活應用程序,並依序按一下[在Run
按鈕。如果你這樣做,你會看到在瀏覽器中以下(或類似):
Setting up Play fork run ... (use Ctrl+D to cancel)
--- (Running the application, auto-reloading is enabled) ---
p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
;或者執行激活在控制檯模式下(在命令行上,轉到您的播放應用程序目錄,並沒有ui
鍵入activator
) 。當它啓動時,輸入run
。您將看到以下(或類似):
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
你現在可以去http://127.0.0.1:9000看到你的應用程序。
你有沒有試過localhost:8888? –
什麼樣的*無法訪問*?連接被拒絕或無限頁面加載?我遇到了Activator的煩惱 - 無限頁面加載和使用所有CPU核心 - 問題出在主機名 - 我將其從「Desktop」更改爲「desktop.local」,並且完美運行。 – Maxim