# 安装MongoDBmkdir -p /home/jpge/devp-tools/tools
cd /home/jpge/devp-tools/tools
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.2.24.tgz
tar -zxvf mongodb-linux-x86_64-rhel70-4.2.24.tgz -C /home/jpge/devp-tools
mv /home/jpge/devp-tools/mongodb-linux-x86_64-rhel70-4.2.24/ /home/jpge/devp-tools/mongodb-4.2.24
vim /etc/profile
exportPATH=/home/jpge/devp-tools/mongodb-4.2.24/bin:$PATHsource /etc/profile
# 创建数据库目录sudomkdir -p /home/jpge/devp-tools/mongodb-4.2.24/data
sudomkdir -p /home/jpge/devp-tools/mongodb-4.2.24/logs
# 编写启停脚本cd /home/jpge/devp-tools/mongodb-4.2.24
vim start.sh
vim stop.sh
sh /home/jpge/devp-tools/mongodb-4.2.24/start.sh
# 验证安装是否成功
/home/jpge/devp-tools/mongodb-4.2.24/bin/mongo
> show dbs;
admin 0.000GB
config 0.000GB
local0.000GB
sh /home/jpge/devp-tools/mongodb-4.2.24/stop.sh
start.sh
#!/bin/shCUR_DIR="$( cd "$(dirname"$0")"&&pwd)"
echo "CUR_DIR=$CUR_DIR"
cd $CUR_DIR
APP_NAME=mongodb-4.2.24
mongod --dbpath=/home/jpge/devp-tools/mongodb-4.2.24/data --logpath=/home/jpge/devp-tools/mongodb-4.2.24/logs/mongodb.log --logappend --port=27017 --fork
echo "$CUR_DIR/$APP_NAME start up successful."
stop.sh
#!/bin/shCUR_DIR="$( cd "$(dirname"$0")"&&pwd)"
echo $CUR_DIR
cd $CUR_DIR
APP_NAME=mongodb-4.2.24
APP_PORT=27017;
PID=`netstat -nlp|grep :$APP_PORT|awk'{print $7}'|awk -F"/"'{ print $1 }'`
if [ ! -n "$PID" ];
then
echo "$APP_NAME is not running!"
else
echo "$APP_NAME$PID is running!"
kill -9 $PID
echo "$APP_NAME is killed!"
fi
node安装
cd /home/jpge/devp-tools/tools/
wget https://npm.taobao.org/mirrors/node/v12.19.0/node-v12.19.0-linux-x64.tar.gz
tar -xzvf node-v12.19.0-linux-x64.tar.gz -C /home/jpge/devp-tools
mv /home/jpge/devp-tools/node-v12.19.0-linux-x64 /home/jpge/devp-tools/node-v12.19.0
vim /etc/profile
exportNODE_HOME=/home/jpge/devp-tools/node-v12.19.0
exportPATH=$NODE_HOME/bin:$PATHsource /etc/profile
npminstall -g cnpm --registry=https://registry.npm.taobao.org
### 检验是否安装成功node -v
v12.19.0
npm -v
6.2.0
cd /home/jpge/devp-tools/yapi-1.12.0
vim start.sh
vim stop.sh
sh /home/jpge/devp-tools/yapi-1.12.0/start.sh
tail -200f log/start-init.log
192.168.164.128:3000
默认密码: ymfe.org
sh /home/jpge/devp-tools/yapi-1.12.0/stop.sh
start.sh
#!/bin/shCUR_DIR="$( cd "$(dirname"$0")"&&pwd)"
echo "CUR_DIR=$CUR_DIR"
cd $CUR_DIR
APP_NAME=yapi-1.12.0
nohup node vendors/server/app.js >> ./log/start-init.log 2>&1 &
echo "$CUR_DIR/$APP_NAME start up successful."
stop.sh
#!/bin/shCUR_DIR="$( cd "$(dirname"$0")"&&pwd)"
echo $CUR_DIR
cd $CUR_DIR
APP_NAME=yapi-1.12.0
APP_PORT=3000;
PID=`netstat -nlp|grep :$APP_PORT|awk'{print $7}'|awk -F"/"'{ print $1 }'`
if [ ! -n "$PID" ];
then
echo "$APP_NAME is not running!"
else
echo "$APP_NAME$PID is running!"
kill -9 $PID
echo "$APP_NAME is killed!"
fi
本文参考www.deeplearningbook.org一书第二章2.3 Identity and Inverse Matrices 2.4 Linear Dependence and Span
本文围绕线性方程求解依次介绍矩阵的逆、线性组合、线性独立等线性代数的基础知识点。
一、线性方程
本文主要围绕求解线性方程展开,我们先把线性…
文章目录 特征匹配(稀疏匹配与稠密匹配)《LoFTR: Detector-Free Local Feature Matching with Transformers》【CVPR21】《GMFlow: Learning Optical Flow via Global Matching》【CVPR22】光流的定义第一个问题第二个问题方法该框架下存在的一个问题 Pr…