V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  programV2  ›  全部回复第 62 页 / 共 75 页
回复总数  1492
1 ... 58  59  60  61  62  63  64  65  66  67 ... 75  
2020-02-07 23:39:22 +08:00
回复了 programV2 创建的主题 程序员 求助各位大佬们 登陆 drupal8 后台,点击任意菜单都出错
@programV2 我把 recaptcha 和 captcha 两文件夹重新都拷贝回去了还是一样的报错日志
2020-02-07 23:38:17 +08:00
回复了 programV2 创建的主题 程序员 求助各位大佬们 登陆 drupal8 后台,点击任意菜单都出错
@dearroy 谢谢回复! 我把 captcha 和 recaptcha 插件代码都拷贝回去了, 重启服务器还是提示一样的错误日志, 这个太坑了, google 了一晚上发现 5 年前有人遇到一样的, 按照里面的所有方法试了一遍都不行,
https://drupal.stackexchange.com/questions/147494/how-can-i-disable-a-troublesome-module
2020-02-07 21:26:48 +08:00
回复了 programV2 创建的主题 程序员 Drupal 迁移到 Docker,求问如何在 Docker 容器里安装 drush?谢谢
@TangMonk 确实很多坑,这是很早之前用 drupal 建的, 大佬, 我通过删掉 recaptcha 和 captcha 两文件夹并进入数据库清缓存来停用 recaptcha 和 captcha 模块, 登陆没有出现验证码终于进入管理后台, 但是点击后台任意菜单都出错, 请问这可能是什么原因呢? 求 V 友们帮忙看看我的报错日志, 谢谢!



error log:



2020/02/07 07:58:56 [error] 6#6: *108 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginException: "Plugin (captcha) instance class "Drupal\captcha\Element\Captcha" does not exist." at /var/www/html/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php line 97" while reading response header from upstream, client: 1.2.3.4, server: example, request: "GET /user/1/edit HTTP/1.1", upstream: "fastcgi://172.19.0.3:9000", host: "example", referrer: "http://example/user/1"

2020/02/07 07:59:19 [error] 6#6: *170 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginException: "Plugin (captcha) instance class "Drupal\captcha\Element\Captcha" does not exist." at /var/www/html/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php line 97" while reading response header from upstream, client: 1.2.3.4, server: example, request: "GET /admin HTTP/1.1", upstream: "fastcgi://172.19.0.3:9000", host: "example", referrer: "http://example/user/1"

access log:

1.2.3.4 - - [07/Feb/2020:07:58:56 +0000] "GET /user/1/edit HTTP/1.1" 500 537 "http://example/user/1" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:58:56 +0000] "GET /modules/admin_toolbar/admin_toolbar_tools/misc/icons/ffffff/d8-item.svg HTTP/1.1" 200 1499 "http://example/modules/admin_toolbar/admin_toolbar_tools/css/tools.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:00 +0000] "GET /modules/coffee/images/icons/bebebe/coffee.svg HTTP/1.1" 200 1947 "http://example/modules/coffee/css/coffee.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:19 +0000] "GET /admin HTTP/1.1" 500 537 "http://example/user/1" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:23 +0000] "GET /core/misc/icons/ffffff/hamburger.svg HTTP/1.1" 200 510 "http://example/core/modules/toolbar/css/toolbar.icons.theme.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
@gefranks 两位大佬好, 我把日志报错信息贴在 #32 楼了, 能否帮忙看看? 卡在最后这一步, 谢谢!
@manami
2020-02-07 16:40:02 +08:00
回复了 programV2 创建的主题 程序员 求助各位大佬们 登陆 drupal8 后台,点击任意菜单都出错
@dearroy 我通过删掉 recaptcha 和 captcha 两文件夹并进入数据库清缓存来停用 recaptcha 和 captcha 模块, 登陆没有出现验证码终于进入管理后台, 但是点击后台任意菜单都出错, 请问这可能是什么原因呢? 求 V 友们帮忙看看我的报错日志, 谢谢!



error log:



