zoukankan      html  css  js  c++  java
  • mosql 安装

    os: centos 7.5
    ruby:2.4.4
    mosql:0.4.3

    安装curl

    # yum install curl
    
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirrors.aliyun.com
     * extras: mirrors.aliyun.com
     * updates: mirrors.aliyun.com
    base                                                                                                           | 3.6 kB  00:00:00     
    epel                                                                                                           | 3.2 kB  00:00:00     
    extras                                                                                                         | 3.4 kB  00:00:00     
    updates                                                                                                        | 3.4 kB  00:00:00     
    zabbix                                                                                                         | 2.9 kB  00:00:00     
    zabbix-non-supported                                                                                           |  951 B  00:00:00     
    (1/5): epel/x86_64/group_gz                                                                                    |  88 kB  00:00:00     
    (2/5): epel/x86_64/updateinfo                                                                                  | 925 kB  00:00:00     
    (3/5): extras/7/x86_64/primary_db                                                                              | 150 kB  00:00:00     
    (4/5): epel/x86_64/primary                                                                                     | 3.5 MB  00:00:00     
    (5/5): updates/7/x86_64/primary_db                                                                             | 3.6 MB  00:00:01     
    epel                                                                                                                      12604/12604
    Package curl-7.29.0-46.el7.x86_64 already installed and latest version
    Nothing to do

    安装rvm

    # curl -L get.rvm.io | bash -s stable
    
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   194  100   194    0     0    255      0 --:--:-- --:--:-- --:--:--   255
    100 24361  100 24361    0     0   7694      0  0:00:03  0:00:03 --:--:-- 16016
    Downloading https://github.com/rvm/rvm/archive/1.29.4.tar.gz
    Downloading https://github.com/rvm/rvm/releases/download/1.29.4/1.29.4.tar.gz.asc
    gpg: directory `/root/.gnupg' created
    gpg: new configuration file `/root/.gnupg/gpg.conf' created
    gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
    gpg: keyring `/root/.gnupg/pubring.gpg' created
    gpg: Signature made Mon 02 Jul 2018 03:41:26 AM CST using RSA key ID BF04FF17
    gpg: Can't check signature: No public key
    Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found. Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).
    
    GPG signature verification failed for '/usr/local/rvm/archives/rvm-1.29.4.tgz' - 'https://github.com/rvm/rvm/releases/download/1.29.4/1.29.4.tar.gz.asc'! Try to install GPG v2 and then fetch the public key:
    
        gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    
    or if it fails:
    
        command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
    
    the key can be compared with:
    
        https://rvm.io/mpapis.asc
        https://keybase.io/mpapis
    
    NOTE: GPG version 2.1.17 have a bug which cause failures during fetching keys from remote server. Please downgrade or upgrade to newer version (if available) or use the second method described above.

    导入public key

    # gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    
    gpg: keyring `/root/.gnupg/secring.gpg' created
    gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
    gpg: /root/.gnupg/trustdb.gpg: trustdb created
    gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg:               imported: 1  (RSA: 1)

    重新安装rvm

    # curl -L get.rvm.io | bash -s stable
    
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   194  100   194    0     0    401      0 --:--:-- --:--:-- --:--:--   401
    100 24361  100 24361    0     0  15023      0  0:00:01  0:00:01 --:--:-- 51286
    Downloading https://github.com/rvm/rvm/archive/1.29.4.tar.gz
    Downloading https://github.com/rvm/rvm/releases/download/1.29.4/1.29.4.tar.gz.asc
    gpg: Signature made Mon 02 Jul 2018 03:41:26 AM CST using RSA key ID BF04FF17
    gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>"
    gpg:                 aka "Michal Papis <michal.papis@toptal.com>"
    gpg:                 aka "[jpeg image of size 5015]"
    gpg: WARNING: This key is not certified with a trusted signature!
    gpg:          There is no indication that the signature belongs to the owner.
    Primary key fingerprint: 409B 6B17 96C2 7546 2A17  0311 3804 BB82 D39D C0E3
         Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36  166B E206 C29F BF04 FF17
    GPG verified '/usr/local/rvm/archives/rvm-1.29.4.tgz'
    Creating group 'rvm'
    Installing RVM to /usr/local/rvm/
    Installation of RVM in /usr/local/rvm/ is almost complete:
    
      * First you need to add all users that will be using rvm to 'rvm' group,
        and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
    
      * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
        in all your open shell windows, in rare cases you need to reopen all shell windows.
      * Please do NOT forget to add your users to the rvm group.
         The installer no longer auto-adds root or users to the rvm group. Admins must do this.
         Also, please note that group memberships are ONLY evaluated at login time.
         This means that users must log out then back in before group membership takes effect!

    安装一个ruby版本

    # source /usr/local/rvm/scripts/rvm
    # rvm list known
    # rvm install 1.9.3
    # rvm use 1.9.3
    # rvm remove 1.9.3
    
    # rvm install 2.4.4
    # rvm use 2.4.4
    # ruby --version
    ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux]
    

    安装mosql

    # yum install postgresql-devel postgresql-libs postgresql
    # yum list installed|grep -i postgresql
    postgresql.x86_64                     9.2.23-3.el7_4                   @base    
    postgresql-devel.x86_64               9.2.23-3.el7_4                   @base    
    postgresql-libs.x86_64                9.2.23-3.el7_4                   @base 
    
    # gem install pg
    # gem install mosql

    参考:
    https://github.com/stripe/mosql

  • 相关阅读:
    邪恶改装2:用单片机实现一次简单的wifi密码欺骗
    TPYBoard自制微信远程智能温湿度计
    什么是私有网络
    DCHP是什么意思
    ipconfig 命令有什么作用
    什么是网关及网关作用
    什么叫路由
    kvm libvirt 虚拟机管理
    通过python-libvirt管理KVM虚拟机 源码
    通过python-libvirt管理KVM虚拟机 代码实现
  • 原文地址:https://www.cnblogs.com/ctypyb2002/p/9792945.html
Copyright © 2011-2022 走看看