2019独角兽企业重金招聘Python工程师标准>>>
基础环境: python3 nodejs vuejs mysql python-ldap pymysql
mysql
新建数据库
create database Yearning DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Navicat导入初始化数据 : Yearning.sql
Yearning前端
nvm install v8
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install webpack -g
npm install vue-cli -g
pip install -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com -r Yearning/src/requirements.txt
cp Yearning/src/deploy.conf.template Yearning/src/deploy.conf
Yearning docker部署
pip install docker-compose
docker-compose up -d
# 默认http登录权限:admin/Yearning_admin
inception
http://supermancookie.com/Yearning-document/
源码编译
cp -vRp nfs/software/yearning/yearning/inception-master /opt/
&& sh inception_build.sh debug
make && make install
运行
nohup bin/Inception --defaults-file=/etc/inc.cnf --port=6669 &
启动成功之后,可以简单试一下看,通过MySQL客户端
mysql -uroot -h127.0.0.1 -P6669
登录上去之后,再执行一个命令:
inception get variables;
输出了所有的变量,恭喜你,已经启动成功了
web
yum install nginx