Bitnami JRuby for Huawei Enterprise Cloud

Similar documents
Bitnami Ruby for Huawei Enterprise Cloud

Bitnami MEAN for Huawei Enterprise Cloud

Bitnami Apache Solr for Huawei Enterprise Cloud

Bitnami HHVM for Huawei Enterprise Cloud

Bitnami MySQL for Huawei Enterprise Cloud

Bitnami MariaDB for Huawei Enterprise Cloud

Bitnami Kafka for Huawei Enterprise Cloud

Bitnami Piwik for Huawei Enterprise Cloud

Bitnami Tiny Tiny RSS for Huawei Enterprise Cloud

Bitnami ez Publish for Huawei Enterprise Cloud

Bitnami Pimcore for Huawei Enterprise Cloud

Bitnami Node.js for Huawei Enterprise Cloud

Bitnami Spree for Huawei Enterprise Cloud

Bitnami ProcessMaker Community Edition for Huawei Enterprise Cloud

Bitnami Dolibarr for Huawei Enterprise Cloud

Bitnami TestLink for Huawei Enterprise Cloud

Bitnami Coppermine for Huawei Enterprise Cloud

Bitnami OroCRM for Huawei Enterprise Cloud

Bitnami Cassandra for Huawei Enterprise Cloud

Bitnami Mantis for Huawei Enterprise Cloud

Bitnami Open Atrium for Huawei Enterprise Cloud

Bitnami Moodle for Huawei Enterprise Cloud

Bitnami Re:dash for Huawei Enterprise Cloud

Bitnami ERPNext for Huawei Enterprise Cloud

Bitnami Phabricator for Huawei Enterprise Cloud

Bitnami Trac for Huawei Enterprise Cloud

Bitnami OSQA for Huawei Enterprise Cloud

Bitnami JFrog Artifactory for Huawei Enterprise Cloud

Bitnami DokuWiki for Huawei Enterprise Cloud

Bitnami Magento for Huawei Enterprise Cloud

Bitnami MediaWiki for Huawei Enterprise Cloud

Bitnami Subversion for Huawei Enterprise Cloud

How To Start Mysql Using Linux Command Line Client In Ubuntu

Bitnami ELK for Huawei Enterprise Cloud

SUREedge MIGRATOR INSTALLATION GUIDE FOR HYPERV

SUREedge MIGRATOR INSTALLATION GUIDE FOR NUTANIX ACROPOLIS

Enable SSH Access on the Tenable Virtual Appliance (4.4.x-4.7.x) Last Revised: February 27, 2018

Session 1: Accessing MUGrid and Command Line Basics

Open a browser and download the Apache Tomcat 7 and Oracle JDBC 6 JAR from these locations. The Oracle site may require that you register as a user.

Student Website Setup

Parallel Programming Pre-Assignment. Setting up the Software Environment

SONOTON storage server

1. INTRODUCTION to AURO Cloud Computing

Ftp Command Line Manual Windows User Password

PCoIP Connection Manager for Amazon WorkSpaces

BriCS. University of Bristol Cloud Service Simulation Runner. User & Developer Guide. 1 October John Cartlidge & M.

SUREedge MIGRATOR INSTALLATION GUIDE FOR VMWARE

How To Start Mysql Use Linux Command Line Client In Ubuntu

Tutorial 1. Account Registration

Author A.Kishore/Sachin WinSCP

Setting up VPS on Ovh public cloud and installing lamp server on Ubuntu instance

Setting up PuTTY. Version Updated for 2015 Fall (with corrections)

Setting up PuTTY. Software* Downoad PuTTY. Download PuTTY Download the putty.zip file. It contains several programs for SSH, SFTP, and SCP.

Buzztouch Server 2.0 with Amazon EC2

Ricoh Managed File Transfer (MFT) User Guide

How To Start Mysql Use Linux Command Line Client In Xampp

Nagios Core AMI Setup Guide

LiveNX Upgrade Guide from v5.2.0 to v5.2.1

