警告自己,不要轻易的去删除系统的软件

1、composer自动更新出现错误

www@TinywanAliYun:~/web/go-study-line$ composer self-update
Key chrisboulton/php-resque is a duplicate in ./composer.json at line [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>]

解决办法:

按照百度的: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 [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,重新安装):

   sudo find / -name composer
sudo rm /usr/local/bin/composer
sudo rm /usr/bin/composer
rm /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer
rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer
rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6bphar:/usr/bin/composer/vendor/composer
sudo find / -name composer
rm /tmp/8fc9c56d14b6542c6ff7147207730f6b/home/www/web/go-study-line/vendor/composer
sudo rm -r /tmp/8fc9c56d14b6542c6ff7147207730f6b/home/www/web/go-study-line/vendor/composer
sudo find / -name composer
rm /home/www/.local/share/composer
sudo rm -r /home/www/.local/share/composer
sudo rm -r /home/www/.config/composer/
sudo rm -r /home/www/.cache/composer/
# 安装 
curl -sS https://getcomposer.org/installer | php // 或者 php -r "readfile('http://install.phpcomposer.com/installer');" | php 
cp composer.phar /usr/local/bin/composer
sudo cp composer.phar /usr/local/bin/composer
sudo ln -s /usr/local/bin/composer /usr/bin/composer

2、Github 授权登陆出现问题

server certificate verification failed.
CAfile: /etc/ssl/certs/ca-certificates.crt
CRLfile: none

Linux 命令详解(九)轻易删除OpenSSL 的后果的更多相关文章

  1. (转)linux命令详解之useradd命令使用方法

    linux命令详解之useradd命令使用方法 原文:http://blog.csdn.net/u011537073/article/details/51987121 Linux 系统是一个多用户多任 ...

  2. linux命令详解-useradd,groupadd

    linux命令详解-useradd,groupadd 我们在linux命令行中输入useradd: Options:  -b, --base-dir BASE_DIR       base direc ...

  3. [转载]Linux 命令详解:./configure、make、make install 命令

    [转载]Linux 命令详解:./configure.make.make install 命令 来源:https://www.cnblogs.com/tinywan/p/7230039.html 这些 ...

  4. Linux命令详解之—tail命令

    tail命令也是一个非常常用的文件查看类的命令,今天就为大家介绍下Linux tail命令的用法. 更多Linux命令详情请看:Linux命令速查手册 Linux tail命令主要用来从指定点开始将文 ...

  5. Linux命令详解之—less命令

    Linux下还有一个与more命令非常类似的命令--less命令,相比于more命令,less命令更加灵活强大一些,今天就给大家介绍下Linux下的less命令. 更多Linux命令详情请看:Linu ...

  6. Linux命令详解之—more命令

    Linux more命令同cat命令一样,多用来查看文件内容,本文就为大家介绍下Linux more命令的用法. 更多Linux命令详情请看:Linux命令速查手册 Linux的more命令类似 ca ...

  7. 【转】linux命令详解:md5sum命令

    [转]linux命令详解:md5sum命令 转自:http://blog.itpub.net/29320885/viewspace-1710218/ 前言 在网络传输.设备之间转存.复制大文件等时,可 ...

  8. Linux命令详解之—cat命令

    cat命令的功能是连接文件或标准输入并打印,今天就为大家介绍下Linux中的cat命令. 更多Linux命令详情请看:Linux命令速查手册 Linux 的cat命令通常用来显示文件内容,也可以用来将 ...

  9. Linux命令详解之—pwd命令

    Linux的pwd命令也是一个非常常用的命令,本文为大家介绍下Linux中pwd命令的用法. 更多Linux命令详情请看:Linux命令速查手册 Linux pwd命令用于显示工作目录. 执行pwd指 ...

  10. Linux命令详解之–cd命令

    cd命令是linux实际使用当中另一个非常重要的命令,本文就为大家介绍下Linux中cd命令的用法. 更多Linux命令详情请看:Linux命令速查手册 Linux cd命令用于切换当前工作目录至 d ...

随机推荐

  1. iphone 与 PC端电脑投屏设置

    1. iphone端安装: 屏幕投影助手 下载地址 https://itunes.apple.com/cn/app/ping-mu-tou-ying-zhu-shou/id1152332174?mt= ...

  2. Linux基础学习(1)--Linux系统简介

    第一章——Linux系统简介 1.UNIX和Linux发展史: 1.1 unix发展史: (1)1965年,美国麻省理工学院(MIT).通用电气公司(GE)及AT&T的贝尔实验室联合开发Mul ...

  3. python自动化运维笔记1 —— 系统性能信息模块psutil

    一.系统基础信息模块 1.1 系统性能信息模块psutil psutil是一个跨平台库(http://code.google.com/p/psutil/),能够轻松实现获取系统运行的进程和系统利用率( ...

  4. sql优化问题笔记(mysql)

    相信大家平时面试都会遇到这个问题:平时你都是怎么对sql进行调优的? 此篇文章相当于一个随便笔记,根据朋友们的聊天记录整理而成,如有不对,请指正! 注意:这篇是以mysql整理的 查看sql计划分析 ...

  5. 黄金Corner

    春水初生 春林初盛 春风十里 你在哪里

  6. c++ 为自定义类添加stl遍历器风格的遍历方式

    为仿照stl的遍历风格,实现对自定义类型的遍历. 1. 需要遍历的基础结构: struct ConnectionPtr { int id_; int port_; string addr_; //st ...

  7. ecplise tomcat忽然出现404

    场景:之前用的好好的,eclipse可以启动,然后浏览器访问  localhost:8080  出现tomcat 404 页面 解决方法:删掉server ,重新建个 server

  8. Matplotlib python 基本用法

    1.简单的绘制函数 import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1, 1, 50) y1 = x + 1 p ...

  9. MT【211】保序同构

    设$S,T$是$R$的两个非空子集,如果存在一个从$S$到$T$的函数$y=f(x)$满足:$1)T=\{f(x)|x\in S\};$2)对任意$x_1,x_2\in S$,当$x_1<x_2 ...

  10. MVC 4 图片的上传及显示

    1 首先我们看一下如何上传 1.1 view 上传页面: 1: @using (Html.BeginForm("Create", "Achievement", ...