摘要: 安装 npm install --save-dev electron 是网络的原因,修改NPM配置 npm config edit 在弹出的配置文件中修改 registry=https://registry.npmmirror.com electron_mirror=https://cdn.npmm 阅读全文
posted @ 2023-11-19 23:33 幻河 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 下载 wget https://www.openssl.org/source/openssl-1.1.1t.tar.gz 解压 tar -zxvf openssl-1.1.1t.tar.gz 编译 cd openssl-1.1.1t ./config --prefix=/usr/local/open 阅读全文
posted @ 2023-03-10 09:44 幻河 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 以安装3.7.5为例 下载安装包 wget http://npm.taobao.org/mirrors/python/3.7.5/Python-3.7.5.tar.xz 解压 xz -d Python-3.7.5.tar.xz tar -xf Python-3.7.5.tar 编译 cd Pytho 阅读全文
posted @ 2023-03-10 09:26 幻河 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1. 备份 mysqldump -uroot -p123456 -B test test1 > db_test.sql #备份test和test1数据库 2. 恢复 恢复有个前提条件:Mysql安装完后必须修改过一次密码,不能用默认密码进行操作 2.1 创建空数据库 mysql> create DA 阅读全文
posted @ 2023-01-05 14:19 幻河 阅读(21) 评论(0) 推荐(0) 编辑
摘要: pip install opencv-python 安装完测试 尝试修复,按照查的资料,依次安装依赖包 sudo apt-get install libcblas-dev 又入新坑 系统建议装Base的包 sudo apt-get install libatlas-base-dev sudo apt 阅读全文
posted @ 2022-11-28 10:03 幻河 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 设置淘宝镜像 npm config set registry https://registry.npm.taobao.org 安装nodejs所需的环境(Visual Studio XX、python什么鬼的),执行这个命令会自动检测并帮你安装好, npm install --g --product 阅读全文
posted @ 2022-11-23 15:41 幻河 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 在使用pip过程中,如果出现如下提示: 则可以先CD进入Python安装目录,执行以下指令 : 假设Python3安装在/usr/local/python3 cd /usr/local/python3 python3 -m venv tutorial-env source tutorial-env/ 阅读全文
posted @ 2022-11-15 13:45 幻河 阅读(11482) 评论(0) 推荐(0) 编辑
摘要: 针对已安装的Nodejs进行升级 在SSH中命令行执行 先安装 n 模块 npm install -g n 利用 n 模块升级到最新稳定版本 n stable 也可以指定版本 n v16.18.0 阅读全文
posted @ 2022-10-25 15:20 幻河 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1.下载安装包 wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.38-linux-glibc2.12-x86_64.tar.gz 更多的下载地址 2.解压 sudo tar -zxvf mysql-5.7.38-linux-g 阅读全文
posted @ 2022-06-09 14:40 幻河 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 0.Linux.Centos6编译安装nginx 1.安装系统+Node.js+MongoDB系列环境 2.安装MongoDB数据库 3.安装Redis环境 4.JDK 5.安装MySQL5.7 阅读全文
posted @ 2022-06-09 11:26 幻河 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 还原Win10右键菜单 在CMD命令窗口,执行以下命令 reg add HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /f /ve 然后重启电脑即可生效 还原Win11右键菜单 在C 阅读全文
posted @ 2022-05-28 11:58 幻河 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 1. 安装egg-cors npm install egg-cors --save 2.打开config/plugin.js exports.cors: { enable: true, package: 'egg-cors' } 3.在config/config.default.js config. 阅读全文
posted @ 2022-03-21 10:08 幻河 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 在EGG的配置文件config.default.js中 const config = exports = { security: { xframe: { enable: true, // 'SAMEORIGIN', 'DENY' or 'ALLOW-FROM http://example.jp' v 阅读全文
posted @ 2022-03-18 16:03 幻河 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 1、influxdb写性能测试工具influx-stress安装首先安装go语言环境,因为influx-stress基于go语言(已有Go环境时可以跳过) wget http://66-ai.com/download/script-litte-prince/app/go-install.sh -O 阅读全文
posted @ 2022-02-08 09:48 幻河 阅读(1710) 评论(0) 推荐(0) 编辑
摘要: 1. 关于GLIBC版本 查看系统已支持的版本 strings /lib64/libc.so.6 |grep GLIBC ubuntu中查看命令: ldd --version 下载所需版本 http://ftp.gnu.org/gnu/glibc/ 以2.17为例 wget http://ftp.g 阅读全文
posted @ 2021-12-07 10:04 幻河 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 删除: sc delete 服务名称 如果碰到无法设置某个服务的启动类型为“自动”时: sc config 服务名称 start=auto 阅读全文
posted @ 2021-08-30 16:53 幻河 阅读(227) 评论(0) 推荐(0) 编辑
摘要: MongoDB Server 2.4.x: mongoose ^3.8 or 4.x MongoDB Server 2.6.x: mongoose ^3.8.8 or 4.x MongoDB Server 3.0.x: mongoose ^3.8.22, 4.x, or 5.x MongoDB Se 阅读全文
posted @ 2021-06-23 17:08 幻河 阅读(1719) 评论(0) 推荐(0) 编辑
摘要: 系统是Debian 32位 Linux raspberrypi 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l 先安装X264 wget https://code.videolan.org/videolan/x264/-/archi 阅读全文
posted @ 2021-06-23 12:06 幻河 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 材料: - NodeMCU - SSD1306 128*64 I2C接口 接线: Arduino IDE,安装库: "esp8266 by ESP8266 Community 2.7.4"(开发板管理) 和 "U8g2"(库) 选择开发板: NodeMCU 1.0 (ESP-12E Module) 阅读全文
posted @ 2021-06-15 11:51 幻河 阅读(989) 评论(0) 推荐(0) 编辑
摘要: 适用模块: ESP8266系列 适用Arduino版本:1.8.7 (其它版本理论上一样,未验证) 配置"开发板管理器网址": http://arduino.esp8266.com/stable/package_esp8266com_index.json 安装开发板支持, 建议选择2.7.4 (最新 阅读全文
posted @ 2021-06-11 18:39 幻河 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 根据资料,说MongoDB不能跨版本升级 需要循序渐进的方式,按查到的资料讲的都很详细 个人理解主要是2点: - 用新版本启动上个版本的数据库 - 查询确认并更新数据库中的版本号 要达成以上2点要求,最方便的就是直接下载可运行的MongoDB版本(本例中下载对应版本的tgz文件,解压后用命令行运行即 阅读全文
posted @ 2021-02-21 18:00 幻河 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 第1版 - Wifi与传感器一体化 - 纽扣电池供电 结果:失败 现象: - 通电后,输出电压断崖式下跌,且电池电压迅速从3.0V下降到2.6V附近 - 怀疑电源管理部分有BUG,经排查没发现问题,后来接上Wifi芯片就又出现同样现象 - 基本肯定是Wifi需要的电流太大,纽扣电池经升压3.0V - 阅读全文
posted @ 2020-11-12 11:47 幻河 阅读(100) 评论(0) 推荐(0) 编辑
摘要: tce 搜索ssh 安装 安装SSH: openssh.tcz 安装好之后: cd /usr/local/etc/ssh sudo cp ssh_config.example ssh_config sudo cp sshd_config.example sshd_config sudo /usr/l 阅读全文
posted @ 2020-10-20 11:12 幻河 阅读(517) 评论(0) 推荐(0) 编辑
摘要: C里没有String类型 要用char[]来代替String的职能 上代码: 1 #include <stdio.h> 2 #include <string.h> 3 4 int main(void) 5 { 6 const char *p1; 7 char str1[] = "hello"; 8 阅读全文
posted @ 2020-09-02 10:35 幻河 阅读(2466) 评论(0) 推荐(0) 编辑
摘要: 分析原因:包下载的安全问题,猜测npm下载默认是拉取安全的包到node_modules,因此如果被判定不够安全,不会被拉取下来,并且会抛出一个错误记录 解决办法: sudo npm i --unsafe-perm 阅读全文
posted @ 2020-06-30 17:39 幻河 阅读(8527) 评论(0) 推荐(0) 编辑
摘要: 在较高版本的AD中(如AD18),默认设置改成了鼠标经过元器件时不再高亮显示连接关系,而是需要按Shift再把鼠标指向才高亮显示 如果不习惯这种新的方式,可以通过修改设置参数回复旧版本的设置 详细设置见下图 阅读全文
posted @ 2020-03-19 11:10 幻河 阅读(3821) 评论(1) 推荐(1) 编辑
摘要: 在升级过程中碰到一些问题记录如下(涉及到指令皆指Linux环境) 1. 检查openssl版本, 必须是1.0.1或以上, 升级方法网上有很多, 不再赘述 openssl version 如果版本不符合要求, 可以用下面指令下载 wget -c https://www.openssl.org/sou 阅读全文
posted @ 2020-02-14 14:10 幻河 阅读(9997) 评论(0) 推荐(1) 编辑
摘要: The type java.lang.CharSequence cannot be resolved 这个错误一般是由于需要JDK1.8, 但Eclipse或MyEclipse版本过低(本例中是MyEclipse6.0, 欲使用JDK1.8) 解决办法:升级MyEclipse, 或改用Eclipse 阅读全文
posted @ 2020-01-17 23:13 幻河 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 下载 解压 安装支持库GeoIP-devel 编译&安装 阅读全文
posted @ 2019-07-08 13:55 幻河 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 使用环境: MongoDB 3.6 插件版本: 直接上代码 定义好后接下来上Model测试 阅读全文
posted @ 2019-01-21 17:34 幻河 阅读(1454) 评论(0) 推荐(0) 编辑