Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy a shiny application in Centos

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you how to deploy a shiny application in Centos. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

First install Rconda install release 3.6.1

Install the shiny package install.packages ("shiny")

Encounter an error report

LibXtst.so.6: cannot open shared object file: No such file or directory

According to this article

Https://blog.csdn.net/maoxiang/article/details/5747109?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1

Install three packages

Sudo yum install libXp

Sudo yum install libXt

Sudo yum install libXtst

Encountered the wrong report again

LibXRender.so.6: cannot open shared object file: No such file or directory

Install according to the above idea

Sudo yum install libXRender

Reinstall shiny

Install.packages ('shiny', repos = "https://mirrors.ustc.edu.cn/CRAN/")

Install shiny-server

Referenc

Https://blog.csdn.net/Candle_light/article/details/90057212

download

Https://rstudio.com/products/shiny/download-server/redhat-centos/

Wget https://download3.rstudio.org/centos6.3/x86_64/shiny-server-1.5.13.944-x86_64.rpm

Sudo yum install-nogpgcheck shiny-server-1.5.13.944-x86_64.rpm

Shiny-server configuration file in the / etc/shiny-server/ directory the file is the path where the shiny-server.conf is the port app.R file and the path where the log file is stored

Image.png runs sudo systemctl start shiny-server

Image.png

Check the log and keep sending me an error message-bash: r: command not found

It seems that R installed with conda is not good enough.

I deleted the R installed by conda

Conda remove R

Reinstall

Sudo yum install R

Restart sudo systemctl restart shiny-server

Still no, prompt digest this bag is not available

Then install this package.

Reinstall shiny

I also use ggplot2 and clusterProfiler in my shiny.

Continue to install these two packages

An error is reported during installation. Please refer to https://blog.csdn.net/m0_37952030/article/details/90745286 to solve the problem.

RcppEigen installation has been unsuccessful, want to download the old version of the local installation to try, the old version download address

Https://cran.r-project.org/src/contrib/Archive/RcppEigen/

Installation 3.3.4 succeeded

The commands used for local installation are

Install.packages ("/ home/RcppEigen_0.3.3.4.0.tar.gz", repos = NULL, type = "source")

Finally, clusterProfiler was successfully installed.

Restart the server

Sudo systemctl restart shiny-server

It finally worked. Ha. No, no, no.

Download the picture is normal, but the form download has been failed, why?

Image.png

As a result of today's day, I got this!

General operation of shiny-server # # restart

Sudo systemctl restart shiny-server

# # View status

Sudo systemctl status shiny-server

# # enable

Sudo systemctl start shiny-server

# # stop

Sudo systemctl stop shiny-server

The above is how to deploy a shiny application in Centos. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report