安装composer:

wget -O composer https://getcomposer.org/download/1.7.2/composer.pharchmod +x composermv composer /usr/bin/下载:

git clone https://github.com/jitamin/jitamin.git jitaminmv -f jitamin/* /var/www/html/mv -f jitamin/.* /var/www/html/进入网站根目录:

cd /var/www/html拷贝配置文件:

cp .env.example .env修改配置文件:
vim .env

APP_NAME=JitaminAPP_ENV=productionAPP_DEBUG=trueAPP_KEY=SomeRandomStringAPP_TIMEZONE=Asia/ShanghaiAPP_LOCALE=zh-CNAPP_THEME=blackAPP_LOG=dailyAPP_LOG_LEVEL=errorAPP_URL=http://localhostDB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=jitaminDB_USERNAME=rootDB_PASSWORD=123456安装依赖包:

composer install -o --no-dev修改网站根目录权限:

chown -R apache.apache /var/www/html创建数据库:

mysql -uroot -p123456 -e 'create database jitamin;'创建数据表:

vendor/bin/phinx migrate安装初始数据:

vendor/bin/phinx seed:run测试:

a. 输入:172.20.10.11/publicb. 用户名:adminc. 密码:admin