Install RStudio Server on centOS6.5

May 8, 2014

(This article was first published on SupStat Data Science Blog » r-bloggers, and kindly contributed to R-bloggers)

      My system is 64-bit centOS 6.5. The 64-bit version then is 0.98.766 and the following error  appeared when installing RStudio Server preview version:


Refer to an article on stackoverflow:


Completion of the above steps is still not enough. Running rstudio-server verify-installation still reports errors.

The problem lies in the lack of library files, but there is indeed a file as mentioned in the error report  under /usr/lib. Then let’s check the library files under / usr/lib64 :


We could find there is no and

Attempting  to create a soft link library files:


rstudio-server verify-installation  test passed.

Firewall settings

In the browser, when entering http:// <server IP>: 8787, you will find it impossible to get accessed.  This  is due to built-in firewall policy in centOS which have not added 8787 port. Next, modify the firewall configuration file:


Add -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT after the following sentence:


So that you can access it!


User Settings

Sometimes we want to restrict user access to Rstudio Server, then it is necessary to modify the configuration file /etc/rstudio/rserver.conf, and add the following sentence:


Then add users groups rstudio_users and user supstat in the command line:



Then we can use supstat account to login in the Rstudio Server :


View the process:


We can see there are two rstudio-server-related processes: one is rserver system, and the other is the user supstat ‘s  rsession.

System configuration and system management


For installing under ubuntu you can refer to Zhang Dan’s blog


To leave a comment for the author, please follow the link and comment on their blog: SupStat Data Science Blog » r-bloggers. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Mango solutions

RStudio homepage

Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training


CRC R books series

Contact us if you wish to help support R-bloggers, and place your banner here.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)