2020/8/31--学到了什么

问题1:

执行

composer config repo.packagist composer https://packagist.phpcomposer.com

报下面错误

File "./composer.json" cannot be found in the current directory

解决
加上 -g [ --global ] 就可以了,用全局配置就不用去找 composer.json 文件了

问题2

composer下载网址:
https://getcomposer.org/download/

ThinkPHP 5.0.24 反序列化RCE (Windows下EXP)
https://www.cnblogs.com/xiaozhiru/p/12452528.html

问题3:

执行composer命令下载thinkphp报错:
报错
composer安装出现的问题
https://www.jianshu.com/p/52b02c208983

composer install、update出错需要Token (hidden)
https://www.jiangxianli.com/?p=91

https://github.com/settings/tokens

PS C:\Users\dreamer> composer -g config repo.packagist composer https://packagist.phpcomposer.com
PS C:\Users\dreamer> composer create-project --prefer-dist topthink/think=5.0.x tp5024
Creating a "topthink/think=5.0.x" project at "./tp5024"
Installing topthink/think (v5.0.24)
  - Installing topthink/think (v5.0.24): Downloading (100%)
Created project in C:\Users\dreamer\tp5024
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Installing topthink/think-installer (v1.0.12): Downloading (failed)
Downloading (failed)
Downloading (failed)    Failed to download topthink/think-installer from dist: The "https://api.github.com/repos/top-thi
nk/think-installer/zipball/1be326e68f63de4e95977ed50f46ae75f017556d" file could not be downloaded: failed to open stream
: ÓÉÓÚÄ¿±ê¼ÆËã»ú»ý¼«¾Ü¾ø£¬ÎÞ·¨Á¬½Ó¡£

    Now trying to download from source
  - Installing topthink/think-installer (v1.0.12): Cloning 1be326e68f
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+WIN-VL43A3UQSOJ+2020-08-31+0134
to retrieve a token. It will be stored in "C:/Users/dreamer/AppData/Roaming/Composer/auth.json" for future use by Compos
er.
Token (hidden):
Token stored successfully.
问题4

解压zip压缩文件时出现出错:

root@centos7:/home/dreamer # unzip master.zip 
Archive:  master.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of master.zip or
        master.zip.zip, and cannot find master.zip.ZIP, period.

可以用jar命令解压

jar xvf master.zip
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值