Linux 命令詳解(九)輕易刪除OpenSSL 的後果

警告本身,不要輕易的去刪除系統的軟件php

一、composer自動更新出現錯誤web

www@TinywanAliYun:~/web/go-study-line$ composer self-update
Key chrisboulton/php-resque is a duplicate in ./composer.json at line 48

                                                                                                                                  
  [Composer\Downloader\TransportException]                                                                                        
 The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:  
  error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed Failed to enable crypto failed to open stream: operation failed                                                                                     
                                                                                                                                  

self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]

解決辦法:json

按照百度的:http://www.yiichina.com/tutorial/441 ,指定的安全證書(重啓php服務),仍是錯誤安全

www@TinywanAliYun:~/web/go-study-line$ composer self-update
Key chrisboulton/php-resque is a duplicate in ./composer.json at line 48

                                                                                                                                                    
  [Composer\Downloader\TransportException]                                                                                                          
  The "https://getcomposer.org/versions" file could not be downloaded: failed loading cafile stream: `/usr/share/php/data/Composer/res/cacert.pem'  
  Failed to enable crypto                                                                                                                           
  failed to open stream: operation failed 

最後經過如下步驟解決問題(刪除全部的composer,從新安裝):composer

 2060  sudo find / -name composer
 2061  sudo rm /usr/local/bin/composer 
 2062  sudo rm /usr/bin/composer 
 2063  rm /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer
 2064  rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer
 2065  rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer/vendor/composer
 2066  sudo find / -name composer
 2067  rm /tmp/8fc9c56d14b6542c6ff7147207730f6b/home/www/web/go-study-line/vendor/composer
 2068  sudo rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6b/home/www/web/go-study-line/vendor/composer
 2069  sudo find / -name composer
 2070  rm /home/www/.local/share/composer
 2071  sudo rm -r /home/www/.local/share/composer
 2072  sudo rm -r /home/www/.config/composer/
 2073  sudo rm -r /home/www/.cache/composer/
# 安裝  2080 curl -sS https://getcomposer.org/installer | php // 或者 php -r "readfile('http://install.phpcomposer.com/installer');" | php 
2088 cp composer.phar /usr/local/bin/composer 2089 sudo cp composer.phar /usr/local/bin/composer
2092 sudo ln -s /usr/local/bin/composer /usr/bin/composer

 

二、Github 受權登錄出現問題yii

server certificate verification failed. 
CAfile: /etc/ssl/certs/ca-certificates.crt 
CRLfile: none
相關文章
相關標籤/搜索