2020/02/07 07:58:56 [error] 6#6: *108 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginException: "Plugin (captcha) instance class "Drupal\captcha\Element\Captcha" does not exist." at /var/www/html/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php line 97" while reading response header from upstream, client: 1.2.3.4, server: example, request: "GET /user/1/edit HTTP/1.1", upstream: "fastcgi://172.19.0.3:9000", host: "example", referrer: "http://example/user/1"

2020/02/07 07:59:19 [error] 6#6: *170 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginException: "Plugin (captcha) instance class "Drupal\captcha\Element\Captcha" does not exist." at /var/www/html/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php line 97" while reading response header from upstream, client: 1.2.3.4, server: example, request: "GET /admin HTTP/1.1", upstream: "fastcgi://172.19.0.3:9000", host: "example", referrer: "http://example/user/1"

access log:

1.2.3.4 - - [07/Feb/2020:07:58:56 +0000] "GET /user/1/edit HTTP/1.1" 500 537 "http://example/user/1" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:58:56 +0000] "GET /modules/admin_toolbar/admin_toolbar_tools/misc/icons/ffffff/d8-item.svg HTTP/1.1" 200 1499 "http://example/modules/admin_toolbar/admin_toolbar_tools/css/tools.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:00 +0000] "GET /modules/coffee/images/icons/bebebe/coffee.svg HTTP/1.1" 200 1947 "http://example/modules/coffee/css/coffee.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:19 +0000] "GET /admin HTTP/1.1" 500 537 "http://example/user/1" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:23 +0000] "GET /core/misc/icons/ffffff/hamburger.svg HTTP/1.1" 200 510 "http://example/core/modules/toolbar/css/toolbar.icons.theme.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
@merryfreespace 两位 V 友好, 经过假期折腾 删掉 recaptcha 和 captcha 两文件夹并进入数据库清缓存,现在没有出现验证码终于进入管理后台, 但是点击后台任意菜单都出错, 请问这可能是什么原因呢?

@sleepm

error log:


2020/02/07 07:58:56 [error] 6#6: *108 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginException: "Plugin (captcha) instance class "Drupal\captcha\Element\Captcha" does not exist." at /var/www/html/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php line 97" while reading response header from upstream, client: 1.2.3.4, server: example.com, request: "GET /user/1/edit HTTP/1.1", upstream: "fastcgi://172.19.0.3:9000", host: "example.com", referrer: "http://example.com/user/1"

2020/02/07 07:59:19 [error] 6#6: *170 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginException: "Plugin (captcha) instance class "Drupal\captcha\Element\Captcha" does not exist." at /var/www/html/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php line 97" while reading response header from upstream, client: 1.2.3.4, server: example.com, request: "GET /admin HTTP/1.1", upstream: "fastcgi://172.19.0.3:9000", host: "example.com", referrer: "http://example.com/user/1"

access log:

1.2.3.4 - - [07/Feb/2020:07:58:56 +0000] "GET /user/1/edit HTTP/1.1" 500 537 "http://example.com/user/1" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:58:56 +0000] "GET /modules/admin_toolbar/admin_toolbar_tools/misc/icons/ffffff/d8-item.svg HTTP/1.1" 200 1499 "http://example.com/modules/admin_toolbar/admin_toolbar_tools/css/tools.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:00 +0000] "GET /modules/coffee/images/icons/bebebe/coffee.svg HTTP/1.1" 200 1947 "http://example.com/modules/coffee/css/coffee.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:19 +0000] "GET /admin HTTP/1.1" 500 537 "http://example.com/user/1" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
1.2.3.4 - - [07/Feb/2020:07:59:23 +0000] "GET /core/misc/icons/ffffff/hamburger.svg HTTP/1.1" 200 510 "http://example.com/core/modules/toolbar/css/toolbar.icons.theme.css?pc5ppi" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
2020-02-07 00:06:04 +08:00
回复了 programV2 创建的主题 程序员 Drupal 迁移到 Docker,求问如何在 Docker 容器里安装 drush?谢谢
@hefish 谢谢回复! 不好意思, 我可能没表达清楚. 我装 Drush 是想要用 drush uli 生成一次性登陆链接, 但是 docker 不同容器之间是独立, 所以我用 volumes: -."/drupal/mysql:/var/lib/mysql" 参数让 drupal 和 mysql 容器共同挂载到宿主机的同一个目录, 这样应该就可以让两个容器互相访问了, 但是我现在执行 drush uli 生成的链接开头却是 http://default/user/reset/1

