所以我在本地安装了 pecl oauth 模块,一切正常。然后我尝试为生产服务器执行此操作,但遇到了一些问题。
如果我说 sudo pecl install oauth,我会收到以下错误:
No releases available for package "pecl.php.net/oauth"
install failed
所以我想我必须更新 pecl.php.net,所以我尝试了命令sudo pecl channel-update pecl.php.net
,但随后我得到了这个输出:
Updating channel "pecl.php.net"
Channel "pecl.php.net" is not responding over http://, failed with message:
Connection to 'pecl.php.net:80' failed: Connection refused
Trying channel "pecl.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pecl.php.net" (Connection to `pecl.php.net:443' failed: Connection refused)
有任何想法吗?