그래서 내가 명령을 실행하면 모든 것이 잘 설치, 냠와 EPEL의 REPO을 사용하고 있습니다 :PHP 명령은 냠 - CLI php55-PHP를 설치 한 후 발견되지
sudo yum install php55-php-cli
을 내가 실행 그러나 때
php
을
php command not found
이
사람이 왜 알고 있나요 :
나는 오류를 얻을?
갱신 가
사람들은 내가 yum search php5 | grep 'cli'
을 수행 할 때 결과가 잘못되는 설치 주위에 다른 패키지를 던지고있다
php54-php-cli.x86_64 : Command-line interface for PHP
php54-php-pecl-ircclient.x86_64 : IRC Client
php54-php-pecl-radius.x86_64 : Radius client library
php54-php-pecl-stomp.x86_64 : Stomp client extension
php54-php-pecl-yaz.x86_64 : Z39.50/SRU client
php55-php-cli.x86_64 : Command-line interface for PHP
php55-php-pecl-ircclient.x86_64 : IRC Client
php55-php-pecl-radius.x86_64 : Radius client library
php55-php-pecl-stomp.x86_64 : Stomp client extension
php55-php-pecl-yaz.x86_64 : Z39.50/SRU client
php56-php-cli.x86_64 : Command-line interface for PHP
php56-php-pecl-ircclient.x86_64 : IRC Client
php56-php-pecl-radius.x86_64 : Radius client library
php56-php-pecl-stomp.x86_64 : Stomp client extension
php56-php-pecl-yaz.x86_64 : Z39.50/SRU client
'echo' php echo "test \ n"; ?> '> test.php' 그리고 나서'php -q test.php'. 'test'가 여러분의 콘솔에 나타나면, 작동합니다. 그렇지 않은 경우 설치가 잘못되었다는 가능성이 가장 높습니다. –
php 명령을 찾을 수 없습니다, yum php55-php-cli를 설치하는 곳과 관련이 있습니까? –
그런데'sudo yum install php55-cli' 또는'sudo yum install php5-cli'을 시도해보십시오. php55-php-cli는 나에게 맞는 것 같지 않습니다. –