UNIVERSITY OF CYPRUS Computer Science Department

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

WinSCP. Author A.Kishore/Sachin

Aware IM Version 8.1 Installation Guide

1Integrate for ArcGIS Installation Guide. Server Edition

Copyright Maxprograms

KB How to upload large files to a JTAC Case

Flexible Engine. Startup Guide

Live Data Connection to SAP Universes

Working With the Amazon Machine Image (v1.3.3)

Ftp Command Line Manual Windows Username Password Linux

Robert Bukowski Jaroslaw Pillardy 6/27/2011

Setting up PuTTY. CTEC1767 Data Communications & Networking CTEC1863 Operating Systems CTEC1906 Internet Computing

VIRTUAL GPU LICENSE SERVER VERSION , , AND 5.1.0

NetIQ Privileged Account Manager 3.5 includes new features, improves usability and resolves several previous issues.

CSCI 201 Lab 1 Environment Setup

Installing Oxwall completely in Amazon Cloud

SUREedge DR Installation Guide for Windows Hyper-V

QuickStart Guide for Mobile Device Management. Version 8.7

Remote Access Via Remote Desktop

QuickStart Guide for Managing Computers. Version

Your Mission: Connect to a remote Linux target(s) disk using F-Response Consultant Edition.

Connect using Putty to a Linux Server

Topics. What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack!

Amazon Web Services Hands on EC2 December, 2012

SAP Business One. User Guide. Issue 04 Date HUAWEI TECHNOLOGIES CO., LTD.

Entrust Connector (econnector) Venafi Trust Protection Platform

JAMF Software Server Installation and Configuration Guide for Linux. Version 9.31

Your Mission: Connect to a remote Apple target(s) disk using F-Response Enterprise Edition.

JHU Economics August 24, Galaxy How To SSH and RDP

Altova CbC Reporting Solution. Installation Guide

Winscp System Error. Code 3. The System Cannot Find The Path Specified

SCCM Plug-in User Guide. Version 3.0

Metasploit. Installation Guide Release 4.4

Installing Open Project on Ubuntu AWS with Apache and Postgesql

Ftp Command Line Manual Windows Example Port 22

QuickStart Guide for Managing Computers. Version 9.73

Telnet/SSH. Connecting to Hosts. Internet Technology 1

Volume. Enterprise Secure File Transfer (ESFT) User Guide

Setting up my Dev Environment ECS 030

QuickStart Guide for Managing Computers. Version 9.32

Pexip Infinity and Amazon Web Services Deployment Guide

Transcription:

Bitnami JRuby for Huawei Enterprise Cloud Description JRuby is a 100% Java implementation of the Ruby programming language. It is Ruby for the JVM. JRuby provides a complete set of core built-in classes and syntax for the Ruby language. Which components are installed with the Bitnami JRuby Stack? The Bitnami JRuby Stack ships the components listed below. If you want to know which specific version of each component is bundled in the stack you are downloading, check the README.txt file on the download page or in the stack installation directory. You can also find more information about each component using the links below. Main components JRuby scripting language Java runtime Rails framework Apache Tomcat Web server MySQL database server Subversion phpmyadmin web application management tool for MySQL database (optional) Dependencies and additional components PageSpeed module SQLite database OpenSSL library CURL library OpenLDAP library How can I get started with JRuby? To get started, we suggest the following steps:

Step 1. Create a new Rails application. To create a new Rails application, initialize a new project as below. Remember to replace the APPNAME placeholder with the actual name of your project. jruby -S rails new APPNAME For more information, refer to these instructions. Step 2. Install gems. You might need to install gems for your project. You can do this easily with the gem install command. For example, run the following command to install Rake: sudo jruby -S gem install rake For more information, refer to these instructions. Step 3. Deploy your Rails application. To deploy your application, start the Rails server by running the following command: jruby -S bundle exec rails s This will start the Rails server for your application on port 3000. Find more information about how to access the application using your Web browser. For a production environment, we recommend configuring Apache or Nginx with Passenger before starting to serve your application. For more information, refer to these instructions. How to start or stop the services? Each Bitnami stack includes a control script that lets you easily stop, start and restart services. The script is located at /opt/bitnami/ctlscript.sh. Call it without any service name arguments to start all services: sudo /opt/bitnami/ctlscript.sh start Or use it to restart a single service, such as Apache only, by passing the service name as argument:

