dgiot/apps/dgiot_parse
2022-03-23 16:33:22 +08:00
..
etc feat: update .gitignore 2022-03-23 16:33:22 +08:00
include add parse api log 2021-08-30 11:49:06 +08:00
priv feat: update dlink topic 2022-03-09 19:16:40 +08:00
src feat: add dgiot_httpc_channel 2022-03-19 16:04:09 +08:00
test dgiot_http dgiot_task dgiot_tdengine 2021-05-30 14:11:43 +09:00
.gitignore add dgiot dgiot_api dgiot_parse dgiot_bridge 2021-05-26 18:34:24 +08:00
LICENSE add dgiot dgiot_api dgiot_parse dgiot_bridge 2021-05-26 18:34:24 +08:00
README.md refactor: delete node_modules 2021-09-01 10:22:18 +08:00
rebar.config refactor: rm plugin Makefile 2022-01-04 12:40:51 +08:00

dgiot parse

parse server erlang 封装

License

Apache License Version 2.0

Author

jonhliu

安装jdk1.8

#卸载环境中存在的jdk版本 for i in $(rpm -qa | grep jdk | grep -v grep) do echo "Deleting rpm -> "$i rpm -e --nodeps $i done

if ! -z $(rpm -qa ; then echo "-->Failed to remove the defult Jdk." else if [ ! -f /data/jdk-8u291-linux-x64.tar.gz ]; then wget http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot4.0/jdk-8u291-linux-x64.tar.gz -O /data/jdk-8u291-linux-x64.tar.gz fi cd /data rm /usr/local/jdk1.8.0_291 -rf tar -zxvf jdk-8u291-linux-x64.tar.gz -C /usr/local #配置环境变量 if ! grep "JAVA_HOME=/usr/local/jdk1.8.0_291" /etc/profile then echo "export JAVA_HOME=/usr/local/jdk1.8.0_291" >>/etc/profile echo -e 'export JRE_HOME=/usr/local/java/jdk1.8.0_291/jre' >>/etc/profile echo -e 'export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH' >>/etc/profile echo -e 'export PATH=$JAVA_HOME/bin:$PATH' >>/etc/profile source /etc/profile fi fi java -version

部署 shuwa_report

cd /data if [ ! -f /data/shuwa_report-4.0.0.zip ]; then wget http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot_release/shuwa_report-4.0.0.zip -O /data/shuwa_report-4.0.0.zip fi rm /data/shuwa_report-4.0.0 -rf unzip shuwa_report-4.0.0.zip

安装字体

rm /usr/share/fonts/fonts.zip -rf rm /usr/share/fonts/zhFonts -rf

./shuwa_report-4.0.0/bin/fonts.sh

启动

./shuwa_report-4.0.0/bin/startup.sh

sleep 10

安装python3.8

1、依赖包安装

yum install -y wget curl zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel

2、下载包

if [ ! -f /data/Python-3.8.0.tgz ]; then wget http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot4.0/Python-3.8.0.tgz -O /data/Python-3.8.0.tgz fi sleep 10

3、解压

tar -xvf Python-3.8.0.tgz

4、安装

cd Python-3.8.0 ./configure --prefix=/usr/local/python3 make && make install

5、建立软连接

/usr/bin/mv python python_bk /usr/bin/mv pip pip_bk ln -s /usr/local/python3/bin/python3 /usr/bin/python ln -s /usr/local/python3/bin/pip3 /usr/bin/pip

安装numpy

pip install numpy

安装matplotlib

pip install matplotlib

安装pylab

pip install pylab