警告自己,不要轻易的去删除系统的软件
1、composer自动更新出现错误
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>]
解决办法:
按照百度的: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,重新安装):
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
2、Github 授权登陆出现问题
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none