然后我跑了下 ./drush status
Drupal version : 8.5.5
Site URI : http://default
Database driver : mysql

请问两位大佬, 现在还有什么办法可以登陆后台?

@jianixrabbit
2020-02-06 22:14:43 +08:00
回复了 programV2 创建的主题 程序员 Drupal 迁移到 Docker,求问如何在 Docker 容器里安装 drush?谢谢
@hefish v 友, 请问你是 docker 上装 drupal8 吗? 我看到说 composer 要占 1G 内存, 所以想看看有没有别的方法 , 另外 drush 装上后要如何才能连接另一个 mysql 容器?
2020-02-06 21:25:11 +08:00
回复了 programV2 创建的主题 程序员 Drupal 迁移到 Docker,求问如何在 Docker 容器里安装 drush?谢谢
手抖更正 :
我进入容器后执行 composer require drush/drush 后显示 没有 composer 这个命令, 然后我用以下代码手动安装:

php -r "readfile('http://files.drush.org/drush.phar');" > drush && chmod +x drush && mv drush /usr/local/bin/

但是执行# /usr/local/bin/drush uli 报错:
/usr/local/bin/drush: line 2: syntax error: unexpected "("

请问还有什么办法安装上drush吗? 谢谢!
2020-02-06 17:31:27 +08:00
回复了 programV2 创建的主题 程序员 Drupal 迁移到 Docker,求问如何在 Docker 容器里安装 drush?谢谢
我进入容器后执行 composer require drush/drush 后显示 没有 composer 这个命令, 然后我用以下代码手动安装:

php -r "readfile('http://files.drush.org/drush.phar');" > drush && chmod +x drush && mv drush /usr/bin/

但是执行# /usr/local/bin/drush uli 报错:
/usr/local/bin/drush: line 2: syntax error: unexpected "("

请问还有什么办法安装上drush吗? 谢谢!
@drush V 友你好, 我执行 composer require drush/drush 后显示 没有 composer 这个命令, 然后我用以下代码手动安装:

php -r "readfile('http://files.drush.org/drush.phar');" > drush && chmod +x drush && mv drush /usr/bin/

但是执行# /usr/local/bin/drush uli 报错:
/usr/local/bin/drush: line 2: syntax error: unexpected "("

请问还有什么办法安装上drush吗? 谢谢!
2020-02-05 11:58:23 +08:00
回复了 programV2 创建的主题 问与答 主板坏了还能用 ghost 备份旧硬盘上的 win7 系统吗?
@flynaj 谢谢! 请问接口要改成什么类型的吗?原来的是 ahci
@drush 谢谢大佬的回复! 我想访问 drupal 容器直接报错 ;

$docker-compose exec php bash

OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown

用 docker-compose ps 查看如下 :

drupal8_drupal docker-php-entrypoint php-fpm Up  
drupal8_mysql /entrypoint.sh --default-a ... Restarting
drupal8_nginx nginx -g daemon off; Up


另外不知道为什么 mysql 一直在 restarting? 大佬您看我这个 docker-compose.yml 有问题吗? 为了让 drush 能访问 mysql, 我把 mysql 的 volumes 也复制到 drupal 容器

# docker-compose.yml
version: "3"
services:
web:
image: nginx:$NGINX_TAG
container_name: "${PROJECT_NAME}_nginx"
ports:
- $NGINX_PORTA
- $NGINX_PORTB
volumes:
- "./drupal/web:/var/www/html"
- "./drupal/logs/nginx:/var/log/nginx"
- "./drupal/nginx.conf:/etc/nginx/conf.d/default.conf"
- "./drupal/cloudflare:/etc/ssl"
depends_on:
- php
php:
image: drupal:$DRUPAL_TAG
container_name: "${PROJECT_NAME}_drupal"
volumes:
- "./drupal/mysql/mysql:/var/lib/mysql"
- "./drupal/mysql/bin:/usr/bin"
- "./drupal/web:/var/www/html"
restart: always
depends_on:
- mysql
mysql:
image: mysql:$MYSQL_TAG
container_name: "${PROJECT_NAME}_mysql"
entrypoint: ['/entrypoint.sh', '--default-authentication-plugin=mysql_native_password']
environment:
MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASSWORD
MYSQL_DATABASE: $DB_NAME
volumes:
- "./drupal/mysql/mysql:/var/lib/mysql"
- "./drupal/mysql/bin:/usr/bin"
restart: always
@mafeifan
@drush 我根据上一条报错信息修改 docker-compose.yml 内容如下: 但是又遇到新的报错信息

