• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

使用Docker快速安装H5ai网盘、内置HTML5视频播放器DPlayer

建站知识 Liam 1年前 (2019-04-29) 420次浏览 7个评论 扫描二维码
文章目录[隐藏]

说明:本镜像由iLemonrain大佬制作,使用的是LOC冻猫大佬修改的H5ai源码,其内置了HTML5视频播放器DPlayer,这里说下安装方法。

安装

本镜像使用环境为Apache 2.4PHP 7.1

1、安装Docker

#CentOS 6 rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum update -y yum -y install docker-io service docker start chkconfig docker on  #CentOS 7、Debian、Ubuntu curl -sSL https://get.docker.com/ | sh systemctl start docker systemctl enable docker.service 

2、拉取并配置镜像

#命令 docker run [-t/-d] -p [80]:80 -v [$PWD]:/h5ai --name h5ai ilemonrain/h5ai:[lite/full] #示例 docker run -t -p 80:80 -v /home:/h5ai --name h5ai ilemonrain/h5ai:full 

参数说明:

#-d/-t:决定是以后台运行模式启动或是前台监控模式启动。 使用-d参数启动,镜像将不会输出任何日志到你的Console,直接以Daemon模式启动。Deamon模式启动下,可以使用docker logs h5ai命令显示启动日志。 使用-t参数启动,将会直接Attach你的镜像到你的Console,这个模式启动下,你可以直观的看到镜像的启动过程,适合于初次部署镜像,以及镜像Debug部署使用。你可以使用Ctrl+C将Docker镜像转入后台运行,使用docker attach h5ai命令显示启动日志。  #-p [80]:80:h5ai on Docker 需要映射的端口,方括号中端口可任意修改为你需要的端口。  #-v /h5ai:/h5ai:映射目录,将会自动在选定的目录下创建h5ai程序目录(_h5ai)和Apache2必要的.htaccess文件,如果在在使用完成后不需要这两个文件,可以自行删除;如果需要映射当前目录(可以使用pwd命令确定),请直接输入 “$PWD”。  #--name h5ai:Docker容器的名称,可以自行修改。  #ilemonrain/h5ai:[lite/full]:启动的镜像名称,请注意:如果你只是为了测试镜像,或者Docker宿主机所在网络环境不佳,请使用lite分支 (即 ilemonrain/h5ai , ilemonrain/h5ai:latest , ilemonrain/h5ai:lite均可);正式使用或者需要完整功能,请使用full分支 (ilemonrain/h5ai:full)。 

最后打开ip地址即可,如果你想使用域名,请解析到服务器即可。

最后目录文件在你映射的文件夹,如示例命令里的/home。如果想加登录密码,把public/index.php里第2行的注释取消掉,第5行自己设置用户名密码。

文章参考:h5ai on Docker-更加简单的h5ai部署方案


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:使用Docker快速安装H5ai网盘、内置HTML5视频播放器DPlayer
喜欢 (2)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(7)个小伙伴在吐槽
  1. I absolutely love your blog and find a lot of your post's to be what precisely I'm looking for. Would you offer guest writers to write content for yourself? I wouldn't mind publishing a post or elaborating on most of the subjects you write in relation to here. Again, awesome weblog! y2yxvvfw cheap flights
    cheap flights2020-08-26 07:30 回复 Windows 7 | Internet Explorer 9.0
  2. Undeniably believe that which you said. Your favorite reason appeared to be on the net the simplest thing to be aware of. I say to you, I certainly get annoyed while people consider worries that they just don't know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks
    website hosting2020-08-25 20:42 回复 Linux | Firefox浏览器 2.0.0.6
  3. Heya i am for the first time here. I found this board and I find It truly useful & it helped me out much. I hope to give something back and aid others like you helped me. cheap flights 3aN8IMa
    cheap flights2020-08-24 20:01 回复 Linux | Firefox浏览器 4E2F
  4. Usually I don't read article on blogs, but I wish to say that this write-up very compelled me to take a look at and do it! Your writing style has been amazed me. Thank you, very great article.
    cheap flights2020-08-24 14:48 回复 Windows 7 | Internet Explorer 10.0
  5. Wow, this piece of writing is fastidious, my younger sister is analyzing these kinds of things, therefore I am going to let know her.
    cheap flights2020-08-24 12:47 回复 Mac OS X | Chrome 65.0.3325.88
  6. Greetings from Los angeles! I'm bored to death at work so I decided to browse your site on my iphone during lunch break. I really like the knowledge you present here and can't wait to take a look when I get home. I'm shocked at how quick your blog loaded on my cell phone .. I'm not even using WIFI, just 3G .. Anyhow, fantastic site!
    best web hosting2020-08-14 11:59 回复 Linux | 未知浏览器
  7. Its such as you learn my thoughts! You appear to know so much approximately this, like you wrote the guide in it or something. I believe that you just could do with a few percent to force the message home a bit, however other than that, that is magnificent blog. A great read. I'll definitely be back.
    website hosting companies2020-08-11 04:56 回复 Linux | Chrome 64.0.3282.167