Skip to content
软工项目:视频分享网站
Python JavaScript Go PHP Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
admin
exe
infodbserver
test
vio
webserver
.gitignore
.gitmodules
Makefile
README.md
requirements.txt

README.md

主要说明

  • 安装依赖

    make install

  • 需安装ffmpeg imageMagick

    [ubuntu]: sudo apt-get install ffmpeg imagemagick

  • mysql安装(自己解决)

  • mysql重新初始化(注意:用户名root密码为空, 会删除原表中所有的数据)

    make db

  • 运行(vio和webserver)

    make start

    or

    make restart

  • 查看日志

    tail -f log/vio.log

    tail -f log/webserver.log

  • 停止

    make stop

FileServer

  • api见: fileServerApi.py

  • Usage Tip:

    初始化:    fs = fileServerApi.FileServer(<file server host>)
    
    上传:      uploadURL, err = fs.putAuth()
               key, err = fs.putFile(file, uploadURL)
    
    下载:      fileURL, err = fs.getFileURL(key)
    
    删除:      err = fs.deleteFile(key)
    
    视频缩略图: 200x150大小: thumbURL, err = fs.getThumbURL(key)
              原图大小:     thumbURL, err = fs.getThumbURL(key, 0)
    

Webserver

  • 注意:

      Python 代码请使用tab缩进,别用空格思密达!!!
    
      若FileServer未运行,访问某些页面时会出错
    

Admin

测试时请将文件放置在阿帕奇默认文件夹下:\htdocs

Something went wrong with that request. Please try again.