2016-08-25 47 views
1

我安裝在Ubuntu的16.04.1光澤服務器根據所述控制檯輸出它處於活動狀態並正在運行:閃亮服務器安裝:服務器未響應於端口3838

systemctl status shiny-server 
● shiny-server.service - ShinyServer 
    Loaded: loaded (/etc/systemd/system/shiny-server.service; enabled; vendor preset: enabled) 
    Active: active (running) since Wed 2016-08-24 18:17:09 CEST; 15h ago 
    Process: 13175 ExecStartPost=/bin/sleep 3 (code=exited, status=0/SUCCESS) 
Main PID: 13179 (shiny-server) 
    Tasks: 7 
    Memory: 28.5M 
     CPU: 158ms 
    CGroup: /system.slice/shiny-server.service 
      ├─13174 /bin/bash -c /opt/shiny-server/bin/shiny-server --pidfile=/var/run/shiny-server.p 
      └─13179 /opt/shiny-server/ext/node/bin/shiny-server /opt/shiny-server/lib/main.js --pidfi 
lines 1-11/11 (END) 

然後我打開端口3838的安裝指南中指出:

netstat -ntlp | grep LISTEN 
(Not all processes could be identified, non-owned process info 
will not be shown, you would have to be root to see it all.) 
tcp  0  0 0.0.0.0:22    0.0.0.0:*    LISTEN  - 
tcp  0  0 0.0.0.0:3838   0.0.0.0:*    LISTEN  - 
tcp6  0  0 :::80     :::*     LISTEN  - 
tcp6  0  0 :::22     :::*     LISTEN  - 

sudo ufw status 
Status: active 

To       Action  From 
--       ------  ---- 
22/tcp      ALLOW  Anywhere 
3838/tcp     ALLOW  Anywhere 
80/tcp      ALLOW  Anywhere 
22/tcp (v6)    ALLOW  Anywhere (v6) 
3838/tcp (v6)    ALLOW  Anywhere (v6) 
80/tcp (v6)    ALLOW  Anywhere (v6) 

Howevever如果我嘗試在端口3838來訪問我的服務器在瀏覽器中,我沒有得到來自服務器的響應和站點保持空白,並最終超時。

任何想法可能會失蹤?

回答

1

顯然,我的服務器上的端口3838出現了一些問題。雖然上面的控制檯輸出顯示它是開放的並列爲「LISTEN」,但它仍然無法工作。當我在配置文件(/etc/shiny-server/shiny-server.conf)中將我的閃存服務器的默認端口更改爲80時,它突然生效:

# Define a top-level server which will listen on a port 
    server { 
     # Instruct this server to listen on port 3838 
     listen 80; 
     ...