sudo /opt/bitnami/ctlscript.sh restart apache Use this script to stop all services: sudo /opt/bitnami/ctlscript.sh stop Restart the services by running the script without any arguments: sudo /opt/bitnami/ctlscript.sh restart Obtain a list of available services and operations by running the script without any arguments: sudo /opt/bitnami/ctlscript.sh How can I run a command in the Bitnami JRuby Stack? Log in to the server console as the bitnami user and run the command as usual. The required environment is automatically loaded for the bitnami user. For example, this command executes a simple Ruby program: jruby my_ruby_script.rb How to access a JRuby server application? For security reasons, JRuby server applications are accessible only when using 127.0.0.1 as the hostname. To access the application, it is necessary to create an SSH tunnel by forwarding port 3000 on the JRuby server to port 3000 on the local host. Refer to the FAQ for platform-specific instructions to create the SSH tunnel. An example of configuring the SSH tunnel using PuTTY on Windows is displayed below.

How to upload files to the server with SFTP? NOTE: Bitnami applications can be found in /opt/bitnami/apps. When uploading files via SFTP, you must have the server's IP address, username and password or, if you chose to deploy the server with an SSH key instead of a password, you must have the server username and corresponding SSH private key in.ppk format (for Windows) or in.pem format (for Linux and Mac OS X). To obtain the IP address for your server, follow these steps: Log in to the Huawei Cloud Server Console. Navigate to the "Computing -> Elastic Cloud Server" section. Note the public IP address for the server you wish to connect to.

Once you have confirmed that you have the IP address and correct SSH credentials for your server, follow the instructions below depending on the platform you wish to use. Although you can use any SFTP/SCP client to transfer files to your server, this guide documents FileZilla (Windows, Linux and Mac OS X), WinSCP (Windows) and Cyberduck (Mac OS X). Using an SSH Key Once you have your server's SSH key, choose your preferred application and follow the steps below to connect to the server using SFTP. FileZilla IMPORTANT: To use FileZilla, your server private key should be in PPK format. Follow these steps: Download and install FileZilla. Launch FileZilla and use the "Edit -> Settings" command to bring up FileZilla's configuration settings. Within the "Connection -> SFTP" section, use the "Add keyfile" command to select the private key file for the server. FileZilla will use

this private key to log in to the server. Use the "File -> Site Manager -> New Site" command to bring up the FileZilla Site Manager, where you can set up a connection to your server. Enter your server host name and specify bitnami as the user name.

Select "SFTP" as the protocol and "Ask for password" as the logon type. Use the "Connect" button to connect to the server and begin an SFTP session. You might need to accept the server key, by clicking "Yes" or "OK" to proceed. You should now be logged into the /home/bitnami directory on the server. You can now transfer files by dragging and dropping them from the local server window to the remote server window. If you have problems accessing your server, get extra information by use the "Edit -> Settings -> Debug" menu to activate FileZilla's debug log.

WinSCP IMPORTANT: To use WinSCP, your server private key should be in PPK format. Follow these steps: Download and install WinSCP. Launch WinSCP and in the "Session" panel, select "SFTP" as the file protocol.

Enter your server host name and specify bitnami as the user name. Click the "Advanced " button and within the "SSH -> Authentication -> Authentication parameters" section, select the private key file for the

