centos 安装 composer - ヽ坚强的蘑菇 - 博客园

1 安装 composer

curl -sS https://getcomposer.org/installer | php

2 添加到环境变量

mv composer.phar  /usr/local/bin/composer
ln -s /usr/local/php  /usr/local/bin/php
[root@izwz90t3wxz4c79rkymhtcz boss.superdesk.cn]# composer dump-autoload
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

                                                                                           
  [Symfony\Component\Process\Exception\RuntimeException]                                   
  The Process class relies on proc_open, which is not available on your PHP installation.  
                                                                                           

dump-autoload [--no-scripts] [-o|--optimize] [-a|--classmap-authoritative] [--apcu] [--no-dev]
[root@izwz90t3wxz4c79rkymhtcz boss.superdesk.cn]# composer dump-autoload

                                                            
  [ErrorException]                                          
  proc_get_status() has been disabled for security reasons  
                                                            

PHP Fatal error:  Uncaught ErrorException: proc_get_status() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/symfony/process/Process.php:1279
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_get_status...', 'phar:///usr/loc...', 1279, Array)
#1 phar:///usr/local/bin/composer/vendor/symfony/process/Process.php(1279): proc_get_status(Resource id #318)
#2 phar:///usr/local/bin/composer/vendor/symfony/process/Process.php(700): Symfony\Component\Process\Process->updateStatus(false)
#3 phar:///usr/local/bin/composer/vendor/symfony/process/Process.php(752): Symfony\Component\Process\Process->isRunning()
#4 phar:///usr/local/bin/composer/vendor/symfony/process/Process.php(167): Symfony\Component\Process\Process->stop(0)
#5 [internal function]: Symfony\Component\Process\Process->__destruct()
#6 {main}
  thrown in phar:///usr/local/bin/composer/vendor/symfony/process/Process.php on line 1279

Fatal error: Uncaught ErrorException: proc_get_status() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/symfony/process/Process.php:1279
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_get_status...', 'phar:///usr/loc...', 1279, Array)
#1 phar:///usr/local/bin/composer/vendor/symfony/process/Process.php(1279): proc_get_status(Resource id #318)
#2 phar:///usr/local/bin/composer/vendor/symfony/process/Process.php(700): Symfony\Component\Process\Process->updateStatus(false)
#3 phar:///usr/local/bin/composer/vendor/symfony/process/Process.php(752): Symfony\Component\Process\Process->isRunning()
#4 phar:///usr/local/bin/composer/vendor/symfony/process/Process.php(167): Symfony\Component\Process\Process->stop(0)
#5 [internal function]: Symfony\Component\Process\Process->__destruct()
#6 {main}
  thrown in phar:///usr/local/bin/composer/vendor/symfony/process/Process.php on line 1279

Original url: Access
Created at: 2018-11-28 19:46:07
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论