05 2022 档案

摘要:dmidecode -t 1 | grep Serial| sed 's/^.*ber: //g' 阅读全文
posted @ 2022-05-27 22:30 test_yu 阅读(32) 评论(0) 推荐(0) 编辑
摘要:import datetime i=0 while True: ret = (datetime.datetime.now() +datetime.timedelta(days=-30)+datetime.timedelta(minutes=+i)).strftime('%Y-%m-%d %H:%M: 阅读全文
posted @ 2022-05-27 22:22 test_yu 阅读(27) 评论(0) 推荐(0) 编辑
摘要:import random #生成随机数,浮点类型控制随机数的精度round(数值,精度) float = round(random.uniform(1, 100), 2) # 取0-100之间的数值精确到小数点后两位 print (float) 阅读全文
posted @ 2022-05-27 22:18 test_yu 阅读(708) 评论(0) 推荐(0) 编辑
摘要:1、清除缓存信息 sudo npm cache clean -f 2、下载node安装包 sudo npm install -g n 3、升级到nodejs最新稳定版本 sudo n stable1、清除缓存信息 sudo npm cache clean -f 2、下载node安装包 sudo np 阅读全文
posted @ 2022-05-17 19:35 test_yu 阅读(522) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash a=`netstat -unltp|grep fdfs_trackerd|wc -l` b=`netstat -unltp|grep fdfs_stroraged|wc -l` echo "$a" if [ "$a" -ne "1" ];then `fdfs_trackerd 阅读全文
posted @ 2022-05-09 19:01 test_yu 阅读(63) 评论(0) 推荐(0) 编辑
摘要:# 1.解决docker 端口防火墙拦截不住问题处理:```vim /etc/docker/daemon.json{"iptables": false}```# 2.解决容器不能访问外网和内网同网段ip开启ipv4端口转发```vi /etc/sysctl.confnet.ipv4.ip_forwa 阅读全文
posted @ 2022-05-06 16:52 test_yu 阅读(33) 评论(0) 推荐(0) 编辑
摘要:漏洞处理: 1. 服务器防火墙拦截不住docker 映射的端口问题修复: 在如下配置文件添加次配置:"iptables": false vim /etc/docker/daemon.json { "registry-mirrors": ["http://hub-mirror.c.163.com"], 阅读全文
posted @ 2022-05-06 15:04 test_yu 阅读(147) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示