1. 需要先安装 mysql, redis (建议都是docker版本)
在mysql 里创建数据库 owncloud
2. 用下面脚本安装owncloud
export OWNCLOUD_VERSION=10.0
export OWNCLOUD_DOMAIN=localhost
export ADMIN_USERNAME=xxx
export ADMIN_PASSWORD=xxx
export HTTP_PORT=xxx
docker volume create owncloud_files
docker run -d \
–name owncloud \
–link mysql:db \
–link redis:redis \
-p ${HTTP_PORT}:8080 \
-e OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN} \
-e OWNCLOUD_DB_TYPE=mysql \
-e OWNCLOUD_DB_NAME=owncloud \
-e OWNCLOUD_DB_USERNAME=xxx \
-e OWNCLOUD_DB_PASSWORD=xxx \
-e OWNCLOUD_DB_HOST=db \
-e OWNCLOUD_ADMIN_USERNAME=${ADMIN_USERNAME} \
-e OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD} \
-e OWNCLOUD_REDIS_ENABLED=true \
-e OWNCLOUD_REDIS_HOST=redis \
–volume owncloud_files:/mnt/data \
owncloud/server:${OWNCLOUD_VERSION}
3. web客户端访问: http://xxx:xxx/
4. 安装window版本 owncloud 客户端
https://owncloud.com/download/#desktop-clients
网友评论