随笔 - 192  文章 - 0  评论 - 14  阅读 - 24万
03 2023 档案
解决Windows10系统无法访问匿名共享的问题
摘要:访问共享时出现了下列错误提示: xxxxx无法访问。你可能没有权限使用网络资源。请与这台服务器的管理员联系以查明你是否有访问权限。 你不能访问此共享文件夹,因为你组织的安全策略阻止未经身份验证的来宾访问。这些策略可帮助保护你的电脑免受网络上不安全设备或恶意设备的威胁。 下面是解决方法,运行gpedi 阅读全文
posted @ 2023-03-31 11:04 项希盛 阅读(421) 评论(0) 推荐(0) 编辑
爱快流控分流,端口分流的设置,编写node.js程序用于批量导入配置
摘要:客户要求将20个公网IP分配给60个设备使用,每个设备最多使用3个公网IP地址 下面是生成的程序代码 const configTemplate = (id, interface, src_addr) => { return `id=${id} enabled=yes comment= type=0 阅读全文
posted @ 2023-03-28 10:45 项希盛 阅读(505) 评论(0) 推荐(0) 编辑
Node.js编写报时器,精度高、性能高
摘要:Node.js编写的报时器,精度高、性能高 下面使用中文注解 /** * 定期打印时间 * @param {function} callback - 回调函数,每次打印时间时调用 * @param {number} interval - 打印时间的间隔,以毫秒为单位。可以传入不同单位的值,如传入10 阅读全文
posted @ 2023-03-27 10:40 项希盛 阅读(35) 评论(0) 推荐(0) 编辑
使用Node.js编写的命令行端口扫描器,功能完整,附带英文注解和使用说明
摘要:这是我花了一整天的时间写的node.js命令行扫描器,500多行代码,功能完整,附带英文注解和使用说明,可以拿来直接用。 const validOptions = [ { "name": "ports", "cmd": ["-p", "--ports"], "value": "21-23,25,80 阅读全文
posted @ 2023-03-25 14:30 项希盛 阅读(234) 评论(0) 推荐(0) 编辑
run mysql server in docker with exist database
摘要:step 1: put your database in $mysql_data_dir first step 2: put your my.conf to $mysql_cnf, for example: that my.cnf from alibaba cloud [mysqld] pid-fi 阅读全文
posted @ 2023-03-20 17:48 项希盛 阅读(35) 评论(0) 推荐(0) 编辑
install mysql in docker for testing
摘要:install mysql in docker for testing # step-1: configure mysql_port='3306' mysql_password='123qwe' mysql_data_dir="~/docker/mysqld_${mysql_port}/data" 阅读全文
posted @ 2023-03-20 16:40 项希盛 阅读(19) 评论(0) 推荐(0) 编辑
about gpasswd/chown/umask/chgrp/chmod command in linux
摘要:admin user use sudo can be do:(拥有sudo权限应该做什么?)1: add <username> to <groupname> groupsudo gpasswd -a <username> <groupname> 2: remove <username> from < 阅读全文
posted @ 2023-03-20 12:32 项希盛 阅读(27) 评论(0) 推荐(0) 编辑
node.js解析bash下的curl命令并发送请求
摘要:node.js解析bash下的curl命令并发送请求 const { promises: fs } = require("fs"); const https = require('https'); function https_request(url, headers, data) { const 阅读全文
posted @ 2023-03-17 18:39 项希盛 阅读(437) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

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