GithubHelp home page GithubHelp logo

Comments (21)

johnlui avatar johnlui commented on June 2, 2024

PHP 版本多少?可能是没达到 Eloquent 的要求

from pinatra.

johnlui avatar johnlui commented on June 2, 2024

我查了下,最新的 Eloquent 要求 PHP7.2:https://github.com/illuminate/database/blob/master/composer.json

看来我需要指定一下版本了

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

哈哈哈 我是php7.2的

from pinatra.

johnlui avatar johnlui commented on June 2, 2024

我在 MAC 上用 7.3 的 PHP -S 试了试没问题,要不你也用 PHP -S 试试?

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

运行php -s 一直卡着是什么鬼

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

运行php -S的话出来一堆php的命令help

from pinatra.

johnlui avatar johnlui commented on June 2, 2024

php -S 0.0.0.0:8000

from pinatra.

olatiao avatar olatiao commented on June 2, 2024
    • 我用的是nginx呀

from pinatra.

johnlui avatar johnlui commented on June 2, 2024
    • 我用的是nginx呀

这不是在找问题嘛。。。

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

好的,我以为跟nginx是一样的,抱歉哈,我试试

from pinatra.

olatiao avatar olatiao commented on June 2, 2024
Could not open input file: 0.0.0.0:8000

提示这个

from pinatra.

johnlui avatar johnlui commented on June 2, 2024

目测你的 -s 是小写的

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

是的,哈哈哈哈 我换成大写

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

http://47.96.92.16:8000/
这里启动没问题,.
再去访问的话就有数据出来了

    • 这是为啥呀

from pinatra.

johnlui avatar johnlui commented on June 2, 2024

那就是你的环境的问题,php-fpm 的问题

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

那麻烦问下我应该从哪儿着手查呢

from pinatra.

johnlui avatar johnlui commented on June 2, 2024

不知道,要不你更新到 4.3 。。。

from pinatra.

johnlui avatar johnlui commented on June 2, 2024

你可以换用 Apache,记得用这个装 PHP:https://webtatic.com/

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

我擦~~
现在用nginx又可以了
奇了怪了

from pinatra.

johnlui avatar johnlui commented on June 2, 2024

可能是你没重启 php-fpm

from pinatra.

olatiao avatar olatiao commented on June 2, 2024

(⊙o⊙)哦
这倒也是个思路,
换句话说安装配置好项目后最好重启下php-fpm吗

    • 另外突然发现另外一个问题就是为啥var_dump好使但是dump不好使

from pinatra.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.