Laravel 5.4 Artisan 将无法运行并使用大量内存,它在相同版本之前可以工作很长时间(也许除了 PHP 7.0.14 到 7.0.15 ?)。
Problem: any $ ./artistan
命令不执行任何操作。观看时htop
我注意到内存从2gb
to 4gb
非常快。一旦我取消它,它就会跳回来。
我用什么
- Ubuntu Linux Xenial x64(本地开发)
- 阿帕奇2.4
- MySQL 5.7
- PHP 7.0.15
PHP 扩展已加载
[PHP Modules]
bz2
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
hash
iconv
igbinary
imap
intl
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_mysql
PDO_ODBC
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
我尝试过的事情:
- Removed the bootstrap/cache/config.php file.
composer dumpautoload
composer self-update
- The Artisan commands don't work below
php artisan clear-compiled
php artisan optimize
php artisan optimize --force
My Guess我猜我启用了一个 PHP 扩展,导致了这个问题,但我不知道是哪个 - 如果您有任何想法或线索,请告诉我。
谢谢你!
它丢失了 ::class 我也遇到了同样的问题,就像你一样,一个小错误。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)