提示错误信息
Command pm-disable needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this [error]
command.
The drush command 'dis module_filter' could not be executed. [error]
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This may occur when Drush is trying to:
* bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working
database setup by specifying the URI to use with the --uri parameter on the command line. See `drush topic docs-aliases` for details.
* connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See
http://drupal.org/node/1428638 for details.
Drush was attempting to connect to:
Drupal version : 8.4.3
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database port : 3306
Database username : sugo5
Database name : sugo5
PHP executable : /usr/bin/php
PHP configuration : /etc/php.ini
PHP OS : Linux
Drush script : /root/.config/composer/vendor/drush/drush/drush.php
Drush version : 8.1.15
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
Drupal root : /www/wwwroot/你的域名
Drupal Settings File : sites/default/settings.php
Site path : sites/default
Sync config path : sites/default/files/config_8JifERrOBC78mEnJzeLzpVwEnb5hyscgxH5Z_uuCyx5Qg6z2AQNsqDi1sKnZgokQmekcPhbWeA/sync
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) in /www/wwwroot/你的域名/vendor/symfony/http-foundation/Response.php on line 207
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) in
/www/wwwroot/你的域名/vendor/symfony/http-foundation/Response.php, line 207
原因1是没安装pear,解决方法请查看 linux php安装pear Centos7
原因2