centos 安装modeldb 踩坑之旅

[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /usr/local/pycharm/bin/pycharm.sh
Icon=/usr/local/pycharm/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;

[Desktop Entry]
Type=Application
Name=Goland
GenericName=Goland
Comment=Goland3:The goland IDE
Exec=sh /usr/local/goland/bin/goland.sh
Icon=/usr/local/goland/bin/goland.png
Terminal=goland
Categories=goland;

[Desktop Entry]
Type=Application
Name=Clion
GenericName=Clion
Comment=Gcc:The gc++ IDE
Exec=sh /usr/local/clion/bin/clion.sh
Icon=/usr/local/clion/bin/clion.png
Terminal=clion
Categories=clion;

安装 c#

sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm

sudo yum update

sudo yum install dotnet-sdk-2.1

sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm

sudo yum install aspnetcore-runtime-2.1

yum install -y nuget

idae - MongoDB config start - 2016-05-02

设置数据文件的存放目录

dbpath = /usr/local/tools/mongodb/bin/data/test/db

设置日志文件的存放目录及其日志文件名

logpath = /usr/local/tools/mongodb/bin/data/test/logs/mongodb.log

设置端口号(默认的端口号是 27017)

port = 27017

设置为以守护进程的方式运行,即在后台运行

fork = true

nohttpinterface = true

nohttpinterface = true

配置远程连接 !!! 这个挺重要的的,不然 其他机器无法使用这台机器上的MongoDB

bind_ip = 0.0.0.0

auth=true

idae - MongoDB config end - 2016-05-02

export NODE_HOME=/usr/local/tools/nodejs/bin
export PATH=NODE_HOME/bin

modeldb

mongodb 4.0
https://www.jianshu.com/p/a8f44f04d534
https://www.mongodb.com/download-center?jmp=nav#atlas

nodejs 0.10.1
https://www.jianshu.com/p/fa18c80fd55c

phantomjs 1.9.18

golang
yum install -y golang

boost 1.67 # too much time lose
https://dl.bintray.com/boostorg/release/1.67.0/source/
tar -xvf 压缩文件

cd 解压目录

sudo ./bootstrap.sh \使用sudo获得相关权限。

sudo ./b2

sudo ./b2 install

sudo ln -s /usr/local/lib/libboost_unit_test_framework.a /usr/lib64/libboost_unit_test_framework.a

yum -y install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel

thrift 0.11.0
https://github.com/apache/thrift

http://ftp.wayne.edu/apache/thrift/0.11.0/thrift-0.11.0.tar.gz
https://blog.csdn.net/yangzhenzhen/article/details/77823331

yum install ant gradle #先安装ant否则 thrift java generate script 安装不上

--with-go=no 先不要安装 go generate script ,make的时候有问题 报错

https://stackoverflow.com/questions/31246245/thrift-building-java-library-no

./bootstrap.sh
有时候 可能是 c++ g++ 导致 编译不通过, 可以 直接 加 --with-cpp=no 就可以了
./configure --enable-coverage --with-go=no --with-golang=no --with-js=no --with-node=no --with-nodejs=no
make && make install

modeldb 首先 进入 server/codegen 执行脚本 生成 sqlite 数据库并生成代码
然后 启动 mongodb
mongod --config /usr/local/mongodb/db.conf
之后在server 目录 java -jar modeldb-with-dependency.jar, 启动
之后 确认 thrift 已经 安装编译成功后 进入 frontend 目录
执行 npm install ,安装项目的nodejs 依赖后,然后
npm start,
上面都没有问题的话 ,modeldb 算是 运行成功
如果需要使用python modeldb 的client
还需要 pip3 install modeldb

lore init my_app --python-version= 3.6.4 --keras

Starting cluster components...
E0727 05:20:05.604322 1593 start.go:299] Error restarting cluster: restarting kube-proxy: waiting for kube-proxy to be up for configmap update: timed out waiting for the condition

minikube delete
minikube start

Could not find finalized endpoint being pointed to by kubernetes-dashboard: Temporary Error: Endpoint for service is not ready yet

minikube dashboard --url=true

谷歌打不开 ,火狐可以正常显示
http://192.168.99.100:30000/#!/overview?namespace=default

minikube start --bootstrapper localkube

你可能感兴趣的:(centos 安装modeldb 踩坑之旅)