R shinyserver:如何在shinyserver上部署我的应用程序?

R shinyserver:如何在shinyserver上部署我的应用程序?,r,shiny-server,R,Shiny Server,我按照以下步骤在Red Hat Enterprise Linux server 7.2版上安装了Shining服务器: # path to my application on server /home/anon/shinyapps/myapp/ myapp ├── R # Rscripts ├── data # R objects ├── server.R ├── ui.R └── www └── styles.css # install R sudo yum update sudo

我按照以下步骤在Red Hat Enterprise Linux server 7.2版上安装了Shining服务器:

# path to my application on server
/home/anon/shinyapps/myapp/

myapp
├── R # Rscripts
├── data # R objects
├── server.R
├── ui.R
└── www
    └── styles.css

# install R
sudo yum update
sudo yum install R
sudo yum install libcurl-devel openssl-devel

# change Rprofile
sudo vi /usr/lib64/R/library/base/R/Rprofile

# add the following to the Rprofile
# download method
options(download.file.method = "libcurl")

# default CRAN mirror
local({
  r <- getOption("repos")
  r["CRAN"] <- "https://cran.rstudio.com/"
  options(repos=r)
})

# install shiny
sudo su - -c "R -e \"install.packages('shiny')\""

# install shiny server
wget https://download3.rstudio.org/centos5.9/x86_64/shiny-server-1.4.4.801-rh5-x86_64.rpm
sudo yum install --nogpgcheck shiny-server-1.4.4.801-rh5-x86_64.rpm

# edit config file
/etc/shiny-server/shiny-server.conf
我正试图通过转到
http://myserveraddress:3838/NWP/
上面写着
无法访问此站点
。我错过了什么

我试过什么:

$ sudo firewall-cmd --zone=public --permanent --add-port=3838/tcp && firewall-cmd --reload
success
Authorization failed.
Make sure polkit agent is running or run the application as superuser.

$ systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2016-08-05 10:44:34 EDT; 1 weeks 0 days ago
 Main PID: 1032 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─1032 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
这起到了作用:

sudo firewall-cmd --zone=public --add-port=3838/tcp --permanent && sudo firewall-cmd --zone=public --add-port=3838/tcp
谢谢

这成功了:

sudo firewall-cmd --zone=public --add-port=3838/tcp --permanent && sudo firewall-cmd --zone=public --add-port=3838/tcp

firewall cmd--list port
返回什么?它不返回任何内容。请尝试运行
firewall cmd--zone=public--permanent--add port=3838/tcp&&firewall cmd--reload
作为root用户。这使我获得了
成功。授权失败。确保polkit代理正在运行或以超级用户身份运行应用程序。
sudo firewall-cmd --zone=public --add-port=3838/tcp --permanent && sudo firewall-cmd --zone=public --add-port=3838/tcp