# AIBox **Repository Path**: xiliu_lx/aibox ## Basic Information - **Project Name**: AIBox - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-17 - **Last Updated**: 2021-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # taiwuict AIBOX 介绍 软件架构 软件架构说明 安装教程 1. FastAPI 安装 a.修改pip yum源 cd ~/.pip mkdir ~/.pip cd ~/.pip sudo vi ~/.pip/pip.conf [global] index-url=http://mirrors.cloud.aliyuncs.com/pypi/simple/ [install] trusted-host=mirrors.cloud.aliyuncs.com b.安装fastapi pip3 install fastapi pip3 install uvicorn c. 安装supervisord sudo apt-get install supervisor 设置开机自启: systemctl enable supervisor systemctl restart supervisor // 重启服务 d.执行fastapi cd dashboard-fastapi sudo sh run.sh 2. mongodb安装 sudo apt-get update # 1. 安装MongoDB sudo apt-get install -y mongodb 通过"pgrep mongo -l "查看进程是否已经启动 # 2. 修改端口 sudo vi /etc/mongod.conf 修改默认端口27017为7030 # 3. 将/etc/mongod.conf文件中的auth=true前面的注释去掉,然后用重启MongDB,添加账号 mongo use admin db.createUser({user:"admin",pwd:"admin",roles:["root"]}) db.system.users.find() 查看是否添加成功了账号 # 6. 开机启动 sudo systemctl enable mongo # 7. 重启mongodb 启动MongoDB命令:sudo service mongodb start 关闭MongoDB命令:sudo service mongodb stop # 7. 安装pymongo sudo pip3 install mongo sudo pip3 install paramiko 3. nginx安装 # 1. sudo apt-get install nginx # cp /etc/nginx/nginx.conf /etc/nginx/nginx.confg.bak # cd dashboard-nginx sudo cp ./nginx.conf /etc/nginx sudo cp ./aibox.conf /opt/ sudo cp ./taiwuict.crt /opt/ sudo cp ./taiwuict.key /opt/ # 2. sudo service mongodb start # 3. sudo service mongodb stop 4. redis安装 # 1. sudo apt-get install redis-server # 2. sudo vi /etc/redis/redis.conf # ps -ef |grep redis //查看redis 在系统中的进程 # kill pid(pid为进程id) //杀掉redis服务 # redis-server redis.conf //在redis.conf目录中执行该命令 或者填写redis.conf的全路径 5. go语言安装 # sudo apt install golang-go # vi ~/.bashrc export GOPATH= /*自己的go代码路径*/ 6. vue安装 # sudo apt-get install nodejs # sudo apt-get install npm # npm install npm -g # npm set registry https://registry.npm.taobao.org # 注册模块镜像 # npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 # npm cache clean --force # 清空缓存 # npm install -g cnpm --registry=http://registry.npm.taobao.org # cnpm install --global vue-cli # 安装完成可以查看版本 vue -V # cnpm install webpack -g 7. jupyter requirements 文件安装 cd dashboard-jupyter sudo pip3 install -U -r requirements.txt sh run.sh &