- 服务器配置已成功启用,但是没接受用户发过来的信息?
服务器配置已成功启用,但是没接受用户发过来的信息
10-17 - 云托管php驱不动mysql could not find driver?
dockerfile如下: FROM php:8.2-fpm-alpine RUN echo "http://mirrors.aliyun.com/alpine/v3.9/main/" > /etc/apk/repositories \ && echo "http://mirrors.aliyun.com/alpine/v3.9/community/" >> /etc/apk/repositories # 安装 PHP 扩展 #install pdo_mysql ext # 安装 Composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer #install pdo_mysql ext #RUN docker-php-ext-install pdo_mysql #install nginx RUN apk add --no-cache nginx COPY ./server.conf /etc/nginx/conf.d/default.conf WORKDIR /laravel COPY . . RUN chmod -R 777 /laravel/storage RUN chmod -R 777 /laravel/bootstrap/cache RUN mkdir -p /run/nginx EXPOSE 80 ENV TZ Asia/Shanghai CMD ["sh","-c","nginx && php-fpm"] 结果报错could not find driver? 新增mysql扩展 RUN docker-php-ext-install pdo_mysql -------------------- 15 | 16 | #install pdo_mysql ext 17 | >>> RUN docker-php-ext-install pdo_mysql 18 | 19 | #install nginx -------------------- ERROR: failed to solve: process "/bin/sh -c docker-php-ext-install pdo_mysql" did not complete successfully: exit code: 139 pdo mysql 无法安装 有没有现成的案例
2023-10-15