root@VM-4-5-debian:~# bash install.sh
------ update host system ------
Hit:1 http://mirrors.tencentyun.com/debian bookworm InRelease Hit:2 http://mirrors.tencentyun.com/debian bookworm-updates InRelease Hit:3 http://mirrors.tencentyun.com/debian-security bookworm-security InRelease Ign:4 https://download.docker.com/linux/debian bookworm InRelease Hit:4 https://download.docker.com/linux/debian bookworm InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done curl is already the newest version (7.88.1-10+deb12u8). git is already the newest version (1:2.39.5-0+deb12u2). The following packages were automatically installed and are no longer required: linux-headers-6.1.0-13-common linux-headers-6.1.0-21-common linux-headers-6.1.0-23-common linux-headers-6.1.0-26-common linux-headers-6.1.0-9-common Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
------ git clone ctc-docker ------
Already up to date.
------ git clone ctc ------
Already up to date.
------ install docker ------
------ install docker-compose ------
------ fetch & load docker images ------
------ build docker images ------
[+] Building 0.0s (0/1) [+] Building 0.0s (0/1) [+] Building 0.0s (0/1) [+] Building 0.0s (0/1) [+] Building 0.1s (3/4) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 64B 0.0s => [internal] load metadata for docker.io/xiaochong0302/php:ctc 0.0s => [internal] load .dockerignore 0.0s [+] Building 0.1s (3/5) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 164B 0.0s => [internal] load metadata for docker.io/library/redis:5.0 0.0s => [internal] load .dockerignore 0.0s [+] Building 0.1s (3/5) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 167B 0.0s => [internal] load metadata for docker.io/library/nginx:1.18 0.0s => [internal] load .dockerignore 0.0s [+] Building 0.1s (3/5) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 182B 0.0s => [internal] load metadata for docker.io/hightman/xunsearch:latest 0.0s => [internal] load .dockerignore 0.0s [+] Building 0.2s (6/6) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 164B 0.0s => [internal] load metadata for docker.io/library/mysql:5.7 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s [+] Building 0.3s (5/5) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 64B 0.0s => [internal] load metadata for docker.io/xiaochong0302/php:ctc 0.0s => [internal] load .dockerignore 0.0s [+] Building 0.3s (6/6) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 164B 0.0s => [internal] load metadata for docker.io/library/redis:5.0 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s [+] Building 0.3s (6/6) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 167B 0.0s => [internal] load metadata for docker.io/library/nginx:1.18 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s [+] Building 0.3s (6/6) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 167B 0.0s => [internal] load metadata for docker.io/library/nginx:1.18 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/2] FROM docker.io/library/nginx:1.18 0.0s => CACHED [2/2] RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:e6b8e4f50cf54d220293a4a3325b10fdbeeb7f5890250e39fe8914310a061ad8 0.0s => => naming to docker.io/ctc/nginx:latest 0.0s
------ start docker services ------
[+] Running 5/0 ✔ Container ctc-nginx Running 0.0s ✔ Container ctc-xunsearch Running 0.0s ✔ Container ctc-mysql Running 0.0s ✔ Container ctc-php Running 0.0s ✔ Container ctc-redis Running 0.0s
------ ctc upgrade ------
bash: line 5: cd: /var/www/html/ctc: Permission denied
------ install composer packages ------
Composer could not find a composer.json file in /var/www/html To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage Composer could not find a composer.json file in /var/www/html To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
------ phinx migrate ------
bash: line 16: vendor/bin/phinx: Permission denied
------ php console upgrade ------
Could not open input file: console.php
------ rebuild xunsearch index ------
Could not open input file: console.php Could not open input file: console.php Could not open input file: console.php rm: cannot remove 'storage/log/*.log': Permission denied ctc-php
------ nginx service ok ------
------ php service ok ------
------ mysql service ok ------
------ redis service ok ------
------ xunsearch service ok ------
root@VM-4-5-debian:~#
- 热门回答
- 最新回答