上一页 1 2 3 4 5 6 7 8 ··· 27 下一页
摘要: 1. 本机生成ssh密钥对 ssh-keygen -t rsa 2. 把本机公钥添加到服务器文件~/.ssh/authorized_keys末尾 cat ~/.ssh/id_rsa.pub 3. 本机使用私钥即可登陆服务器 ssh -i ~/.ssh/id_rsa root@192.168.1.12 阅读全文
posted @ 2022-07-17 21:17 船长博客 阅读(1893) 评论(0) 推荐(2) 编辑
摘要: 报错信息: Exception ignored in: <function BufferedFile.__del__ at 0xffff8810f280> Traceback (most recent call last): File "/home/test/.local/lib/python3.9 阅读全文
posted @ 2022-07-16 12:59 船长博客 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python2 # -*- coding:utf-8 -*- from telnetlib import Telnet import time host = '192.168.2.1' username = 'root' password = '12345678' fi 阅读全文
posted @ 2022-07-16 10:39 船长博客 阅读(492) 评论(0) 推荐(0) 编辑
摘要: pip install pexpect #!/usr/bin/env python import pexpect address = '192.168.2.1' userName = 'root' password = '12345678' cmd = 'telnet ' + address pro 阅读全文
posted @ 2022-07-16 09:59 船长博客 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 安装paramiko:pip install paramiko或者使用国内豆瓣的源pip install paramiko -i https://pypi.douban.com/simple/ --trusted-host http://pypi.douban.com #!/usr/bin/env 阅读全文
posted @ 2022-07-16 08:36 船长博客 阅读(110) 评论(0) 推荐(0) 编辑
摘要: logger "this is a test log." logger -t test "this is a test log." logger -t test -s "this is a test log." 对应输出: Jun 30 15:28:59 (none) user.notice roo 阅读全文
posted @ 2022-06-30 18:48 船长博客 阅读(2790) 评论(0) 推荐(1) 编辑
摘要: tcpdump -i br-lan udp port 67 or port 68 -nnnn tcpdump -i eth0 port 67 or port 68 -e -n -vv 参考:https://unixhealthcheck.com/blog?id=433 阅读全文
posted @ 2022-06-28 16:14 船长博客 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 一、在右侧边栏进行编辑或删除宏: 二、修改配置文件删除宏 在a56爆大奖在线娱乐的电脑里搜索MobaXterm.ini,a56爆大奖在线娱乐安装的V22.0版本目录是: C:\Users\jack\AppData\Roaming\MobaXterm 修改MobaXterm.ini里的[Macros]和[MacrosHotkeys]即可 阅读全文
posted @ 2022-06-28 10:28 船长博客 阅读(2745) 评论(0) 推荐(0) 编辑
摘要: 一、POST传送参数 使用curl命令传送字典: curl http://192.168.1.10:5000/upload -X POST -d '{"hello": "world"}' --header "Content-Type: application /json" 使用Python Flas 阅读全文
posted @ 2022-06-18 13:04 船长博客 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: 1. 使用-d参数: 语法:curl -d @filename [URL] 示例: touch a.txt curl -d @a.txt https://reqbin.com/echo/post/json 返回信息: {"success":"true"} 2. 使用-F参数 语法:curl -F f 阅读全文
posted @ 2022-06-18 11:38 船长博客 阅读(12750) 评论(2) 推荐(4) 编辑
摘要: 使用curl post上传文件: touch abc.txt curl -F "file=@abc.txt" http://192.168.1.10:5000/upload 使用python flask接收文件: from flask import Flask, request app = Flas 阅读全文
posted @ 2022-06-18 11:37 船长博客 阅读(6023) 评论(0) 推荐(0) 编辑
摘要: window.open(url); 改为 window.open(url,"newpage");加了个name属性 基本语法: window.open(pageURL,name,parameters) 其中: pageURL 为子窗口路径 name 为子窗口句柄 parameters 为窗口参数(各 阅读全文
posted @ 2022-06-07 19:30 船长博客 阅读(1583) 评论(0) 推荐(0) 编辑
摘要: --network host所有容器和主机互通 docker run -it --privileged=true --network=host ubuntu:20.04 /bin/bash root@A1022:/# apt-get update Get:1 http://archive.ubunt 阅读全文
posted @ 2022-06-07 19:13 船长博客 阅读(598) 评论(0) 推荐(0) 编辑
摘要: HTML代码在线运行和预览网站:1:http://jsrun.net/Cj2Kp/edit 2:https://www.w3school.com.cn/tiy/t.asp?f=html5_audio 3:https://jsbin.com/?html,output 还是浏览器自带的js调试工具好用: 阅读全文
posted @ 2022-06-01 11:13 船长博客 阅读(732) 评论(0) 推荐(0) 编辑
摘要: function sleep(milliSeconds) { var startTime = new Date().getTime(); while (new Date().getTime() < startTime + milliSeconds) { //console.log(new Date( 阅读全文
posted @ 2022-06-01 11:00 船长博客 阅读(217) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 27 下一页
永远相信美好的事情即将发生!