Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ RVM installation instructions     - CentOS modify yum update source (Linux)

- Applications in Objective-C runtime mechanism (Programming)

- The callback function used in C ++ (Programming)

- Linux installed Cisco Packet Tracer (Linux)

- Repair after installing Ubuntu no boot device error (Linux)

- [Errno 4] IOError: [Errno ftp error] with yum appears as a workaround (Linux)

- df show disk space usage (Linux)

- How do you turn on and off IPv6 address on Fedora (Linux)

- How to add and delete bookmarks in Ubuntu (Linux)

- How to Create a file can not be changed under Linux (Linux)

- Install Redis 2.6 5.5 32 position CentOS error resolved (Linux)

- Ubuntu font settings: Using Windows Font (Linux)

- CentOS 6.5 makes the LAN http source (Linux)

- Nginx Performance Tuning Guidelines (Server)

- To install Xen in Ubuntu 12.04 (Linux)

- Standardized UNIX command-line tool (Linux)

- CentOS 7 Test Marathon start Docker container (Server)

- KVM installation under CentOS 5.5 (Linux)

- Lazarus IDE Start Basics Tutorial (Linux)

- CentOS 7 source code to compile and install Nginx process record (Server)

 
         
  RVM installation instructions
     
  Add Date : 2017-04-13      
         
         
         
  Rvm is a command line tool that can provide a more convenient version of ruby environmental management and switching.

https://rvm.io/

If you intend to learn ruby / rails, rvm is one of the essential tools.

All commands are here and then the next user permissions for operations, do not use the best any command sudo.

rvm installation

$ Curl -L get.rvm.io | bash -s stable
$ Source ~ / .bashrc
$ Source ~ / .bash_profile
Modify RVM Ruby installation source to domestic Taobao mirror server, which can improve the speed of installation

$ Sed -i -e 's / ftp \ .ruby-lang \ .org \ / pub \ / ruby / ruby \ .taobao \ .org \ / mirrors \ / ruby / g' ~ / .rvm / config / db
ruby installation and handover

List known version of ruby
rvm list known
Install a ruby version
rvm install 1.9.3
The latest 1.9.3 installed here, rvm list known list which can be used to install.

Use a ruby version
rvm use 1.9.3
If you want to set as the default version, it can be

rvm use 1.9.3 --default
Query has been installed ruby
rvm list
Uninstall a version already installed
rvm remove 1.9.2
gemset use

rvm can not only provide more than one ruby version coexistence environment, but also according to different gemset project management.

gemset can be understood as a separate virtual environment gem, every gemset are independent.

For example, you have two projects, one is a rails 2.3 rails 3. gemset can help you establish two gem convenient development environment, and easily switch.

gemset ruby language version is attached below, for example, you use 1.9.2, the establishment of a call rails3 gemset, when switching to 1.8.7 when, rails3 this gemset does not exist.

Establish gemset
rvm use 1.8.7
rvm gemset create rails23
You can then set the established gemset as the current environment
use can be used to switch the language or gemset, provided that they have been installed (or create). And you can see in the list command.

rvm use 1.8.7
rvm use 1.8.7@rails23
Then install all the gem is installed under this gemset.

It lists the current ruby of gemset
rvm gemset list
Empty gemset in gem
If you want to clear a gemset all gem, I want to re-install all gem, it can be

rvm gemset empty 1.8.7@rails23
Delete a gemset
rvm gemset delete rails2-3
The project is automatically loaded gemset

rvm can also automatically load gemset.

For example, we have a rails3.1.3 project requires version 1.9.3 ruby. The whole process can be.

rvm install 1.9.3
rvm use 1.9.3
rvm gemset create rails313
rvm use 1.9.3@rails313
The following into the project directory, set up a .rvmrc file.

In this file you can add a simple command:

rvm use 1.9.3@rails313
Then no matter what your current settings are ruby, cd to the project when, rvm will help you load and ruby 1.9.3 rails313 gemset.

Use rvm to quickly deploy nginx + passenger

* First install passenger

gem install passenger
Then to install and deploy nginx passenger-install-nginx-module.

Because this step requires root privileges (because you want to compile nginx) can rvmsudo this thing. (This thing is really a good thing)

rvmsudo passenger-install-nginx-module
Then let you choose whether to download the source code to automatically compile and install nginx, nginx source or location of their choice.

Select the manual installation of nginx can add other parameters to compile, easy to customize compile nginx.

Then all the way to download and install. The default installation location is / opt / nginx.

Then take a look at nginx.conf, gave you configured, only you need to add root position (yourapp / public) on it.

When I first installation is complete, it exclaims, this is too cool it.

ps: rvm is a good thing, do it smart, will tell you why later (most of) the operation fails, and then tell you what you need to install Lib like, very suitable for novice veteran use, it is home travel necessary medicine.
     
         
         
         
  More:      
 
- Under Ubuntu 15.04 installation JDK8 (Linux)
- ARP Linux-related operations (Linux)
- The Samba service does not have permission to access (Server)
- Iptables in Ubuntu (Linux)
- True and false in Perl (Programming)
- Linux System Getting Started Learning: Linux how to install 7zip (Linux)
- OpenVPN offsite interconnecting room availability and load balancing solution (Server)
- rpm package specify the installation path (Linux)
- Linux system performance analysis and top command ps.pstree Comments (Linux)
- Use mdadm tool to create software RAID 0 (Linux)
- Linux firewall security (Linux)
- Java exception handling mechanism (Programming)
- Linux file system (inode and block) (Linux)
- Protection Docker container Notice (Server)
- Remote installation of Net-SNMP whole process (Linux)
- Debian (Wheezy) Install Redmine 2.6 (Programming)
- Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard (Linux)
- Sorting Algorithm (1) Quick Sort C ++ implementation (Programming)
- JavaScript function part (Programming)
- CentOS 6.4 install and configure Squid Proxy Server (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.