硬核:Filecoin代码编译部署常见问题

  • Post author:
  • Post category:其他

官方指导文档已经说的比较清楚https://lotu.sh/en+install-lotus-macoshttps://docs.filecoin.io/mine/setting-a-static-port/#announce-addresses 我把遇到的常见问题分享出来,遇到类似的问题,可以帮助节省时间。错误:could not get API inforoot@freddy:~# lotus…

继续阅读 硬核:Filecoin代码编译部署常见问题

搭建filecoin lotus私有网络及vscode下调试源码

  • Post author:
  • Post category:其他

软硬件配置 6核/16G内存/Radeon Pro 555X 4 GB macOS catalina 10.15.3 vscode 1.42.0 golang 1.14 Homebrew 2.2.10-42-gf5ba503 环境准备 每个矿工都需要 1.依赖安装 brew install go bzr jq pkg-config rustup 2. 调试工具更新 xcode-select --i…

继续阅读 搭建filecoin lotus私有网络及vscode下调试源码

mybatis中@Results,@ResultMap注解使用

  • Post author:
  • Post category:其他

一、Results的用法 用法一: 当数据库字段名与实体类对应的属性名不一致时,可以使用@Results映射来将其对应起来。column为数据库字段名,porperty为实体类属性名,jdbcType为数据库字段数据类型,id为是否为主键 @Select("select id, name, class_id from student”) @Results({ //column为数据库字段名,por…

继续阅读 mybatis中@Results,@ResultMap注解使用

npm如何升级到最新版本

  • Post author:
  • Post category:其他

使用npm install npm install -g npm 如果上述命令失败则尝试下面两种方式 1. 指定版本更新 <version>中填入npm版本号,-g表示全局安装 npm install -g npm@<version> # 例如 npm install -g npm@8.5.3 2. 使用工具‘n’升级 # 清除缓存 sudo npm cache clean…

继续阅读 npm如何升级到最新版本

pm2到底是什么呢?你真的了解吗

  • Post author:
  • Post category:其他

一、PM2是什么 pm2是可以用于生产环境的Nodejs的进程管理工具,并且它内置一个负载均衡。它不仅可以保证服务不会中断一直在线,并且提供0秒reload功能,还有其他一系列进程管理、监控功能。并且使用起来非常简单。 嗯嗯,最好的用处就是监控我们的生产环境下的node程序运行状态,让它给我们日以继日的处于工作状态。 pm2官方文档 二、为什么要使用pm2 原始社会的我们开发node服务端程序一般…

继续阅读 pm2到底是什么呢?你真的了解吗

centos7安装NodeJs-16

  • Post author:
  • Post category:其他

1、下载源文件并且解压 #1、准备环境 yum install libtool automake autoconf gcc-c++ openssl-devel #2、下载nodejs(https://nodejs.org/en/download/) mkdir -vp /usr/local/software/nodeJs cd /usr/local/software/nodeJs #下载(二选一,…

继续阅读 centos7安装NodeJs-16

Centos8 安装/升级 Python3.8

  • Post author:
  • Post category:python

参考文章 https://www.cnblogs.com/liujiaxin2018/p/13194491.html 1.安装依赖包 首先要安装依赖包,否则以后用到一些模块时会报错 yum -y install libffi-devel yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel re…

继续阅读 Centos8 安装/升级 Python3.8

教你用shell脚本检测服务器程序是否在运行

  • Post author:
  • Post category:其他

shell脚本定时检测python程序是否运行 shell脚本 #!/bin/bash echo "开始检查运费fright_run程序是否运行..." cd /opt/gh2/app/goods-freight-py processID=$(ps -ef | grep freight_run.py | grep -v "grep" | awk "{print $2}") echo $proces…

继续阅读 教你用shell脚本检测服务器程序是否在运行

Java类型是“[B””[B@”?

  • Post author:
  • Post category:小程序

这是二进制数组,可以强制转换为byte[],代码如下 Object o = "a".getBytes(); System.out.println(o); // 输出: [B@6acbcfc0 byte[] bb = (byte[]) o; System.out.println(new String(bb)); // 输出: a

继续阅读 Java类型是“[B””[B@”?