标题的内容也是手贱导致的,本来composer不self-update也不会出现这个问题,这不,一升到最新的composer就出问题了
1、由于我们为了追求速度,大部分都是用的国内的源,这些源往往都不是https的,这回好了,出错了。
XML/HTML代码
- Your configuration does not allow connection to http://packagist.phpcomposer.com. See https://getcomposer.org/doc/06-config.md#secure-http for details.
- http://packagist.phpcomposer.com could not be fully loaded, package information was loaded from the local cache and may be out of date
OK,打开https://getcomposer.org/doc/06-config.md#secure-http查看了一下,在composer.json和~/.composer/config.json中的config节点下,增加:"secure-http":false
2、composer update的时候报:
XML/HTML代码
- Installation failed, reverting ./composer.json to its original content.
OK,现在可以用composer diag来检查 一下了,结果 发现:
XML/HTML代码
- composer diag
- Checking composer.json: FAIL
- No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
- require.yiisoft/yii2 : unbound version constraints (*) should be avoided
- Checking platform settings: OK
- Checking git settings: OK
- Checking http connectivity to packagist: OK
- Checking https connectivity to packagist: OK
- Checking github.com oauth access: OK
- Checking disk free space: OK
- Checking pubkeys:
- Tags Public Key Fingerprint: ???? 已隐藏
- Dev Public Key Fingerprint: ????? 已隐藏
- OK
- Checking composer version: FAIL
- You are not running the latest stable version, run `composer self-update` to update (e8b1a5f35772e39ca21ab855a278bd84a0a534b2 => 1.0.0-beta2)
居然显示 ,composer中一定要有license节点,require的也需要带 版本号了。于是一一加上,然后接着composer update
3、出现如标题一般的错误
处理方法:一般出现这种错误 ,大部分情况下是fxp插件需要更新了,执行composer global require fxp/composer-asset-plugin --prefer-dist,
XML/HTML代码
- Changed current directory to /Users/gouki/.composer
- Using version ^1.1 for fxp/composer-asset-plugin
- ./composer.json has been updated
- Loading composer repositories with package information
- Updating dependencies (including require-dev)
- - Removing fxp/composer-asset-plugin (v1.1.1)
- - Installing fxp/composer-asset-plugin (v1.1.2)
- Downloading: 100%
-
- Writing lock file
- Generating autoload files
更新完后,再composer udpate就OK了!
当然如果还有问题,你应该查看官网的issue,比如:https://github.com/francoispluchino/composer-asset-plugin/issues/191,刚开始的时候确实是BUG,后面更新了就好了。哈哈
连接win的服务器的时候,如果非正常情况退出很有可能就会出现:“服务器超出了最大允许连接数”,这时候就比较痛苦了,如果临时需要改东西,而服务器上又运行着重要服务,这时候改也改不了了。又不能随便重启怎么办?以前自己的服务器我都是直接重启的,但是如果运行着重要的公司业务的话就不能这样折腾了。。。
这是找到的资料,先备份一下,以后可能会用的到,来源:http://www.zeali.net/entry/672
江湖救急的方法:
命令行运行 mstsc /console /v:服务器名或IP或域名:远程端口 。比如 mstsc /console /v:172.16.18.99:3389
但有时候这样运行之后仍然会出现“终端服务器超出了最大允许连接数”的错误信息,那样的话你可以尝试把 /console 参数换成 /admin 来连接。
附:
mstsc 语法 (Microsoft terminal services client)
mstsc.exe {ConnectionFile|/v:server} [/console] [/f] [/w:width /h:height]
mstsc.exe /edit”ConnectionFile”
mstsc.exe /migrate
mstsc参数
ConnectionFile 指定用于连接的 .rdp 文件的名称
/v:server[;port] 指定要连接的远程计算机
/admin 将连接到会话以管理服务器
/f 在全屏幕模式下启动“远程桌面”连接
/w:width 指定远程桌面窗口的宽度
/h:height 指定远程桌面窗口的高度
/public 在公用模式下运行远程桌面
/span 是远程计算机的高度和宽度与本地虚拟桌面相匹配,如有必要扩展到多个显示器。
若要扩展到多个显示器,所有显示必须具有相同的高度并垂直排列
/console 连接到指定 Windows 2000 Server 的控制台会话
/edit 打开指定的 .rdp 文件进行编辑
/migrate 将使用“客户端连接管理器”创建的旧版连接文件迁移到新的 .rdp 连接文件中
昨天说了一些关于python的编辑器的列表,当然是有一些IDE存在的,所以下载了一些,只是,让我失望的也有很多。比如这个pyscripter。。。
看截图,我很开心,好象挺不错的软件,但是下载回来后却发现无法运行。看了官方的CHM里面没有多介绍,只是说了一些:
PyScripter originally started as a lightweight IDE designed to to serve the purpose of providing a strong scripting solution for Delphi applications, complementing the excellent Python for Delphi (P4D) components. However, and with the encouragement of the P4D creator Morgan Martinez and a few early users, it has now evolved into a full-featured stand-alone Python IDE. It is built in Delphi using P4D and the SynEdit component but is extensible using Python scripts. Currently, it is only available for Microsoft Windows operating systems and features a modern user-interface. Being built in a compiled language is rather snappier than some of the other IDEs
and provides an extensive blend of features that make it a productive Python development environment.
在无法清楚官方想说什么的时候,去了google code上看了一下,居然还真的看到了这句话:
If you are using a 64bit version of Windows note that PyScripter will only work if a 32bit version of Python is installed.
好吧,不管是怎么样的情况,反正我64位的win7是肯定无法运行了。。。。
现在正在下载其他的,准备一个个的测试:http://wiki.python.org/moin/PythonEditors#Windows-OnlyEditors