Installing Rstudio Server on CentOS6.5

Source: Internet
Author: User


2014-04-11

My system is 64-bit CentOS 6.5. Installs a preview version of Rstudio server, at which time the version is 64-bit 0.98.766. The following error has occurred during installation

  1. [[email protected] Download]# RPM-IVH rstudio-server-0.98.766-x86_64.rpm
  2. Error: Failed dependencies:
  3. Libcrypto.. 6 (64bit is needed by Rstudio--0.98. 766-1.x86_64
  4. Libgfortran.. 1 (64bit is needed by Rstudio--0.98. 766-1.x86_64
  5. Libssl. So. 6() (64bit) is needed by rstudio-server-0.98. 766-1.x86_64

Refer to an article on StackOverflow:

  1. Yum install Libcrypto. So. 6 -y
  2. Yum install Libgfortran. So. 1 -y
  3. Yum install Libssl. So. 6 -y
  4. Yum Install openssl098e-0.9. 8e -y
  5. Yum Install gcc41-Libgfortran-4.1. 2 -y
  6. Yum Install Pango-1.28. 1 -y
  7. wget ftp://rpmfind.net/linux/centos/6.5/os/x86_64/packages/compat-libgfortran-41-4.1.2-39.el6.x86_64. RPM
  8. RPM -UVH compat-libgfortran-4.1. 2-39.el6.x86_64. RPM
  9. RPM -Uvh -nodeps rstudio-server-0.98. 766-x86_64. RPM

It is still not possible to complete the above steps. Running rstudio-server verify-installation or will be an error

The problem is missing the library file, but /usr/lib the next is the file that is indicated in the error prompt, then look at /usr/lib64 the library file below

  1. [[email protected] lib64]# ll libcrypto*
  2. lrwxrwxrwx 1 root root 19< Span class= "PLN" > apr 9 12:15 Libcrypto.-> Libcrypto.. 1.0. 1e
  3. lrwxrwxrwx 1 root root 19< Span class= "PLN" > apr 9 12:15 Libcrypto.. 10 -> Libcrypto.. 1.0. 1e
  4. -rwxr-XR-x 1 root root 1950976 Apr 8 :42 libcrypto. So. 1.0. 1e
  5. [[email protected] lib64]# ll libssl*
  6. -rwxr-XR -x.1 root root 250168 feb< Span class= "PLN" > 11 21: 01 Libssl3.
  7. lrwxrwxrwx 1 root root 16< Span class= "PLN" > apr 9 12:15 Libssl.-> Libssl.. 1.0. 1e
  8. lrwxrwxrwx 1 root root 16< Span class= "PLN" > apr 9 12:15 Libssl.. 10 -> Libssl.. 1.0. 1e
  9. -rwxr-XR-x 1 root root 441112 Apr 8 : Libssl. So. 1.0. 1e

Found no libcrypto.so.6 andlibssl.so.6

Try creating a soft link to the library file:

    1. CD /usr/lib64
    2. ln -s Libssl. So. Ten Libssl. So. 6
    3. ln -s libcrypto. So. Ten Libcrypto. So. 6

rstudio-server verify-installationTest passed.

Firewall settings

In the browser input http://< server ip>:8787, found unreachable, this is due to CentOS's own firewall policy has not added 8787 port. Next, modify the firewall configuration file

    1. VI /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPTAdd below this sentence

    1. -A INPUT -m state --StateNEW -m TCP -p tcp- -dport 8787 -J ACCEPT

So you can access it!

User settings

Sometimes we have to restrict access to users of Rstudio server, which requires modifying the configuration file /etc/rstudio/rserver.conf , adding a

    1. Auth-required-user-Group=rstudio_users

Then add the user group Rstudio_users and user supstat to the command line

  1. Groupadd rstudio_users
  2. Useradd Supstat
  3. Usermod -a -G rstudio_users supstat
  4. # Set User password
  5. passwd Supstat
  6. # If you want to add sudo permissions to the user, see http://www.getroad.cn/blog/?action=show&id=801
  7. Chown -R supstat:rstudio_users /home/supstat

This allows you to log in to Rstudio server with Supstat's account.

View process

  1. [[email protected] R]#ps aux|grep rstudio-server
  2. 498 19292 0.1 0.3 2127883980 ?ssl 07:30 0:00 /usr/lib/ rstudio-server/bin< Span class= "pun" >/rserver
  3. Supstat 19307 0.5 4.3 568932 43956 sl 07: 31 0:03 /usr/lib /rstudio-server/< Span class= "PLN" >bin/rsession -u supstat
  4. Root 19414 0.0 0.0 103248 864 pts/0 R+ : 0: rstudio grep-server

You can see that there are two rstudio-server related processes, one is the rserver of the system and the other is the rsession of the user Supstat.

System Configuration and System management

    • System Configuration
    • System Management

Please refer to Zhang Dan's blog for installation under Ubuntu.

This article for Supstat original article, without permission not reproduced, if necessary reprint please contact contact#supstat.com (#换成 @)

integration of newer postphp and R

Installing Rstudio Server on CentOS6.5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.