Guest User

Untitled

a guest
Oct 21st, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.46 KB | None | 0 0
  1. This site can’t be reached
  2. <server-ip> refused to connect.
  3. Search Google for 206 196 8787
  4. ERR_CONNECTION_REFUSED
  5.  
  6. ~$ R
  7. R version 3.4.1 (2017-06-30) -- "Single Candle"
  8. Copyright (C) 2017 The R Foundation for Statistical Computing
  9. Platform: x86_64-redhat-linux-gnu (64-bit)
  10.  
  11. R is free software and comes with ABSOLUTELY NO WARRANTY.
  12. You are welcome to redistribute it under certain conditions.
  13. Type 'license()' or 'licence()' for distribution details.
  14.  
  15. Natural language support but running in an English locale
  16.  
  17. R is a collaborative project with many contributors.
  18. Type 'contributors()' for more information and
  19. 'citation()' on how to cite R or R packages in publications.
  20.  
  21. Type 'demo()' for some demos, 'help()' for on-line help, or
  22. 'help.start()' for an HTML browser interface to help.
  23. Type 'q()' to quit R.
  24.  
  25. > print("I Work")
  26. [1] "I Work"
  27.  
  28. ~$ sudo rstudio-server verify-installation
  29. ~$ sudo rstudio-server status
  30. ● rstudio-server.service - RStudio Server
  31. Loaded: loaded (/etc/systemd/system/rstudio-server.service; enabled; vendor preset: disabled)
  32. Active: active (running) since Sat 2017-10-21 21:33:53 MST; 1s ago
  33. Process: 8300 ExecStop=/usr/bin/killall -TERM rserver (code=exited, status=0/SUCCESS)
  34. Process: 8346 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
  35. Main PID: 8349 (rserver)
  36. CGroup: /system.slice/rstudio-server.service
  37. └─8349 /usr/lib/rstudio-server/bin/rserver
  38.  
  39. Oct 21 21:33:53 localhost.localdomain systemd[1]: Starting RStudio Server...
  40. Oct 21 21:33:53 localhost.localdomain systemd[1]: Started RStudio Server.
  41. ~$ sudo rstudio-server restart
  42. rsession: no process found
  43. ~$ sudo rstudio-server start
  44. ~$ sudo rstudio-server stop
  45. rsession: no process found
  46. ~$ sudo rstudio-server start
  47. ~$ sudo rstudio-server status
  48. ● rstudio-server.service - RStudio Server
  49. Loaded: loaded (/etc/systemd/system/rstudio-server.service; enabled; vendor preset: disabled)
  50. Active: active (running) since Sat 2017-10-21 21:34:14 MST; 2s ago
  51. Process: 8449 ExecStop=/usr/bin/killall -TERM rserver (code=exited, status=0/SUCCESS)
  52. Process: 8477 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
  53. Main PID: 8480 (rserver)
  54. CGroup: /system.slice/rstudio-server.service
  55. └─8480 /usr/lib/rstudio-server/bin/rserver
  56.  
  57. Oct 21 21:34:14 localhost.localdomain systemd[1]: Starting RStudio Server...
  58. Oct 21 21:34:14 localhost.localdomain systemd[1]: Started RStudio Server.
  59.  
  60. ~$ netstat -nat | grep LISTEN
  61. tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
  62. tcp 0 0 0.0.0.0:8787 0.0.0.0:* LISTEN
  63. tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN
  64. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
  65. tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
  66. tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
  67. tcp6 0 0 :::111 :::* LISTEN
  68. tcp6 0 0 :::22 :::* LISTEN
  69. tcp6 0 0 ::1:631 :::* LISTEN
  70. tcp6 0 0 ::1:25 :::* LISTEN
  71.  
  72. ~$ sudo ufw allow 8787
  73. ~$ sudo ufw status
  74. Status: active
  75.  
  76. To Action From
  77. -- ------ ----
  78. SSH ALLOW Anywhere
  79. 224.0.0.251 mDNS ALLOW Anywhere
  80. 8787 ALLOW Anywhere
  81. SSH (v6) ALLOW Anywhere (v6)
  82. ff02::fb mDNS ALLOW Anywhere (v6)
  83. 8787 (v6) ALLOW Anywhere (v6)
  84.  
  85. ~$ sudo systemctl status firewalld
  86. ● firewalld.service - firewalld - dynamic firewall daemon
  87. Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
  88. Active: active (running) since Sat 2017-10-21 20:38:02 MST; 35min ago
  89. Docs: man:firewalld(1)
  90. Main PID: 2987 (firewalld)
  91. CGroup: /system.slice/firewalld.service
  92. └─2987 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
  93.  
  94. ~$ sudo firewall-cmd --zone=public --add-port=8787/tcp
  95. Warning: ALREADY_ENABLED: '8787:tcp' already in 'public'
  96. success
  97. ~$ sudo firewall-cmd --reload
  98. success
  99. ~$ sudo firewall-cmd --zone=public --list-all
  100. public (active)
  101. target: default
  102. icmp-block-inversion: no
  103. interfaces: enp4s0f1
  104. sources:
  105. services: dhcpv6-client ssh
  106. ports: 8787/tcp
  107. protocols:
  108. masquerade: no
  109. forward-ports:
  110. source-ports:
  111. icmp-blocks:
  112. rich rules:
Add Comment
Please, Sign In to add comment