上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 先eri docker一套初始化 sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget 阅读全文
posted @ 2023-09-15 15:51 alexhe 阅读(51) 评论(0) 推荐(0)
摘要: 开关,下拉电阻,板载小灯,按开关灯亮 const int ledPin=13; const int inputPin=2; void setup() { // put your setup code here, to run once: pinMode(ledPin, OUTPUT); pinMod 阅读全文
posted @ 2023-08-03 11:24 alexhe 阅读(57) 评论(0) 推荐(0)
摘要: centos7 cp -r /etc/yum.repos.d/ /etc/yum.repos.d.bak vim /etc/yum.repos.d/CentOS-Base.repo [base]name=CentOS-$releasever - Basebaseurl=https://mirrors 阅读全文
posted @ 2023-07-05 11:52 alexhe 阅读(225) 评论(0) 推荐(0)
摘要: 单机10.10.10.141 CentOS Linux release 7.9.2009 (Core) http://10.10.10.141:9200/_cluster/health { cluster_name: "docker-cluster", status: "yellow", timed 阅读全文
posted @ 2023-04-28 10:17 alexhe 阅读(30) 评论(0) 推荐(0)
摘要: node1 node2 node3 三台: wget www.alexman.cn/sources.list -O /etc/apt/sources.list curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sud 阅读全文
posted @ 2023-04-12 11:30 alexhe 阅读(37) 评论(0) 推荐(0)
摘要: 1 16724175 2 16718055 阅读全文
posted @ 2022-08-13 15:48 alexhe 阅读(16) 评论(0) 推荐(0)
摘要: #include <DFRobot_Servo.h> // 创建对象 Servo servo_9; // 主程序开始 void setup() { Serial.begin(9600); servo_9.attach(9); } void loop() { Serial.println(analog 阅读全文
posted @ 2022-08-08 22:17 alexhe 阅读(120) 评论(0) 推荐(0)
摘要: /*! * MindPlus * uno * */ #include <DFRobot_Servo.h> // 动态变量 volatile float mind_n_pos; // 创建对象 Servo servo_9; // 主程序开始 void setup() { servo_9.attach( 阅读全文
posted @ 2022-08-05 22:03 alexhe 阅读(74) 评论(0) 推荐(0)
摘要: 光敏电阻,搭配10k电阻 光线越亮,电阻越强,电压越小。 光线越暗,电阻越小,电压越大(达到1023) //项目九 – 感光灯 int LED = 13; //设置 LED 灯为数字引脚 13 int val = 0; //设置模拟引脚 0 读取光敏二极管的电压值 void setup(){ pin 阅读全文
posted @ 2022-08-05 21:14 alexhe 阅读(85) 评论(0) 推荐(0)
摘要: //项目八–震动传感器 int SensorLED=13;//定义LED为数字引脚13 int SensorINPUT=3;//连接震动开关到中断1,也就是数字引脚3 volatile unsigned char state=0; void blink();//使用任何函数前,必须先声明 void 阅读全文
posted @ 2022-08-05 17:17 alexhe 阅读(41) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 10 下一页