Kodexplorer

From ElectroDragon
Jump to navigation Jump to search

KODexplorer

Install

wget

update

setup

  • chmod -Rf 777 ./KODExplorer/*

Error

  • php库缺失 curl -> apt-get install php5-curl
  • html// 不可写 -> chmod 777 html (folder)
  • 须开启php GD库,否则验证码、缩略图使用将不正常 -> apt-get install php5-gd


Docker

  • Install Docker compose
  • Use Nginx + php
  • docker run -d -p 80:80 --name kod -v "$PWD":/var/www/html yangxuan8282/kodexplorer
  • docker run -d -p 80:80 -it --name kod -v "$PWD":/var/www/html yangxuan8282/kodexplorer bash
  • If any folder not working, sign it root by chown
  • docker attach kod

Run

  • docker run -d -p 80:80 --name=kod -v $PWD/:/usr/share/nginx/html/ ttt

without config and log, cd into project "html" folder

docker run \
-d \
-p 80:80 \
--name kod\
--volume "$PWD/kod":/usr/share/nginx/html \
--volume "/mnt/test":/usr/share/nginx/html/files \
ttt
docker run \
-d \
-p 80:80 \
--name kod \
--volume "$PWD/kod":/usr/share/nginx/html \
--volume "/mnt/test":/usr/share/nginx/html/files \
--volume "$PWD/log":/var/log/nginx/ \
--volume "$PWD/config":/etc/nginx/ \
ttt

Reference