# docker-compose.yml
version: "3"
services:
web:
image: nginx:$NGINX_TAG
container_name: "${PROJECT_NAME}_nginx"
ports:
- $NGINX_PORTA
- $NGINX_PORTB
volumes:
- "./drupal/web:/var/www/html"
- "./drupal/logs/nginx:/var/log/nginx"
- "./drupal/nginx.conf:/etc/nginx/conf.d/default.conf"
- "./drupal/cloudflare:/etc/ssl"
depends_on:
- php
php:
image: drupal:$DRUPAL_TAG
container_name: "${PROJECT_NAME}_drupal"
volumes:
- "./drupal/drush:/usr/local/bin"
- "./drupal/mysql/mysql:/var/lib/mysql"
- "./drupal/mysql/bin:/usr/bin"
- "./drupal/web:/var/www/html"
restart: always
depends_on:
- mysql
drush:
image: drush/drush
container_name: "${PROJECT_NAME}_drush"
volumes:
- "./drupal/drush:/usr/local/bin"
mysql:
image: mysql:$MYSQL_TAG
container_name: "${PROJECT_NAME}_mysql"
entrypoint: ['/entrypoint  .sh', '--default-authentication-plugin=mysql_native_password']
environment:
MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASSWORD
MYSQL_DATABASE: $DB_NAME
volumes:
- "./drupal/mysql/mysql:/var/lib/mysql"
- "./drupal/mysql/bin:/usr/bin"
restart: always



报错信息如下
  Creating drupal8_mysql ...
Creating drupal8_drush ... error

ERROR: for drupal8_drush Cannot start service drush: OCI runtime create failed: container_linux. Creating drupal8_mysql ... done
unknown
Creating drupal8_drupal ... error

ERROR: for drupal8_drupal Cannot start service php: OCI runtime create failed: container_linux.g o:345: starting container process caused "exec: \"docker-php-entrypoint\": executable file not fo und in $PATH": unknown

ERROR: for php Cannot start service php: OCI runtime create failed: container_linux.go:345: star ting container process caused "exec: \"docker-php-entrypoint\": executable file not found in $PAT H": unknown

ERROR: for drush Cannot start service drush: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"drush\": executable file not found in $PATH": unknown
ERROR: Encountered errors while bringing up the project.
@mafeifan
@programV2 然后我尝试使用 docker-compose.yml 建一个 drush 容器并把它挂载到 drupal 容器上,又碰到报错信息:



Pulling drush (drush/drush:)...
latest: Pulling from drush/drush
c87736221ed0: Pull complete
bcb58026c06e: Pull complete
6c24eee1bf47: Pull complete
864f09cef0fe: Pull complete
9107aebea488: Pull complete
e674e7b6cfae: Pull complete
fc2489165087: Pull complete
0b45d6fb692c: Pull complete
1452b3ed7eef: Pull complete
3e9c078fa313: Pull complete
6efeada2aeab: Pull complete
5f493cb151ef: Pull complete
656e2628aadc: Pull complete
31ccf03e7a0c: Pull complete
c31dbcded259: Pull complete
f33ad91f829f: Pull complete
dcfca166b834: Pull complete
ef7668c04a97: Pull complete
616dff10d9a8: Pull complete
71e8edf7fb7f: Pull complete
Digest: sha256:cb26e96449bdbf2fe34f016a19d74957017f1332093bc6b7f20a7b835f5da682
Status: Downloaded newer image for drush/drush:latest
Creating drupal8_mysql ...
Creating drupal8_drush_1 ... error

