centos 7 docker 安装seafile

一、下载docker
[root@lixian ~]# yum -y install yum-utils device-mapper-persistent-data lvm2
[root@lixian ~]# yum-config-manager –add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
[root@lixian ~]# yum makecache fast
[root@lixian ~]# yum -y install docker-ce
[root@lixian ~]# systemctl start docker

二、拉取镜像
[root@lixian ~]# docker pull seafileltd/seafile

三、运行 #192.168.1.215 本机的IP
docker run -d –name seafile -e SEAFILE_SERVER_HOSTNAME=192.168.1.215 -v /data/seafile:/shared -p 80:80 seafileltd/seafile:latest


四、浏览器http://IP地址 访问seafile(默认用户名:me@example.com 默认密码:asecret)

=====================================

配置上传下载大小#seafile.conf 

[root@lixian ~]# cat /data/seafile/seafile/conf/seafile.conf
[fileserver]
port = 8082

[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = ec2a3fc7-9fb3-4d6c3787f7bd3
db_name = seafile_db
connection_charset = utf8

[fileserver]
#最大上传文件单位为MB,为1TB
max_upload_size=1048576
#最大下载目录为MB,为1TB
max_download_dir_size=1048576


配置邮箱#seahub_settings.py
EMAIL_USE_TLS = False
EMAIL_HOST = ‘smtp.exmail.qq.com 18’ # smpt 服务器
EMAIL_HOST_USER = ‘************@qq.com’ # 用户名和域名
EMAIL_HOST_PASSWORD = ‘************’ # 密码
EMAIL_PORT = ‘465’
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