简体   繁体   English

无法使用ssh在我的共享主机上安装composer

[英]Can't install composer on my shared hosting using ssh

Trying different methods to install composer on my shared host using putty. 尝试使用腻子在我的共享主机上安装Composer的其他方法。 But every time I am getting this error. 但是每次我收到此错误。

Timed out error: 超时错误:

错误

I Googled and tried a lot of solutions, but nothing worked. 我用Google搜索并尝试了很多解决方案,但没有任何效果。 How can I find the exact problem and solution? 我如何找到确切的问题和解决方案?

Run each or these commands in order: 按顺序运行每个或这些命令:

  1. php -r "copy(' https://getcomposer.org/installer ', 'composer-setup.php');" php -r“ copy(' https://getcomposer.org/installer','composer-setup.php ');”
  2. php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php -r“ if(hash_file('SHA384','composer-setup.php')==='e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196') php');}回显PHP_EOL;“
  3. php composer-setup.php --install-dir=bin --filename=composer php composer-setup.php --install-dir = bin --filename = composer
  4. rm composer-setup.php rm composer-setup.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM