腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
docker
nginx
php-fpm
file_get_contents
不
工作
、
、
我正在运行两个
docker
图像(
nginx
和
php-fpm
)的合成。两者都
工作
得很好,我可以打开我的示例网站,但在PHP中使用
file_get_contents
时出现一个错误: Warning:
file_get_contents
(/data/nav.json): failed相对URI,如我的index.php中的data/nav.json,可以和其他网站的完整网址一样
工作
。完整的源代码可以在这里找到:https://
浏览 32
提问于2019-06-11
得票数 1
回答已采纳
1
回答
如何在
docker
上诊断404未找到错误
nginx
?
、
、
、
我试着用指令来解决laradock (
docker
+laravel)在此之后,但我不确定这是如何在编辑
docker
-file后正确重新加载,我这样做了:
docker
-compose up -d
nginx
mysql现在,由于我有一个
nginx
错误4
浏览 3
提问于2016-10-15
得票数 6
2
回答
php&
nginx
在分离的码头容器中,不能执行.php文件。
、
、
我所做的是:
docker
pull php:7.1-fpm
docker
运行-d --名称
php-fpm
-v -v -v /data/
Docker
/
nginx
/html:/var/www/html php:7.1-fpm
docker
运行-d --命名为
nginx
-v /data/
浏览 1
提问于2016-10-11
得票数 1
1
回答
如何在
docker
-compose.yml中运行
php-fpm
?
、
phpRUN apt-get install php7.1-mysqlCOPY default /etc/
nginx
/sites-available/defaultCOP
浏览 0
提问于2018-09-13
得票数 1
1
回答
nginx
、
我想运行一个小的php应用程序与
docker
和
docker
-组合。html文件
工作
成功,但是当我访问php文件时,我没有找到文件。/
docker
/
php-fpm
build: volumes: - ./
docker
/
nginx
/
ngi
浏览 3
提问于2020-07-12
得票数 0
回答已采纳
1
回答
无法让Xdebug
工作
(mac+PhpStorm+Laradock+Xdebug)
、
、
、
、
Mac version MoJave 10.14.2
Docker
-compose version 1.23.2, buildby Zend Technologiesphpinfo:
工作
空间如何获得Xdebug
工作
?但是我已经在./la
浏览 4
提问于2019-04-12
得票数 1
3
回答
如何更改官方
docker
镜像
nginx
的
nginx
进程用户?
、
我使用的是
Docker
Hub的官方
nginx
镜像:
浏览 4
提问于2016-04-24
得票数 17
回答已采纳
3
回答
如何更改php默认端口?
、
、
、
、
我使用的是
php-fpm
,它在端口9000上默认运行。问题是,我有其他基于
php-fpm
的码头容器,所以我需要将默认端口更改为另一个端口,以避免混淆
nginx
。/
docker
/
php-fpm
/config/www.conf:/usr/local/etc/php-fpm.d/www.conf - ./
docker
/
nginx
/
ngin
浏览 12
提问于2021-06-18
得票数 1
回答已采纳
3
回答
增加memory_limit在码头的PHP中不起作用
、
、
我使用
Docker
中的一个容器来托管我的Laravel应用程序,这个容器连接到另一个容器,使用
Nginx
托管它。我正试图用如下所示的种子器将SQL文件导入到Laravel应用程序中 $sql =
file_get_contents
memory_limit in php.ini是1.28M,所以我继续修改它,在php.ini容器中更改php.ini-development和php.ini
浏览 22
提问于2022-11-16
得票数 1
回答已采纳
1
回答
file_get_contents
(https://devel.loc/content):无法打开流:连接被拒绝
我在
nginx
和
php-fpm
容器中使用
docker
。php.ini具有: allow_url_fopen = On 奇怪的是,当我使用外部地址,例如'‘来获取数据时,一切都是正常的
浏览 18
提问于2021-02-22
得票数 0
2
回答
如何向
Docker
发送不同路径的上下文
、
我有两个我需要建造的码头容器,
nginx
和
php-fpm
id: 'Build
Docker
PHP-FPM
image' - name: 'gcr.io/cloud-builders/<e
浏览 3
提问于2021-07-08
得票数 1
回答已采纳
1
回答
Docker
在独立容器中构建php+
nginx
+pgsql
、
、
、
我正在尝试用
docker
-compose在分离的容器中创建一个php7+
nginx
+pgsql开发环境。webserver: ports: volumes: links: -
php-fpm
浏览 2
提问于2016-12-31
得票数 0
1
回答
无法更改目录权限
、
docker
-compose文件具有以下内容: container_name: boilerplate_app/
docker
/
php-fpm
/Dockerfile - ./
docker
/
nginx
/
nginx
.conf:/etc/
nginx</
浏览 3
提问于2021-04-13
得票数 0
回答已采纳
1
回答
docker
-compose - COMPOSE_PROJECT_NAME、DockerHub和“服务名称”。怎么用?
、
、
我正在使用
docker
-compose构建定制的
nginx
和php镜像,然后我想将其push到DockeHub。运行
docker
-compose up -d时,镜像名称为:myapp_php-fpmmyapp_
nginx
_1现在,要将这些镜像推送到帐户image: myaccount/${COMPOSE_PROJECT_NAME}_
php-fpm
build
浏览 3
提问于2020-05-29
得票数 0
2
回答
不能使用PHPUnit使用
Docker
-SQLSTATE[HY000] [2002] (PhpStorm 2019.2)
、
、
、
、
MySQL连接在通过机器访问应用程序时
工作
(API端点可以使用MySQL),但在从PHPUnit (本地)访问应用程序时不能
工作
。/
nginx
.conf Dockerfile /server/ (<--Laravel project)/
docker
/
nginx
/
n
浏览 8
提问于2019-10-26
得票数 4
1
回答
如何在浏览器中查看停靠服务器内容
在
docker
toolbox中安装win7 64bit
docker
run --name web -d -p 8000:8000 richarvey/
nginx
-php-fpmweb
docker
run --name web -d -p 8000:80 richarvey/
nginx</e
浏览 0
提问于2018-11-04
得票数 0
回答已采纳
1
回答
链接
NGINX
+PHP上的
Docker
[使用
Docker
运行]?
、
、
我所采取的步骤如下:
docker
network create
nginx
-php
docker
run -d -p 9000:9000 --name
php-fpm
` -v D:\
Docker
\Html:/usr/share/
nginx</e
浏览 5
提问于2022-09-12
得票数 0
回答已采纳
2
回答
Docker
+
Nginx
+PHP错误:[emerg] 1#1:没有在上游找到主机
、
、
、
、
的开发机器上,一切都运行得很好,但是当我将映像推送到对接中心并将其拉到VPS上时,无论我做了什么,我总是会得到以下错误:此错误来自两个文件。首先: 从这个
Nginx
码头文件RUN echo "upstream php-upstream { server ${PHP_UPST
浏览 0
提问于2018-10-11
得票数 7
1
回答
Xdebug无缘无故地捕捉连接。
、
、
应用程序运行在
docker
容器上:
nginx
和php。Xdebug配置为PhpStorm。这个应用程序
工作
正常,直到突然间Xdebug开始捕获所有连接,即使我没有启用调试。为什么是Xdebug:如果我从Dockerfile中删除Xdebug设置,一切都会开始
工作
。COPY xdebug.ini /usr/local/etc/php/conf.d/
docker
-php-ext-xdebug.ini
php-fpm
/xd
浏览 9
提问于2021-02-01
得票数 0
回答已采纳
1
回答
即使停靠容器正在运行,也无法访问AWS EC2实例
、
、
、
我有两个容器,一个是应用程序,另一个是
nginx
。我已经使用
docker
-machine创建了ec2实例,并且还成功地构建了
docker
镜像。 运行
docker
-compose up也会成功运行。我还使用了laradock
nginx
dockerfile和我自己的dockerfile来创建应用程序 编辑:可能是使用
docker
-compose创建的网络。这是我的
docker
-compose.yml文件 version: '3' networks:
浏览 12
提问于2019-06-06
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
腾讯会议
实时音视频
活动推荐
运营活动
广告
关闭
领券