server. WinSCP will use this private key to log in to the server. From the "Session" panel, use the "Login" button to connect to the server and begin an SCP session. You should now be logged into the /home/bitnami directory on the server. You can now transfer files by dragging and dropping them from the local server window to the remote server window. If you need to upload files to a location where the bitnami user doesn't have write permissions, you have two options: Once you have configured WinSCP as described above, click the "Advanced " button and within the "Environment -> Shell" panel, select sudo su - as your shell. This will allow you to upload files using

the administrator account. Upload the files to the /home/bitnami directory as usual. Then, connect via SSH and move the files to the desired location with the sudo command, as shown below: sudo mv /home/bitnami/uploaded-file /path/to/desired/location/ Cyberduck IMPORTANT: To use Cyberduck, your server private key should be in PEM format. Follow these steps:

Select the "Open Connection" command and specify "SFTP" as the connection protocol. In the connection details panel, under the "More Options" section, enable the "Use Public Key Authentication" option and specify the path to the private key file for the server.

Use the "Connect" button to connect to the server and begin an SFTP session. You should now be logged into the /home/bitnami directory on the server. You can now transfer files by dragging and dropping them from the local server window to the remote server window. Using a Password Once you have your server's SSH credentials, choose your preferred application and follow the steps below to connect to the server using SFTP. FileZilla Follow these steps: Download and install FileZilla. Launch FileZilla and use the "File -> Site Manager -> New Site" command to bring up the FileZilla Site Manager, where you can set up a connection to your server. Enter your server host name. Select "SFTP" as the protocol and "Ask for password" as the logon type. Use bitnami as the server username and the password generated

during the server deployment process. Use the "Connect" button to connect to the server and begin an SFTP session. You might need to accept the server key, by clicking "Yes" or "OK" to proceed. You should now be logged into the /home/bitnami directory on the server. You can now transfer files by dragging and dropping them from the local server window to the remote server window. If you have problems accessing your server, get extra information by use the "Edit -> Settings -> Debug" menu to activate FileZilla's debug log.

WinSCP Follow these steps: Download and install WinSCP. Launch WinSCP and in the "Session" panel, select "SFTP" as the file protocol.

Enter your server host name and set bitnami as the server username. From the "Session" panel, use the "Login" button to connect to the server and begin an SCP session. Enter the password when prompted. You should now be logged into the /home/bitnami directory on the server. You can now transfer files by dragging and dropping them from the local server window to the remote server window. Cyberduck Follow these steps:

Select the "Open Connection" command and specify "SFTP" as the connection protocol. In the connection details panel, enter the server IP address, bitnami as the username, and the password generated during the deployment

process. Use the "Connect" button to connect to the server and begin an SFTP session. You should now be logged into the /home/bitnami directory on the server. You can now transfer files by dragging and dropping them from the local server window to the remote server window. How to install gems in the Bitnami JRuby Stack? Log in to the server console as the bitnami user and run the gem install command. For example, run the following command to install Rake: sudo jruby -S gem install rake

How to create a new Rails application? If you are using JRuby, to create a new Rails application, change to the /home/bitnami directory and initialize a new project as below. Remember to replace the APPNAME placeholder with the actual name of your project. cd /home/bitnami jruby -S rails new APPNAME Next, start the Rails server by running the following command: cd /home/bitnami/appname jruby -S bundle exec rails s This will start the Rails server for your application on port 3000. Find more information about how to access the application using your Web browser. How to deploy a new Rails application? Using JRuby, start the Rails server by running the following command: cd APPNAME jruby -S bundle exec rails s This will start the Rails server for your application on port 3000. Find more information about how to access the application using your Web browser. How to create a new MySQL database for a Rails application? To create a new MySQL database for a Rails application: Start the MySQL command line client, as shown below. Enter the password for the MySQL root user. mysql -u root -p

