php artisan 出错,使用laravel artisan migrate时出现PHP致命错误

我在使用5.3版的Laravel时遇到了问题。这个

php artisan migrate

指挥部在当地运作良好。但命令不在服务器上侦听。

服务器有PHP 7.0/mariadb-10.0.x/UTF-8/HTTP2.0/Apache2。

这是错误消息:

$ php artisan migrate

PHP Fatal error: Uncaught ErrorException: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /home/prepend/funcall_excute/funcall_excute.php:307

Stack trace:

#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'gethostbyaddr()...', '/home/prepend/f...', 307, Array)

#1 /home/prepend/funcall_excute/funcall_excute.php(307): gethostbyaddr('')

#2 /home/prepend/funcall_excute/funcall_excute.php(166): __simplexi_prepend_funcall_create_file('/home/prepend/f...', 'funcall.txt')

#3 /home/prepend/funcall_excute/funcall_excute.php(10): __simplexi_prepend_funcall_get_whitelist()

#4 [internal function]: __fc_dispose(Array)

#5 /sue1924/Alzzle/vendor/symfony/console/Terminal.php(127): proc_open('stty -a | grep ...', Array, Array, NULL, NULL, Array)

#6 /sue1924/Alzzle/vendor/symfony/console/Terminal.php(70): Symfony\Component\Console\Terminal::getSttyColumns()

#7 /sue1924/Alzzle/vendor/symfony/console/Terminal.php(32): Symfony\Component\Console\Terminal::initDimensions()

#8 /sue1924/Alzzle/ven in /home/prepend/funcall_excute/funcall_excute.php on line 307

有人解决了这个问题吗?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值