Encountered end of file
HTTPS无法打开:curl: (35) Encountered end of file 和 linux上安装composer
$ curl -sS https://getcomposer.org/installer | php
curl: (35) Encountered end of file
原因:服务器443端口未对外开放,需要在防火墙规则中将443端口打开
安装composer
建议使用:https://pkg.phpcomposer.com/#how-to-install-composer 中国镜像网的安装指令composer
一、下载 Composer
打开命令行并依次执行下列命令安装最新版本的 Composer:
$ php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"$ php composer-setup.php$ php -r "unlink('composer-setup.php');"
执行第一条命令下载下来的 composer-setup.php 脚本将简单地检测 php.ini 中的参数设置,如果某些参数未正确设置则会给出警告;然后下载最新版本的* composer.phar 文件到当前目录*。
备注:安装前请务必确保已经正确安装了 PHP,并且打开命令行窗口并执行 php -v 查看是否正确输出版本号,也就是php的安装目录下的bin目录在 PATH 路径里面。
上述 3 条命令的作用依次是:
下载安装脚本 - composer-setup.php - 到当前目录。
执行安装过程。
删除安装脚本。
二、将前面下载的 composer.phar 文件移动到 /usr/local/bin/ 目录下
$ mv composer.phar /usr/local/bin/composer
三、修改 composer 的全局配置文件,启用 Packagist 镜像
$ composer config -g repo.packagist composer https://packagist.phpcomposer.com
Encountered end of file相关推荐
- 【Linux】git clone报错fatal: unable to access ‘https://github.com/xxx.git/‘: Encountered end of file
目录 1.问题 2.解决 3.参考 1.问题 git clone代码时突然报错...貌似时不时遇到这个问题,这次遇到了准备简单mark下 git clone https://github.com/xx ...
- fatal: unable to access ‘https://github.com/golang/tools.git/‘: Encountered end of file
fatal: unable to access 'https://github.com/golang/tools.git/': Encountered end of file 解决 解决 git co ...
- end of file encountered on input file汇编
end of file encountered on input file汇编 百度翻译:输入文件遇到文件尾 结论:start和end start 我多写了个s,,,,,,,, 记住了,是end st ...
- ENVI对LandSat8 (OLI)图像 FLAASH大气校正 input radiance image data 报错 no valid data encountered in this file
问题描述:用ENVI5.3.1对LandSat8 (OLI)图像 FLAASH大气校正 input radiance image data 报错 no valid data encountered i ...
- IDL读取TXT文件出现 READF: End of file encountered. Unit: l, File: H: 错误
IDL读取TXT文件出现 READF: End of file encountered. Unit: l, File: H: 错误 1.出现原因 出现错误图 在读取txt文件时出现这个错误,研究了一天 ...
- 成功解决 fatal: unable to access ‘https://github.com/...‘: Encountered end of file
尝试了别的文章里去掉git configuration里的proxy配置 git config --global http.proxy git config --global --unset http ...
- MICROSOFT EXCEL FILE FORMAT(BIFF2.1)
转自:http://www.xgdown.com/article/243/61822_1.htm 作用:http://unruledboy.cnblogs.com/archive/2004/07/07 ...
- Awk by Example--转载
原文地址: http://www.funtoo.org/Awk_by_Example,_Part_1?ref=dzone http://www.funtoo.org/Awk_by_Example,_P ...
- Delphi常见各类编译错误信息-中英对照
整理自网上的文章,也忘了出处,无意冒犯,如有侵权,请提前通知,本博客将及时处理. 一. 编译错误信息 ';' not allowed before 'ELSE' ElSE前不允许有";&qu ...
最新文章
- Leetcode 168. Excel表列名称 解题思路及C++实现
- jquery ajax 滚动加载数据
- http-helloworld
- 基于JAX-WS的webService开发实例
- 深度学习 相机标定_基于深度学习的多传感器标定
- 【C++深度剖析教程19】前置操作符与后置操作符
- 1070 Bash游戏 V4
- 前端开发 关于颜色与图片 0229
- windows下boost库的基本使用方法
- 数值运算 条件测试 、 if选择结构
- c语言二维数组 ppt,C语言二维数组与指针.ppt
- UBUNTU16.04下Teamviewer的安装
- 【Unity3D入门教程】Unity3D简介、安装和程序发布
- 矩阵的初等变换与线性方程组
- U盘制作成启动盘后容量变小
- solution类方法怎么引用_13类地下害虫,你见过多少?怎么防治?10大方法要记牢!...
- 基于lstm+crf实现电子病历实体信息识别 完整的代码+数据集+说明 毕设
- 【Java爬虫】爬取南通大学教务处成绩
- [sharepoint]文档库,文件夹授权
- 《天天学敏捷:Scrum团队转型记》读书笔记