At the MySQL prompt, run the following commands. Remember to replace the DBNAME, APPNAME and PASSWORD placeholders with actual values for your database name, application name and database user password. mysql> CREATE DATABASE IF NOT EXISTS DBNAME_production; mysql> CREATE DATABASE IF NOT EXISTS DBNAME_development; mysql> CREATE DATABASE IF NOT EXISTS DBNAME_test; mysql> GRANT ALL PRIVILEGES on DBNAME_test.* to 'APPNAME'@'localh ost' identified by 'PASSWORD'; mysql> GRANT ALL PRIVILEGES on DBNAME_production.* to 'APPNAME'@' localhost'; mysql> GRANT ALL PRIVILEGES on DBNAME_development.* to 'APPNAME'@ 'localhost'; mysql> FLUSH PRIVILEGES; Edit the config/database.yml file in your Rails project directory and update the database configuration. You can also copy the database.yml file from a sample or fresh project and modify the database details as needed: development: adapter: jdbc driver: com.mysql.jdbc.driver url: jdbc:mysql://localhost:3306/dbname_development username: APPNAME password: PASSWORD test: adapter: jdbc driver: com.mysql.jdbc.driver url: jdbc:mysql://localhost:3306/dbname_test username: APPNAME password: PASSWORD

production: adapter: jdbc driver: com.mysql.jdbc.driver url: jdbc:mysql://localhost:3306/dbname_production username: APPNAME password: PASSWORD How to access phpmyadmin? For security reasons, phpmyadmin is accessible only when using 127.0.0.1 as the hostname. To access it from a remote system, you must create an SSH tunnel that routes requests to the Apache Web server from 127.0.0.1. This implies that you must be able to connect to your server over SSH in order to access these applications remotely. IMPORTANT: Before following the steps below, ensure that your Apache and MySQL servers are running. NOTE: The steps below suggest using port 8888 for the SSH tunnel. If this port is already in use by another application on your local machine, replace it with any other port number greater than 1024 and modify the steps below accordingly. Similarly, if you have enabled Varnish, your stack's Apache Web server might be running on port 81. In this case, modify the steps below to use port 81 instead of port 80 for the tunnel endpoint. Windows To access the application using your Web browser, create an SSH tunnel, as described below. Download PuTTY and make sure you can log in to the server console with it following the instructions in the FAQ. Once you have confirmed you are able to log in successfully, log back out. Reconnect to the server using PuTTY, this time adapting the steps to include an additional SSH tunnel. When configuring the new SSH session in PuTTY, additionally navigate to the "Connection -> SSH -> Tunnels" section and create a secure tunnel by forwarding port 80 on the server to port 8888 on the local host (127.0.0.1 or localhost).

Click the "Add" button to add the secure tunnel configuration to the session. Here is an example: Go back to the "Session" section and save your changes by clicking the "Save" button. Click the "Open" button to open an SSH session to the server. The SSH session will now include a secure SSH tunnel between the two specified ports. While the tunnel is active, you should be able to access the phpmyadmin console through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin. To log in, use username root for MySQL and the application password from the detail page for your cloud server. If you are unable to access phpmyadmin, verify that the SSH tunnel was created by checking the PuTTY event log (accessible via the "Event Log" menu):

Linux and Mac OS X To access the application using your Web browser, create an SSH tunnel, as described below. Open a new terminal window on your local system (for example, using "Finder -> Applications -> Utilities -> Terminal" in Mac OS X or the Dash in Ubuntu). Make sure you can log in to the server console following the instructions in the FAQ. Once you have confirmed you are able to log in successfully, log back out. Run the following command to configure the SSH tunnel. Remember to replace SERVER-IP with the public IP address or hostname of your server. Enter your SSH password when prompted. ssh -N -L 8888:127.0.0.1:80 bitnami@server-ip If you are using a private key to connect to the server, use the following command instead, remembering to replace KEYFILE with the path to your private key and SERVER-IP with the public IP address or hostname of your server: ssh -N -L 8888:127.0.0.1:80 -i KEYFILE bitnami@server-ip NOTE: If successful, the above commands will create an SSH tunnel but will not display any output on the server console. While the tunnel is active, you should be able to access the phpmyadmin console through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin. To log in, use username root for MySQL and the application password from the detail page for your cloud server.