我有以下問題,請安裝RVM:RVM - 錯誤時,試圖在CentOS的6.8
我想在CenteOS 6.8在我工作的公司安裝RVM。當我嘗試在我的本地機器上安裝它時,一切都會好起來的。但是,當我在CenteOS 6.8服務器機器上嘗試創建測試環境時,要向Quality Analyst進行測試,curl命令不起作用。
這裏是我試圖安裝它
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
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/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: requesting key 39499BDB from hkp server keys.gnupg.net
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <[email protected]>" imported
gpg: key 39499BDB: public key "Piotr Kuczynski <[email protected]>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 2
gpg: imported: 2 (RSA: 2)
在那之後,我試圖用捲成那樣安裝RVM:
$ \curl -sSL https://get.rvm.io | bash -s stable
一段時間後,我得到了:
$ \curl -sSL https://get.rvm.io | bash -s stable
curl: (35) SSL connect error
我曾嘗試噸的選項,我在StackOverflow和谷歌發現在這裏,但直到現在,我沒有succ eed
請問有人可以幫助我嗎?
@widjajayd,謝謝你的幫助。我試圖做下面的序列,但它再次停止在curl命令中。
yum install git
git config --global user.name "your name "
git config --global user.email "your email "
cd ~/.ssh
ssh-keygen -t rsa -C 「your email」
curl -L https://get.rvm.io | bash -s
的 'CD的〜/ .ssh' 沒有工作,因爲它不存在。所以,我創建了它並在其中創建了''ssh-keygen -t rsa -C「你的電子郵件」。
最後,我執行命令curl命令和我:
$ curl -L https://get.rvm.io | bash -s
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
194 194 194 194 0 0 222 0 --:--:-- --:--:-- --:--:-- 1405
curl: (35) SSL connect error
我已經使用這個命令我嘗試這最後的curl命令之前。但是,結果與上述相同。
關鍵是當你運行ssh-keygen -t rsa -C [email protected]時,它會創建2個文件id_rsa和id_rsa.pub,請檢查這個文件是否創建/不是 – widjajayd
我也讀過一些註釋,if你使用舊捲曲嘗試更新捲曲和nss,這裏有一些提示https://www.centos.org/forums/viewtopic.php?t=57349 – widjajayd