ERROR: for drupal8_drush_1 Cannot start service drush: OCI runtime create faile d: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \"rootfs_linux.go:58: mounting \\\"/root/drupal8/drupal/drush/drush\\\" to rootfs \\\"/var/lib/docker/overlay2/3d4c873a30ff0fdf5ad7805 43789f1ccbf7e5d5046ca91dbe9928fecec954044/merged\\\" at \\\"/var/lib/docker/over lay2/3d4c873a30ff0fdf5ad780543789f1ccbf7e5d5046ca91dbe9928fecec954044/merged/usr/local/bin/drush\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying
Creating drupal8_mysql ... done
th exists and is the expected type
Creating drupal8_drupal ... done
Creating drupal8_nginx ... done

ERROR: for drush Cannot start service drush: OCI runtime create failed: contain er_linux.go:345: starting container process caused "process_linux.go:430: container init caused \"rootfs_linux.go:58: mounting \\\"/root/drupal8/drupal/drush/drush\\\" to rootfs \\\"/var/lib/docker/overlay2/3d4c873a30ff0fdf5ad780543789f1ccb f7e5d5046ca91dbe9928fecec954044/merged\\\" at \\\"/var/lib/docker/overlay2/3d4c8 73a30ff0fdf5ad780543789f1ccbf7e5d5046ca91dbe9928fecec954044/merged/usr/local/bin /drush\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.




我的 docker-compose.yml 内容如下:

# docker-compose.yml
version: "3"
services:
web:
image: nginx:$NGINX_TAG
container_name: "${PROJECT_NAME}_nginx"
ports:
- $NGINX_PORTA
- $NGINX_PORTB
volumes:
- "./drupal/web:/var/www/html"
- "./drupal/logs/nginx:/var/log/nginx"
- "./drupal/nginx.conf:/etc/nginx/conf.d/default.conf"
- "./drupal/cloudflare:/etc/ssl"
depends_on:
- php
php:
image: drupal:$DRUPAL_TAG
container_name: "${PROJECT_NAME}_drupal"
volumes:
- "./drupal/drush/drush:/usr/local/bin/drush"
- "./drupal/drush/composer:/usr/local/bin/composer"
- "./drupal/mysql/mysql:/var/lib/mysql"
- "./drupal/mysql/bin:/usr/bin"
- "./drupal/web:/var/www/html"
restart: always
depends_on:
- mysql
drush:
image: drush/drush
volumes:
- "./drupal/drush/drush:/usr/local/bin/drush"
- "./drupal/drush/composer:/usr/local/bin/composer"
mysql:
image: mysql:$MYSQL_TAG
container_name: "${PROJECT_NAME}_mysql"
entrypoint: ['/entrypoint.sh', '--default-authentication-plugin=mysql_native_password']
environment:
MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASSWORD
MYSQL_DATABASE: $DB_NAME
volumes:
- "./drupal/mysql/mysql:/var/lib/mysql"
- "./drupal/mysql/bin:/usr/bin"
restart: always
@drush 谢谢大佬! 请问要如何在 docker 容器安装 drush? 网上找不到文档, 用 stackoverflow 之前有人分享的方法老是安装出错, 求大佬指教. 谢谢 !

把 drush 安装在 drupal 容器内:

$ docker exec -ti <MY_DRUPAL_CONTAINER> \
bash -c 'php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" \
> drush && chmod +x drush && mv drush /usr/local/bin'

执行上面那个命令 得到的错误如下:

OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown
2020-02-04 16:15:48 +08:00
回复了 levelworm 创建的主题 程序员 对联想的笔记本比较失望
@levelworm 跟你同样的困扰, 不知道现在哪家 PC 厂商质量管控值得信赖入手的? . V 友你可以考虑 mac 上用 virtualbox 装 windows
2020-02-04 16:05:45 +08:00
回复了 meetyuan 创建的主题 程序员 很有可能在家办公,想买 x1,在哪里买最便宜呢?
@Death V 友 你好, 在家办公求推荐一款, 谢谢!
1 ... 58  59  60  61  62  63  64  65  66  67 ... 75  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5145 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms · UTC 09:26 · PVG 17:26 · LAX 01:26 · JFK 04:26
Developed with CodeLauncher
♥ Do have faith in what you're doing.