Laravel 9:为什么航行没有结束?

hjqgdpho  于 2023-02-25  发布在  其他
关注(0)|答案(2)|浏览(134)

根据Laravel 9的入门指南安装Laravel应用程序时遇到问题。
启动sail up命令(./vendor/bin/sail up)后,它现在运行了3个多小时。最后的日志是:

my-app-meilisearch-1   | [2022-03-04T23:43:26Z INFO  actix_web::middleware::logger] 127.0.0.1:55080 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000061

my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:43:56Z INFO  actix_web::middleware::logger] 127.0.0.1:55084 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000055
my-app-meilisearch-1   | [2022-03-04T23:44:27Z INFO  actix_web::middleware::logger] 127.0.0.1:55088 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000053
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:44:57Z INFO  actix_web::middleware::logger] 127.0.0.1:55092 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000054
my-app-meilisearch-1   | [2022-03-04T23:45:27Z INFO  actix_web::middleware::logger] 127.0.0.1:55096 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000101
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:45:57Z INFO  actix_web::middleware::logger] 127.0.0.1:55100 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000063
my-app-meilisearch-1   | [2022-03-04T23:46:27Z INFO  actix_web::middleware::logger] 127.0.0.1:55104 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000068
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:46:57Z INFO  actix_web::middleware::logger] 127.0.0.1:55108 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000066
my-app-meilisearch-1   | [2022-03-04T23:47:27Z INFO  actix_web::middleware::logger] 127.0.0.1:55112 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000069
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:47:58Z INFO  actix_web::middleware::logger] 127.0.0.1:55116 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000050
my-app-meilisearch-1   | [2022-03-04T23:48:28Z INFO  actix_web::middleware::logger] 127.0.0.1:55120 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000044
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:48:58Z INFO  actix_web::middleware::logger] 127.0.0.1:55124 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000048
my-app-meilisearch-1   | [2022-03-04T23:49:28Z INFO  actix_web::middleware::logger] 127.0.0.1:55128 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000072
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:49:58Z INFO  actix_web::middleware::logger] 127.0.0.1:55132 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000038
my-app-meilisearch-1   | [2022-03-04T23:50:29Z INFO  actix_web::middleware::logger] 127.0.0.1:55136 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000048
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:50:59Z INFO  actix_web::middleware::logger] 127.0.0.1:55140 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000046
my-app-meilisearch-1   | [2022-03-04T23:51:29Z INFO  actix_web::middleware::logger] 127.0.0.1:55144 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000040
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:51:59Z INFO  actix_web::middleware::logger] 127.0.0.1:55148 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000039
my-app-laravel.test-1  | [Fri Mar  4 23:52:12 2022] 172.18.0.1:41200 Accepted
my-app-laravel.test-1  | [Fri Mar  4 23:52:17 2022] 172.18.0.1:41200 Closing
my-app-laravel.test-1  | [Fri Mar  4 23:52:17 2022] 172.18.0.1:41204 Accepted
my-app-laravel.test-1  | [Fri Mar  4 23:52:17 2022] 172.18.0.1:41204 [200]: GET /favicon.ico
my-app-laravel.test-1  | [Fri Mar  4 23:52:17 2022] 172.18.0.1:41204 Closing
my-app-meilisearch-1   | [2022-03-04T23:52:30Z INFO  actix_web::middleware::logger] 127.0.0.1:55160 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000064
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:53:01Z INFO  actix_web::middleware::logger] 127.0.0.1:55164 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000066
my-app-meilisearch-1   | [2022-03-04T23:53:31Z INFO  actix_web::middleware::logger] 127.0.0.1:55168 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000049
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:54:01Z INFO  actix_web::middleware::logger] 127.0.0.1:55172 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000038
my-app-meilisearch-1   | [2022-03-04T23:54:31Z INFO  actix_web::middleware::logger] 127.0.0.1:55176 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000040
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:55:01Z INFO  actix_web::middleware::logger] 127.0.0.1:55180 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000041
my-app-meilisearch-1   | [2022-03-04T23:55:32Z INFO  actix_web::middleware::logger] 127.0.0.1:55184 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000042
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:56:02Z INFO  actix_web::middleware::logger] 127.0.0.1:55188 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000046
my-app-meilisearch-1   | [2022-03-04T23:56:32Z INFO  actix_web::middleware::logger] 127.0.0.1:55192 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000043
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:57:02Z INFO  actix_web::middleware::logger] 127.0.0.1:55196 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000110
my-app-meilisearch-1   | [2022-03-04T23:57:32Z INFO  actix_web::middleware::logger] 127.0.0.1:55200 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000044
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:58:02Z INFO  actix_web::middleware::logger] 127.0.0.1:55204 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000039
my-app-meilisearch-1   | [2022-03-04T23:58:33Z INFO  actix_web::middleware::logger] 127.0.0.1:55208 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000038
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-04T23:59:03Z INFO  actix_web::middleware::logger] 127.0.0.1:55212 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000108
my-app-meilisearch-1   | [2022-03-04T23:59:34Z INFO  actix_web::middleware::logger] 127.0.0.1:55216 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000048
my-app-mailhog-1       | [APIv1] KEEPALIVE /api/v1/events
my-app-meilisearch-1   | [2022-03-05T00:00:05Z INFO  actix_web::middleware::logger] 127.0.0.1:55220 "GET /health HTTP/1.1" 200 22 "-" "Wget" 0.000057

所有的消息都在一遍又一遍地重复。这是脚本的正常持续时间吗?

sqougxex

sqougxex1#

您正在使用Sail cli运行Docker容器
缺少的部分是

  • d
    (Docker分离模式),用于在后台运行容器
docker up -d

在您的情况下./vendor/bin/sail up -d
谷歌一下Docker分离模式

igetnqfo

igetnqfo2#

只需使用-d标志运行它即可。Sail别名为docker-compose命令。
./vendor/bin/sail up -d
请在此处查看完整的选项列表。
https://docs.docker.com/engine/reference/commandline/compose_up/

相关问题